-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·234 lines (211 loc) · 9.31 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="author" content="Alan G. Labouseur, Bob Nisco, and John Paul Welsh" />
<link rel="stylesheet" href="dist/styles/tsos.css" type="text/css" media="screen" />
<title>
jip-os - a browser-based virtual Operating System in TypeScript
</title>
<!-- Globals CONSTANTS and _Variables. Must included be first. -->
<script type="text/javascript" src="dist/scripts/globals.js"></script>
<!-- Host (Hardware Simulation) Routines -->
<script type="text/javascript" src="dist/scripts/host/control.js"></script>
<script type="text/javascript" src="dist/scripts/host/devices.js"></script>
<script type="text/javascript" src="dist/scripts/host/cpu.js"></script>
<script type="text/javascript" src="dist/scripts/host/fileSystem.js"></script>
<script type="text/javascript" src="dist/scripts/host/memory.js"></script>
<!-- Virtual OS Routines: Make sure Kernel code is last, since it needs those above it. -->
<script type="text/javascript" src="dist/scripts/os/interrupt.js"></script>
<script type="text/javascript" src="dist/scripts/os/canvastext.js"></script>
<script type="text/javascript" src="dist/scripts/os/console.js"></script>
<script type="text/javascript" src="dist/scripts/os/deviceDriver.js"></script>
<script type="text/javascript" src="dist/scripts/os/deviceDriverKeyboard.js"></script>
<script type="text/javascript" src="dist/scripts/os/deviceDriverFileSystem.js"></script>
<script type="text/javascript" src="dist/scripts/os/memoryManager.js"></script>
<script type="text/javascript" src="dist/scripts/os/processControlBlock.js"></script>
<script type="text/javascript" src="dist/scripts/os/queue.js"></script>
<script type="text/javascript" src="dist/scripts/os/scheduler.js"></script>
<script type="text/javascript" src="dist/scripts/os/shell.js"></script>
<script type="text/javascript" src="dist/scripts/os/shellCommand.js"></script>
<script type="text/javascript" src="dist/scripts/os/userCommand.js"></script>
<script type="text/javascript" src="dist/scripts/os/kernel.js"></script>
<!-- Other Routines -->
<script type="text/javascript" src="dist/scripts/utils.js"></script>
<!-- Uncomment this line below to enable Glados testing -->
<!-- <script type="text/javascript" src="http://www.labouseur.com/courses/os/projects/glados.js"></script> -->
</head>
<body onload="onDocumentLoad();">
<!-- Program 1: Calculate and print 7, overwrite program -->
<!-- A9 03 8D 00 00 A9 04 6D 00 00 8D 01 00 A2 01 AC 01 00 FF 00 -->
<!-- Program 2: Calculate and print 7, don't overwrite program -->
<!-- A9 03 8D 18 00 A9 04 6D 18 00 8D 19 00 A2 01 AC 19 00 FF 00 -->
<!-- Program 3: Print 12DONE -->
<!-- A9 03 8D 41 00 A9 01 8D 40 00 AC 40 00 A2 01 FF EE 40 00 AE 40 00 EC 41 00 D0 EF A9 44 8D 42 00 A9 4F 8D 43 00 A9 4E 8D 44 00 A9 45 8D 45 00 A9 00 8D 46 00 A2 02 A0 42 FF 00 -->
<!-- Tom Wojnar's Memory-Eating Program of Doom -->
<!-- A9 A9 A2 01 EC 13 00 AC 0B 00 8D 14 00 EE 0B 00 D0 F5 00 00 -->
<div id="divMain" style="width:100%;">
<div id="divButtonBar" class="pageDivs" style="margin:4px;">
<input type="button"
id = "btnStartOS"
name="brnStartOS"
class="normal_button"
value="Start"
tabindex="0"
onclick="TSOS.Control.hostBtnStartOS_click(this);">
<input type="button"
id = "btnHaltOS"
name="brnHaltOS"
class="normal_button"
disabled="disabled"
value="Halt"
tabindex="1"
onclick="TSOS.Control.hostBtnHaltOS_click();">
<input type="button"
id = "btnReset"
name="brnReset"
class="normal_button"
disabled="disabled"
value="Reset"
tabindex="2"
onclick="TSOS.Control.hostBtnReset_click();">
<input type="button"
id="btnSingleStepStart"
name="btnSingleStepStart"
class="normal_button"
disabled="disabled"
value="Start Single Step"
tabindex="3"
onclick="TSOS.Control.startSingleStep();">
<input type="button"
id="btnSingleStepMakeStep"
name="btnSingleStepMakeStep"
class="normal_button"
disabled="disabled"
value="Make Step"
tabindex="4"
onclick="TSOS.Control.makeSingleStep();">
<input type="button"
id="btnSingleStepEnd"
name="btnSingleStepEnd"
class="normal_button"
disabled="disabled"
value="End Single Step"
tabindex="5"
onclick="TSOS.Control.endSingleStep();">
<div id="divSingleStepStatus"
style="background-color: #909993; display: none;">
Single-Step Mode is active. Click 'Make Step' to continue.
</div>
</div>
<div id="divStatusBar" style="margin: 4px; width: 500px; height: 15px; margin-top: 5px;">
<label>
Time and Date: <span id="spanDateAndTime"></span>, Status: <span id="statusMess"></span>
</label>
</div>
<div id="divColumn1">
<div id="divConsole" class="pageDivs" style="margin:4px; width:500px; height:630px;">
<canvas id="display"
width="500px"
height="630px"
tabindex="6">
</canvas>
</div>
<div id="divFileSystem" class="pageDivs" style="margin:4px; width:500px; height:500px; overflow-y: auto;">
<label>
File System
<br>
<table id="tableFileSystem" style="background-color: #909993;">
</table>
</label>
</div>
</div>
<div id="divColumn2">
<div id="divLog" class="pageDivs">
<label>
Host Log
<br>
<textarea name="taHostLog"
id ="taHostLog"
rows="26"
cols="48"
style="background-color: #909993;">
</textarea>
</label>
</div>
<div id="divUserProgramInput" class="pageDivs">
<label>
User Program Input
<br>
<!--Don't move this element's end tag,
putting it on a new line made the box
have a bunch of whitespace in it.-->
<textarea name="taProgramInput"
id ="taProgramInput"
rows="8"
cols="48"
style="background-color: #909993;"></textarea>
</label>
</div>
</div>
<div id="divColumn3">
<div id="divMemoryDisplay" class="pageDivs" style="height: 320px; width: 230px; overflow-y: auto;">
<label>
Memory (Scrollable)
<br>
<table id="tableMemory" style="background-color: #909993;">
</table>
</label>
</div>
<div id="divCPUComponentsDisplay" class="pageDivs" style="width: 250px;">
<label>
CPU Information
<br>
<table id="tableCPUComponents" style="background-color: #909993;">
<tr style="text-align: center;">
<th>PC</th>
<th>Accum</th>
<th>X-Reg</th>
<th>Y-Reg</th>
<th>Z-Flag</th>
</tr>
<tr style="text-align: center;">
<td id="tdPC"></td>
<td id="tdAccum"></td>
<td id="tdXReg"></td>
<td id="tdYReg"></td>
<td id="tdZFlag"></td>
</tr>
</table>
</label>
</div>
<div id="divReadyQueueDisplay" class="pageDivs" style="width: 450px;">
<label>
Ready Queue
<br>
<table id="tableReadyQueue" style="background-color: #909993;">
<tr>
<th>PID</th>
<th>PC</th>
<th>Accum</th>
<th>X-Reg</th>
<th>Y-Reg</th>
<th>Z-Flag</th>
<th>State</th>
<th>Priority</th>
</tr>
</table>
</label>
</div>
</div>
</div>
<p class="footerText" style="clear:both;">
<br>
Copyright © 2008 - 2014 No Rights Reserved.
<br>
Reproduction is prohibited without the express written consent of
Ted Codd, Stevie Ray Vaughan, Ian Fleming, and George Lucas. Actually,
we can just skip George Lucas.
</p>
</body>
</html>