mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
Move examples from docs/samples/ to examples/
This commit is contained in:
parent
c070e90b99
commit
b3c3d4d4a0
16 changed files with 356 additions and 18 deletions
32
examples/basic.html
Normal file
32
examples/basic.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<!doctype html>
|
||||
<title>Basic Emulator</title><!-- not BASIC! -->
|
||||
|
||||
<script src="../../build/libv86.js"></script>
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
window.onload = function()
|
||||
{
|
||||
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,
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- A minimal structure for the ScreenAdapter defined in browser/screen.js -->
|
||||
<div id="screen_container">
|
||||
<div style="white-space: pre; font: 14px monospace; line-height: 14px"></div>
|
||||
<canvas style="display: none"></canvas>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue