This repository was archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (86 loc) · 3.19 KB
/
Copy pathindex.html
File metadata and controls
86 lines (86 loc) · 3.19 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>TeamCM - Atom Microprocessor</title>
<meta property="og:title" content="TeamCM - Atom Microprocessor">
<meta property="og:description" content="Emulator for Atom Microprocessor">
<link rel="stylesheet" data-name="vs/editor/editor.main" href="/vs/editor/editor.main.css">
<script src="components.js"></script>
<script src="processor.js"></script>
<script src="compiler.js"></script>
<link rel="stylesheet" href="/site.css">
</head>
<body>
<a id="download" download="code.aasm"></a>
<div id="code"></div>
<input type="file">
<button onclick="compile_str();">Compile</button>
<button onclick="makeStep()">Step</button>
<input type="number" id="interval" placeholder="Interval timeout in MS" min="0" max="5000" value="1">
<input type="number" id="stepTimes" placeholder="CPU steps before actually updating" min="1" value="1">
<button onclick="intervalStep();">Interval Step</button>
<button onclick="intervalClear();">Stop Interval</button>
<button onclick="reset()">Reset</button>
<br>
<button onclick="downloadCode()">Download code</button>
<button onclick="downloadBin()">Download ROM</button>
<button onclick="loadCode()">Load code</button>
<button onclick="saveCode()">Save code</button>
<button onclick="uploadCode()">Upload source code</button>
<button onclick="uploadBin()">Upload ROM</button>
<br>
<a href="/docs.html">Docs</a>
<noscript>Activate javascript to use the emulator</noscript>
<br>
<input type="checkbox" id="noUpdateInfo">
<label for="updateInfo">Don't update information (ip, special registers, registers, etc)</label>
<br>
<input type="checkbox" id="noUpdateMemory">
<label for="noUpdateStack">Don't update memory</label>
<br>
<input type="checkbox" id="noUpdateStack"> <!-- my laptop is like, AUUUUGH -->
<label for="noUpdateStack">Don't update stack</label>
<br>
<br>
<input type="checkbox" id="followSection0">
<label for="followSection0">Follow section 0</label>
<div id="screen"></div>
<p id="status"></p>
<table id="registers">
<tr>
<th title="Accumulator">AC</th>
<th title="X Register">XR</th>
<th title="Y Register">YR</th>
<th title="Stack Pointer">SP</th>
<th title="Status Register">STATUS</th>
</tr>
<tr id="rvalues">
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
</table>
<table id="sregs">
<tr>
<th title="Interrupt Flag">IF</th>
<th title="Zero Flag">ZF</th>
<th title="Carry Flag">CF</th>
</tr>
<tr id="srvalues">
<td>false</td>
<td>false</td>
<td>false</td>
</tr>
</table>
<table id="ram-viewer"></table>
<table id="stack"></table>
</body>
<script src="/vs/loader.js"></script>
<script src="/vs/editor/editor.main.nls.js"></script>
<script src="/vs/editor/editor.main.js"></script>
<script src="emulator.js"></script>
</html>