Commit graph

750 commits

Author SHA1 Message Date
Joe Osborn 66dab8f39a
Make screenshot function return an Image (#820)
* Make screenshot facility return an Image

Returning an image rather than always opennig a new window slightly
expands the utility of embedding v86---we may want to take a
screenshot and use just its data without asking the user to download it.
2023-04-14 09:26:04 +02:00
Lucia Ceionia d2f85b46d0 VGA text mode should display ⌂ for 0x7F, not DEL. 2023-02-20 11:43:56 +01:00
Fabian d1cf93e2ed Add redox (#301) 2022-11-26 14:11:19 -06:00
Fabian 011c94e009 Add fiwix 2022-11-26 14:11:19 -06:00
Fabian af1cb6d17d make some jit parameters configurable at runtime 2022-11-26 14:11:19 -06:00
Fabian 70cf369d18 collect stats about segment offsets 2022-11-15 10:14:28 +09:00
Fabian 0596b25f70 improve page heat calculation (combine with recording of entry points) 2022-11-15 10:14:28 +09:00
Fabian af32a64a3e log reason for running in interpreted mode when state flags don't match 2022-11-15 10:14:28 +09:00
Fabian 6989ba001a log the remaining unoptimised conditionals 2022-11-15 10:14:28 +09:00
Fabian 8d747fd0da Add skiffos (#714) 2022-11-15 10:14:28 +09:00
Fabian e1b6e34c19 wip code tlb 2022-11-15 10:14:28 +09:00
Adrian Siekierka 7f5fb11faf
Add support for fixed_chunk_size to async Range downloads (#755) 2022-11-01 20:30:38 +01:00
Fabian 611f0dedda Remove dead code 2022-09-21 11:56:42 +08:00
Fabian 53098adc5c Delete src/browser/lib.js, move remaining code to lib.js 2022-09-19 22:24:09 +08:00
Fabian e0d4e1808b Move buffer code around 2022-09-19 22:24:09 +08:00
Fabian aebf5eced8 Add Windows NT 2022-09-14 00:32:19 +09:00
Fabian 74c6a075c4 Replace page_poison=on with init_on_free=on 2022-09-13 14:32:52 +09:00
Fabian 00b874b309 Fix state restoring of large local images (fix #730) 2022-09-09 21:20:17 +09:00
Fabian b227b2e45b Replace winnt_fix by cpuid_level, make configurable 2022-09-08 16:45:28 +09:00
Joey Mezzacappa cb1c3211e9
Fix V86.destroy() with xterm.js (#720)
`V86.destroy()` was throwing an error due to `SerialAdapterXtermJS`
having no `destroy()` method.
2022-08-15 22:10:49 +02:00
Joey Mezzacappa 62d967bce0
Wait for emulation to stop when destroying (#721)
In some environments, the "emulator-stopped" event did not always fire
when calling the `destroy()` method. This waits for emulation to finish
stopping before continuing with the rest of the destructor.

When stopping the emulator with `.stop()`, the `v86` instance's state
would follow these transitions:

1. Before calling `.stop()`:
   ```js
   {
     running: true,
     stopped: false
   }
   ```
2. Immediately after calling `.stop()`:
   ```js
   {
     running: true,
     stopped: true
   }
   ```
3. After the emulator has finished stopping:
   ```js
   {
     running: false,
     stopped: false
   }
   ```

It was not immediately obvious how properties named `running` and
`stopped` could ever have the same values. This commit renames `stopped`
to `stopping` so it is slightly easier to understand while debugging.
2022-08-15 22:09:45 +02:00
Fabian 6c04f68396 GC SpeakerAdapter 2022-08-02 21:40:57 +09:00
Fabian d28c77faa2 don't send mouse events when execution is paused 2022-08-02 21:40:57 +09:00
Fabian 5c4023f17d Some comments for further improvements 2022-08-02 21:40:57 +09:00
Fabian 3e88f3d012 Don't use h(...).slice(2) 2022-08-02 21:40:57 +09:00
Fabian e1d1f22378 Avoid loading partfiles that are already present 2022-08-02 21:40:57 +09:00
Fabian 2a73363089 Remove useless argument 2022-08-02 21:40:57 +09:00
Fabian d4831d3b10 Remove some unncessary quoting 2022-08-02 21:40:57 +09:00
Fabian 14bab44a2d Use larger chunksize for big images, significantly improving load performance (see #710) 2022-08-02 21:40:57 +09:00
Fabian d2ca7b1afc Implement alternative format for partfiles 2022-08-02 21:40:57 +09:00
Fabian d363430b05 refactor partfile loading, add read cache 2022-08-02 21:40:57 +09:00
Fabian 4bcaf1c3c2 Give downloaded file a more useful name 2022-08-02 21:40:57 +09:00
Fabian ee70cd950e wasm trace: log to cpu level 2022-08-02 21:40:57 +09:00
Fabian 00d2b35222 Allow capturing network traffic and loading it in wireshark 2022-08-02 21:40:57 +09:00
Fabian f33c7ca70b Crude mac address translation, fixes networking in Windows 2000 and SerenityOS 2022-08-02 21:40:57 +09:00
Fabian c1bd7076bd Add latest SerenityOS without patches (224ac1a30) (#299) 2022-08-02 21:40:57 +09:00
Fabian 923d4148d0 Add experimental server for user-uploaded images 2022-08-02 21:40:57 +09:00
Fabian c7ed5f8dc1 Update windows 2000 after vga pci revision
The vga devices was not recognized any more after changing the pci
revision. The image has the vbe driver reinstalled.
2022-08-02 21:40:57 +09:00
Fabian 084575179b Allow text selection, fixes #688 2022-08-02 21:40:57 +09:00
Nitin Tejuja 0615be5d60
Fixed issue #632 async/await (#633)
Co-authored-by: Fabian <copy@copy.sh>
2022-07-25 14:55:07 +02:00
hello-smile6 b96665285b
Allow sharing files with guest using UI, even with custom profile (#702)
The 9p filesystem is always accessible by the guest, even if the UI is hidden. This will make the file picker UI be shown when needed
2022-07-14 10:26:13 +02:00
pixelsuft‮ 99736f2f68
Screenshot For Text Mode (#671) 2022-06-03 13:40:59 +02:00
hello-smile6 d9c9277011
Add keyboard lock support (#665)
Allows system keybindings to be intercepted by the guest.
2022-05-28 10:53:56 +02:00
Fabian 7a6eaf38da Add HelenOS 2022-05-23 18:35:37 +02:00
Fabian b0d3dcb742 Add some homepages 2022-05-23 18:35:37 +02:00
Fabian 1bf5168c59 Mouse: Add support for Firefox 2022-05-20 22:27:57 +02:00
Fabian d685053541 Minor fix 2022-03-11 10:54:37 +01:00
Fabian 193ec30038 Add bzimage/initrd to UI 2022-03-10 21:46:57 +01:00
Giulio Zausa f42e204ed3
Allow receiving wasm as a function via wasm_fn (#629)
Allow receiving wasm as a function via wasm_fn (for bundlers)
2022-03-10 21:39:49 +01:00
Fabian 65899d2073 Fix NaN mips 2022-02-21 00:11:00 +01:00