mirror of
https://github.com/HeyPuter/v86.git
synced 2026-11-13 20:12:58 -10:00
There is essentially no overhead to this, and it allows some further simplifications
26 lines
763 B
JavaScript
Executable File
26 lines
763 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
"use strict";
|
|
|
|
const TEST_RELEASE_BUILD = +process.env.TEST_RELEASE_BUILD;
|
|
|
|
const fs = require("fs");
|
|
var V86 = require(`../../build/${TEST_RELEASE_BUILD ? "libv86" : "libv86-debug"}.js`).V86;
|
|
|
|
process.on("unhandledRejection", exn => { throw exn; });
|
|
|
|
const emulator = new V86({
|
|
bios: { url: __dirname + "/../../bios/seabios.bin" },
|
|
vga_bios: { url: __dirname + "/../../bios/vgabios.bin" },
|
|
fda: { url: __dirname + "/../../images/freedos722.img", async: true },
|
|
network_relay_url: "<UNUSED>",
|
|
autostart: true,
|
|
memory_size: 32 * 1024 * 1024,
|
|
filesystem: {},
|
|
log_level: -641,
|
|
disable_jit: +process.env.DISABLE_JIT,
|
|
});
|
|
|
|
setInterval(() => {
|
|
console.log(emulator.screen_adapter.get_text_screen());
|
|
}, 500);
|