-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (79 loc) · 2.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chip 8</title>
<link rel="stylesheet" href="/css/style.css" />
</head>
<body>
<main class="rom">
<div class="display">
<canvas id="display"></canvas>
<div class="display__stats">
<span class="display__stats__fps"></span>
<button onclick="chip8.clearFrameBuffer()">clear</button>
</div>
</div>
<!-- DISASSEMBLY -->
<div class="disass">
<div class="top">
<span>DISASSEMBLY</span>
<button
id="refresh-disass"
onclick="chip8Debugger.updateDisassembly()"
>
refresh
</button>
<button id="start-stop-continue">start</button>
<button id="step" onclick="chip8Debugger.stepInstruction()">
step instruction
</button>
<button id="auto-update">auto update is on</button>
</div>
<div class="scroll">
<pre><code id="disass-dump"></code></pre>
</div>
</div>
<!-- REG & STACK -->
<div class="reg">
<div class="top">
<span>REG & STACK</span>
<button id="refresh" onclick="chip8Debugger.updateRegDump()">
refresh
</button>
</div>
<pre><code id="reg-dump"></code></pre>
</div>
<!-- VMEM -->
<div class="vmem">
<div class="top">
<span>VMEM</span>
<button id="refresh" onclick="chip8Debugger.updateVmemDump()">
refresh
</button>
<span id="vmem-md5" class="md5"></span>
</div>
<pre><code id="vmem-dump"></code></pre>
</div>
<!-- HEAP -->
<div class="mem">
<div class="top">
<span>HEAP</span>
<button id="refresh" onclick="chip8Debugger.updateHeapDump()">
refresh
</button>
<span id="heap-md5" class="md5"></span>
</div>
<pre><code id="heap-dump"></code></pre>
</div>
</main>
<!-- p5 -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js"></script>
<!-- md5 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/core.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/md5.js"></script>
<!-- chip8 -->
<script src="/js/sketch.js"></script>
</body>
</html>