forked from copy/v86
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
201 lines (172 loc) · 6.84 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!doctype html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Virtual x86</title>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<script src="v86_all.js"></script>
<link rel="stylesheet" href="v86.css">
<div>
<div id="boot_options">
<h4>Quickstart</h4>
<input type="button" value="KolibriOS (1.4 MB)" id="start_koli">
- Graphical OS, takes about 60 seconds to boot<br>
<input type="button" value="Linux 2.6 (6.3 MB)" id="start_linux">
- With busybox, lua interpreter and test cases, takes about 20 seconds to boot<br>
<input type="button" value="Windows 1.01 (1.4 MB)" id="start_win101">
- Takes 1 second to boot<br>
<input type="button" value="FreeDOS (0.7 MB)" id="start_freedos">
- With nasm, vim, debug.com, some games and demos, takes 1 second to boot<br>
<input type="button" value="OpenBSD (1.4 MB)" id="start_bsd">
- Random boot floppy, takes very long to boot<br>
<input type="button" value="Solar OS (1.4 MB)" id="start_sol">
- Simple graphical OS
<br>
<hr>
<h4>Setup</h4>
<table>
<tr>
<td width="250">CD image</td>
<td>
<!--
<select>
<option>None</option>
<option>Local file</option>
<option>External Server</option>
</select>-->
<input type="file" id="cd_image">
</td>
</tr>
<tr>
<td>Floppy disk image</td>
<td> <input type="file" id="floppy_image"><br></td>
</tr>
<tr>
<td>Hard drive disk image</td>
<td><input type="file" id="hd_image"><br></td>
</tr>
<tr>
<td colspan="2"><hr></td>
</tr>
<tr>
<td>Memory size</td>
<td>
<input id="memory_size" type="number" value="64" min="16" max="2048" step="16"> MB<br>
</td>
</tr>
<tr>
<td>Video Memory size</td>
<td>
<input id="video_memory_size" type="number" value="8" min="1" max="16" step="1"> MB<br>
</td>
</tr>
<tr>
<td colspan="2"><hr></td>
</tr>
<!--
<tr>
<td>Execution Cap </td>
<td> <input type="number" value="100" min="5" max="100" step="5"> %<br> </td>
</tr>
-->
<tr>
<td>Boot order</td>
<td>
<select id="boot_order">
<option value="231">Floppy / CD / Hard Disk</option>
<option value="321">Floppy / Hard Disk / CD</option>
<option value="213">CD / Floppy / Hard Disk</option>
<option value="123">CD / Hard Disk / Floppy</option>
<option value="312">Hard Disk / Floppy / CD</option>
<option value="132">Hard Disk / CD / Floppy</option>
</select>
</td>
</tr>
</table>
<br>
<button id="start_emulation">Start Emulation</button>
<!--
<br>
<div id="setup_error">Error: Video size must be at least over 9000</div>
-->
<!--
<br>
<br>
Link to this configuration: <a href="" id="config_link">http://copy.sh/v24/?a=b&c=d</a>
-->
</div>
<div id="runtime_options" style="display: none">
<input type="button" value="Pause" id="run">
<input type="button" value="Reset" id="reset">
<input type="button" value="Send Ctrl-Alt-Del" id="ctrlaltdel">
<input type="button" value="Get floppy image" id="get_fda_image">
<input type="button" value="Get floppy image" id="get_fdb_image">
<input type="button" value="Get HDA image" id="get_hda_image">
<input type="button" value="Get HDB image" id="get_hdb_image">
<input type="button" value="Lock mouse" id="lock_mouse">
<input type="button" value="Go fullscreen" id="fullscreen">
<input type="button" value="Take screenshot (only graphic modes)" id="take_screenshot">
Scale:
<input type="number" min="0.25" step="0.25" value="1.0" id="scale" style="width: 50px">
<br>
<br>
</div>
<pre style="display: none" id="loading"></pre>
</div>
<div id="screen_container">
<div id="screen"></div>
<canvas id="vga"></canvas>
</div>
<div id="runtime_infos" style="display: none">
Running: <span id="running_time">0s</span> <br>
Speed: <span id="speed">0</span>kIPS<br>
Avg speed: <span id="avg_speed">0</span>kIPS<br>
<br>
<div id="info_hda">
<b>HDA</b><br>
Sectors read: <span id="info_hda_sectors_read"></span><br>
Bytes read: <span id="info_hda_bytes_read"></span><br>
Sectors written: <span id="info_hda_sectors_written"></span><br>
Bytes written: <span id="info_hda_bytes_written"></span><br>
<br>
</div>
<div id="info_cdrom">
<b>CDROM</b><br>
Sectors read: <span id="info_cdrom_sectors_read"></span><br>
Bytes read: <span id="info_cdrom_bytes_read"></span><br>
<br>
</div>
<b>VGA</b><br>
Mode: <span id="info_vga_mode"></span><br>
Resolution: <span id="info_res">-</span><br>
BPP: <span id="info_bpp">-</span><br>
<br>
Mouse: <span id="info_mouse_enabled">-</span><br>
<!-- Keyboard: <span id="info_keyboard_enabled">-</span><br> -->
</div>
<input type="text" class="phone_keyboard" style="display: none">
<br style="clear:both"><br>
<textarea readonly id="log" style="display: none"></textarea>
<textarea cols="80" rows="25" id="serial" style="display: none">This is the serial console. Whatever you type or paste here will be send to COM1.
In Linux it can be accessed with `cat /dev/ttyS0`
</textarea>
<div id="news">
<hr>
<h4>News</h4>
<ul>
<li>Jan 10, 2014 — Updated interface
<li>Nov 05, 2013 — Source Code now available: <a href="https://github.com/copy/v86">Github</a>, <a href="v86-latest.tar.gz">Tarball</a>.
<li>Oct 17, 2013 — First public release
</ul>
</div>
<br style="clear:both">
<hr>
<a href="debug.html">Enable debug</a>
—
<a href="https://github.com/copy/v86/blob/master/Readme.md">Readme</a>
—
<a href="https://github.com/copy/v86">Project on Github</a>
—
<a href="https://github.com/copy/v86#compatibility">Compatibility</a>
—
<a href="https://github.com/copy/v86#license">License</a>
—
<a href="./screenshots/">Screenshots</a>