-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathindex.html
213 lines (205 loc) · 7.91 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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!doctype html>
<!--
Miracle: A Sega Master System emulator in JavaScript.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
By Matt Godbolt: <[email protected]>
Z80 support from JSSpeccy:
Contact details: <[email protected]>
Matthew Westcott, 14 Daisy Hill Drive, Adlington, Chorley, Lancs PR6 9NE UNITED KINGDOM
-->
<html lang="en">
<head>
<title>Miracle - a JavaScript Sega Master System emulator</title>
<link rel="stylesheet" href="/miracle.css" type="text/css" />
<script type="module" src="/src/main.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(["_setAccount", "UA-55180-1"]);
_gaq.push(["_trackPageview"]);
(function () {
var ga = document.createElement("script");
ga.type = "text/javascript";
ga.async = true;
ga.src =
("https:" === document.location.protocol
? "https://ssl"
: "http://www") + ".google-analytics.com/ga.js";
(
document.getElementsByTagName("head")[0] ||
document.getElementsByTagName("body")[0]
).appendChild(ga);
})();
</script>
</head>
<body>
<div class="container">
<div class="top">
<h1>Miracle: Sega Master System emulator</h1>
<div class="help">
Miracle is a Javascript Sega Master System emulator that runs totally
inside your browser.<br />
Use the cursor keys and <span class="key">Z/Y</span> and
<span class="key">X</span> to control the emulator.
<span class="key">P</span> is the pause button,
<span class="key">R</span> resets.<br />
There's a built-in debugger; hit <span class="key">Backspace</span> to
bring it up.
</div>
<div id="menu">
<button class="menu_start">Play</button>
<button class="menu_stop">Pause</button>
<button class="menu_step">Step</button>
<button class="menu_stepOver">Step Over</button>
<button class="menu_stepOut">Step Out</button>
<button class="menu_reset" style="margin-left: 50px">Reset</button>
<button class="menu_showRomChooser">Open ROM</button>
<button class="menu_showAbout">About Miracle</button>
</div>
</div>
<div class="main" id="holder">
<canvas id="screen" width="256" height="192"></canvas>
<div id="debug">
<div id="disassembly">
<div class="template">
<span class="dis_addr">0000</span
><span class="instr_bytes">11 22 33 44 55</span
><span class="disassembly">LD A,(HL)</span>
</div>
</div>
<div id="registers">
<div>
<span class="flag" id="z80_flag_c">C</span
><span class="flag" id="z80_flag_n">C</span
><span class="flag" id="z80_flag_p">C</span
><span class="flag" id="z80_flag_3">_</span
><span class="flag" id="z80_flag_h">C</span
><span class="flag" id="z80_flag_5">_</span
><span class="flag" id="z80_flag_z">C</span
><span class="flag" id="z80_flag_s">C</span>
</div>
<div>
<span class="register">AF</span>:
<span class="h" id="z80_a">00</span
><span class="l" id="z80_f">00</span>
</div>
<div>
<span class="register">BC</span>:
<span class="h" id="z80_b">00</span
><span class="l" id="z80_c">00</span>
</div>
<div>
<span class="register">DE</span>:
<span class="h" id="z80_d">00</span
><span class="l" id="z80_e">00</span>
</div>
<div>
<span class="register">HL</span>:
<span class="h" id="z80_h">00</span
><span class="l" id="z80_l">00</span>
</div>
<div>
<span class="register">IX</span>:
<span class="h" id="z80_ixh">00</span
><span class="l" id="z80_ixl">00</span>
</div>
<div>
<span class="register">IY</span>:
<span class="h" id="z80_iyh">00</span
><span class="l" id="z80_iyl">00</span>
</div>
<br />
<div>
<span class="register">SP</span>: <span id="z80_sp">0000</span>
</div>
<div>
<span class="register">PC</span>: <span id="z80_pc">0000</span>
</div>
<div id="vdp_registers">
<div class="template">
<span class="register">00</span>:<span class="value">00</span>
</div>
</div>
<div id="pages">
<div>
<span class="register">p0</span>:<span class="value">00</span>
</div>
<div>
<span class="register">p1</span>:<span class="value">00</span>
</div>
<div>
<span class="register">p2</span>:<span class="value">00</span>
</div>
</div>
</div>
</div>
</div>
<br />
<div id="rom_chooser">
<div>Open ROM file: <input type="file" id="file_upload" /></div>
<p>Or select a game:</p>
<ul id="rom_list">
<li class="template rom-to-select">
<a href="javascript:void(0)">A rom</a>
</li>
</ul>
<a id="hideRomChooser" href="javascript:void(0)" class="close_button"
>Close</a
>
</div>
<div id="about">
<h1>Miracle</h1>
<h2>a Sega Master System emulator in Javascript</h2>
<p>By <a href="http://xania.org/">Matt Godbolt</a></p>
<p>
Based on
<a href="http://matt.west.co.tt/category/javascript/jsspeccy/"
>JSSpeccy</a
>
by <a href="http://matt.west.co.tt/">Matt Westcott</a>
</p>
<p>
..which in turn is based on
<a href="http://fuse-emulator.sourceforge.net/">Fuse</a> by Philip
Kendall et al. Icons from
<a href="http://www.icon-king.com/projects/nuvola/">Nuvola</a> by
David Vignoni.
</p>
<div id="licence">
<p>
This program is
<a href="http://github.com/mattgodbolt/Miracle">free software</a>:
you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later
version.
</p>
<p>
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
</p>
<p>
You should have received a copy of the GNU General Public License
along with this program. If not, see <<a
href="http://www.gnu.org/licenses/"
>http://www.gnu.org/licenses/</a
>>.
</p>
</div>
<a id="hideAbout" href="javascript:void(0)" class="close_button"
>Close</a
>
</div>
</div>
</body>
</html>