-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchip8.html
24 lines (24 loc) · 1.14 KB
/
chip8.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
<html>
<head>
<title>Midnight CHIP-8</title>
<link rel="stylesheet" href="midnight.css"/>
</head>
<body onload="init()">
<h1>Midnight CHIP-8</h1>
<canvas id="screen" width="640" height="320"></canvas><br/><br/>
<span id="romHelper">Upload ROM: </span><input type="file" id="romInput" onchange="loadROM(this.files)"><br/><br/>
<div>
<button onclick="dumpGraphics()">Dump screen</button>
<button onclick="dumpCPU()">Dump CPU</button>
</div>
<p id="helperText">To use the emulator, upload a CHIP-8 ROM and click the Play button to run.</p>
<p id="helperText2">You can download some CHIP-8 ROMs to play by <a target="_blank" href="https://github.com/dmatlack/chip8/tree/master/roms">clicking here</a>!</p>
<p>Project possible by <a target="_blank" href="http://www.codeslinger.co.uk/pages/projects/chip8.html">this tutorial!</a></p>
<canvas id="memview" width="640" height="320"></canvas>
<pre id="dump"></pre>
<script src="./chip8/fonts.js"></script>
<script src="./chip8/codes.js"></script>
<script src="./chip8/cpu.js"></script>
<script src="./chip8/debugger.js"></script>
</body>
</html>