2014-07-23 00:03:09 +02:00
|
|
|
<!doctype html>
|
2014-07-23 00:15:59 +02:00
|
|
|
<title>Basic Emulator</title><!-- not BASIC! -->
|
|
|
|
|
2014-10-11 12:20:57 +02:00
|
|
|
<script src="../../build/libv86.js"></script>
|
2014-07-23 00:03:09 +02:00
|
|
|
<script>
|
2015-01-10 02:15:13 +01:00
|
|
|
"use strict";
|
|
|
|
|
2014-07-23 00:03:09 +02:00
|
|
|
window.onload = function()
|
|
|
|
{
|
2015-01-09 04:49:44 +01:00
|
|
|
var emulator = new V86Starter({
|
|
|
|
memory_size: 32 * 1024 * 1024,
|
|
|
|
vga_memory_size: 2 * 1024 * 1024,
|
|
|
|
screen_container: document.getElementById("screen_container"),
|
|
|
|
bios: {
|
|
|
|
url: "../../bios/seabios.bin",
|
|
|
|
},
|
|
|
|
vga_bios: {
|
|
|
|
url: "../../bios/vgabios.bin",
|
|
|
|
},
|
|
|
|
cdrom: {
|
|
|
|
url: "../../images/linux.iso",
|
|
|
|
},
|
|
|
|
autostart: true,
|
2014-07-23 00:03:09 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<!-- A minimal structure for the ScreenAdapter defined in browser/screen.js -->
|
|
|
|
<div id="screen_container">
|
2014-11-01 15:03:57 +01:00
|
|
|
<div style="white-space: pre; font: 14px monospace; line-height: 14px"></div>
|
2014-07-23 00:03:09 +02:00
|
|
|
<canvas style="display: none"></canvas>
|
|
|
|
</div>
|