Skip to content

Commit

Permalink
v86: improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Oct 30, 2022
1 parent 69353eb commit d40efe8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions example_v86.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
V86Loader.scale(1),
V86Loader.emulatorJS("emulators/v86/libv86.js"),
V86Loader.emulatorWASM("emulators/v86/v86.wasm"),
V86Loader.memorySize(16),
V86Loader.mountFile("seabios.bin",
V86Loader.fetchFile("BIOS",
"emulators/v86/seabios.bin")),
Expand Down
6 changes: 3 additions & 3 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1009,9 +1009,9 @@ var Module = null;
*/
function V86Loader() {
var config = Array.prototype.reduce.call(arguments, extend);
config.memory_size = 32 << 20;
config.vga_memory_size = 2 << 20;
config.boot_order = 0x213;
config.memory_size = Math.round((config.memory_size || 32) * 1024 * 1024);
config.vga_memory_size = Math.round((config.vga_memory_size || 2) * 1024 * 1024);
config.boot_order = config.boot_order || 0x213;
config.runner = V86Runner;
return config;
}
Expand Down

0 comments on commit d40efe8

Please sign in to comment.