-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (88 loc) · 2.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<style>
.flex-container {
display: flex;
}
.flex-child {
flex: 1;
border: 1px solid black;
}
.right,
.left,
.far-right,
.bottom-left,
.bottom-right {
margin: 20px;
}
.flex-child {
margin-right: 20px;
margin-top: 20px;
}
th,
td {
border: 1px solid black;
}
</style>
<title>CHIP-8</title>
</head>
<body onload="">
<div class="flex-container">
<div class="flex-child">
<div class="left">
<main>
<h1>CHIP-8 Interpreter and Hardware Emulator</h1>
</main>
<br />
<canvas width=512px height=256px id="screen"></canvas>
<br />
<br />
<input type='file' accept='.ch8' onchange='openFile(event)'><br>
<br />
</div>
</div>
<div class="flex-child">
<div class="right">
<button onclick="memoryDump();" id="memdumpbutton">Dump Memory</button>
<label for="memdumpbutton">(Large values will crash the tab)</label>
<br />
<label for="from">Start byte in decimal</label>
<input type="number" id="from" style="width:50px">
<label for="to">End byte</label>
<input type="number" id="to" style="width:50px">
<br />
<table style="width:100%" id="right-table"></table>
</div>
</div>
<div class="flex-child">
<div class="far-right">
<button onclick="registerDump();">Dump Registers</button>
<br />
<table style="width:100%" id="far-right-table"></table>
</div>
</div>
</div>
<div class="flex-container">
<div class="flex-child" style="height:150px">
<div class="bottom-left">
<p>This is just a test.</p>
</div>
</div>
<div class="flex-child">
<div class="bottom-right">
<p>This is also just a test, but a little different.</p>
</div>
</div>
</div>
<!--This is all the code, doesn't go in any div tags-->
<script src="register.js"></script>
<script src="datahandler.js"></script>
<script src="screen.js"></script>
<script src="initvars.js"></script>
<script src="key.js"></script>
<script src="main.js"></script>
<script src="table.js"></script>
<script src="mod.js"></script>
</body>
</html>