-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
91 lines (91 loc) · 4.05 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
<!DOCTYPE html>
<html lang="en" class="dark-theme">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Atom Fluorine</title>
<link rel="stylesheet" href="theme.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.39.0/min/vs/editor/editor.main.min.css" integrity="sha512-/hTKJ6YcK7JBJmV7HzjxM7LDShlTlamVMPdB0CaQRV5NeVS+ZVx8MogcT8Rw0DMRVGT7rNE+mDSc2QEVuJNdNA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="processor.js"></script>
<script src="memory.js"></script>
<script src="bus.js"></script>
<script src="compiler.js"></script>
</head>
<body>
<a id="download" download="code.aasm"></a>
<div id="code"></div>
<input type="file">
<button onclick="compile_str();" disabled>Compile</button>
<button onclick="makeStep()" disabled>Step</button>
<input type="number" id="interval" placeholder="Interval timeout in MS" min="0" value="200">
<input type="number" id="stepTimes" placeholder="CPU steps before actually updating" min="1" value="1">
<button onclick="intervalStep();" disabled>Interval Step</button>
<button onclick="intervalClear();" disabled>Stop Interval</button>
<button onclick="reset()" disabled>Reset</button>
<button onclick="reset(true)" disabled>Reset CPU</button>
<br>
<button onclick="downloadCode()" disabled>Download code</button>
<button onclick="downloadBin()" disabled>Download ROM</button>
<button onclick="loadCode()" disabled>Load code</button>
<button onclick="saveCode()" disabled>Save code</button>
<button onclick="uploadCode()" disabled>Upload source code</button>
<button onclick="uploadBin()" disabled>Upload ROM</button>
<noscript>Activate javascript to use the emulator</noscript>
<br>
<input type="checkbox" id="noUpdateInfo">
<label for="updateInfo">Don't update information (ip, registers, etc)</label>
<br>
<input type="checkbox" id="noUpdateMemory">
<label for="noUpdateStack">Don't update memory</label>
<br>
<input type="checkbox" id="noUpdateStack">
<label for="noUpdateStack">Don't update stack</label>
<br>
<br>
<input type="checkbox" id="dark-theme">
<label for="dark-theme">Enable dark theme</label>
<br>
<div id="screen"></div>
<p id="status"></p>
<table id="registers">
<tr>
<th title="Accumulator" id="ac-color">AC</th>
<th title="X Register" id="xr-color">XR</th>
<th title="Y Register" id="yr-color">YR</th>
<th title="Stack Pointer Offset" id="sp-color">SPO</th>
<th title="Flag Register" id="sr-color">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="Halted flag">HLT</th>
<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>
<td>false</td>
</tr>
</table>
<table id="ram-viewer"></table>
<table id="stack"></table>
<h5 id="credits">Made with <span id="heart">❤</span> by TeamCM and the project contributors<br>Fork the project and this website at <a href="https://github.com/TeamCM/Atom-Fluorine" target="_blank">GitHub</a></h5>
</body>
<script src="main.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.39.0/min/vs/loader.min.js" integrity="sha512-A+6SvPGkIN9Rf0mUXmW4xh7rDvALXf/f0VtOUiHlDUSPknu2kcfz1KzLpOJyL2pO+nZS13hhIjLqVgiQExLJrw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script async>
require.config({ paths: { 'vs': 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.26.1/min/vs' }});
require(["vs/editor/editor.main"], load);
</script>
</html>