-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (48 loc) · 1.58 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>FelipOS Live Demo</title>
</head>
<body>
<h3>FelipOS Live Demo</h3>
<button onclick="emulator.Ve()">Start</button>
<button onclick="emulator.tf()">Reset</button>
<hr>
<div id="screen_container">
<div style="white-space: pre; font: 14px monospace; line-height: 16px"></div>
<canvas style="display: none"></canvas>
</div>
<hr>
<h3>Serial port</h3>
<div>
<textarea rows=25 cols=60 id="serial_container"></textarea>
</div>
<!-- <script src="v86/build/libv86.js"></script> -->
<script src="v86/build/v86_all.js"></script>
<script>
"use strict";
window.onload = function () {
var emulator = window.emulator = new V86Starter({
wasm_path: "v86/build/v86.wasm",
memory_size: 1 * 1024 * 1024,
vga_memory_size: 1 * 1024 * 1024,
screen_container: document.getElementById("screen_container"),
serial_container: document.getElementById("serial_container"),
bios: {
url: "v86/bios/seabios.bin",
},
vga_bios: {
url: "v86/bios/vgabios.bin",
},
fda: {
url: "v86/images/felipos.flp",
},
autostart: false,
});
}
</script>
</body>
</html>