-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
executable file
·70 lines (60 loc) · 2.42 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Brookshear Machine emulator</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<a href="https://github.com/joeledstrom/brookshear-emu" target="_blank">
<img style="position: absolute; top: 0; right: 0; border: 0;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"
alt="Fork me on GitHub">
</a>
<a id="hashlink" class="with_margin" href="" target="_blank">
Shareable link for reproducing the current memory contents (opens in a new window/tab)
</a>
<div id="float-container">
<div id="cpu" class="block">
<h1>CPU</h1>
<div id="gprs_container"></div>
<div id="pc_and_ir">
<table>
<tr><th>PC</th><td><span id="pc_value"></span></td></tr>
<tr><th>IR</th><td><span id="ir_value"></span></td></tr>
<tr><th>Decoded</th><td><span id="dec_value"></span></td></tr>
</table>
<div id="status">
<span id="fetch">FETCH</span>
<span id="decode">DECODE</span>
<span id="execute">EXECUTE</span>
<div id="buttons">
<p><input type="button" value="Clear and Run" id="clear_and_run"></p>
<p><input type="button" value="Clear CPU" id="clear"></p>
<p><input type="button" value="Run" id="run"></p>
<p><input type="button" value="Step" id="step"></p>
</div>
<p><label for="wait_time">Wait time: </label><input type="number" value="100" id="wait_time" placeholder="Wait time" /></p>
</div>
</div>
</div>
<div id="memory" class="block">
<h1>Memory</h1>
</div>
<div class="block">
<h1>Inspector</h1>
<div id="inspector">
<table>
<tr><th>address</th><td><span id="addr"></span></td></tr>
<tr><th>hex</th><td><span id="hex_value"></span></td></tr>
<tr><th>binary</th><td><span id="binary_value"></span></td></tr>
<tr><th>signed</th><td><span id="signed_value"></span></td></tr>
<tr><th>float</th><td><span id="float_value"></span></td></tr>
</table>
</div>
</div>
</div>
<div class="with_margin">Copyright © 2013-2017 Joel Edström. Licensed under the MIT License.</div>
<script type="text/javascript" src="./target/scala-2.12/brookshear-emu-opt.js"></script>
</body>
</html>