-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·291 lines (265 loc) · 13.2 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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="author" content="Alan G. Labouseur" />
<!-- Bootstrap 5 -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous"> -->
<link rel="stylesheet" href="css/tsos.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/tables.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/buttons.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/grid.css" type="text/css" media="screen" />
<title>
TSOS - a browser-based virtual Operating System in TypeScript
</title>
<!-- bootstrap v4 -->
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> -->
<!-- Globals CONSTANTS and _Variables. Must included be first. -->
<script type="text/javascript" src="distrib/globals.js"></script>
<!-- Host (Virtual Machine / Hardware Simulation) Routines -->
<script type="text/javascript" src="distrib/host/control.js"></script>
<script type="text/javascript" src="distrib/host/devices.js"></script>
<script type="text/javascript" src="distrib/host/cpu.js"></script>
<script type="text/javascript" src="distrib/host/memory.js"></script>
<script type="text/javascript" src="distrib/host/memoryAccessor.js"></script>
<!-- Virtual OS Routines: Make sure Kernel code is last, since it needs those above it. -->
<script type="text/javascript" src="distrib/os/interrupt.js"></script>
<script type="text/javascript" src="distrib/os/canvastext.js"></script>
<script type="text/javascript" src="distrib/os/console.js"></script>
<script type="text/javascript" src="distrib/os/deviceDriver.js"></script>
<script type="text/javascript" src="distrib/os/deviceDriverKeyboard.js"></script>
<script type="text/javascript" src="distrib/os/diskSystemDeviceDriver.js"></script>
<script type="text/javascript" src="distrib/os/queue.js"></script>
<script type="text/javascript" src="distrib/os/shell.js"></script>
<script type="text/javascript" src="distrib/os/shellCommand.js"></script>
<script type="text/javascript" src="distrib/os/userCommand.js"></script>
<script type="text/javascript" src="distrib/os/kernel.js"></script>
<script type="text/javascript" src="distrib/os/memoryManager.js"></script>
<script type="text/javascript" src="distrib/os/pcb.js"></script>
<script type="text/javascript" src="distrib/os/scheduler.js"></script>
<script type="text/javascript" src="distrib/os/dispatcher.js"></script>
<!-- Other Routines -->
<script type="text/javascript" src="distrib/utils.js"></script>
<!-- Initialization -->
<script type="text/javascript" src="test/initialization.js"></script>
<!-- <script type="text/javascript" src="test/test-1.js"></script> -->
<!-- Uncomment the line below to enable GLaDOS testing. -->
<script type="text/javascript" src="http://alanclasses.github.io/TSOS/test/glados-ip4.js"></script>
</head>
<body id="bootstrap-overrides" onload="onDocumentLoad()">
<div class="contatiner">
<!-- For Navigation bar -->
<nav class="navbar navbar-custom" >
<div class="container">
<a href=" "class="navbar-brand">
<img src="css/gold_coin.gif" class="pixelated" height="50px">
<span style="font-size: 45px; vertical-align: -12px; color: #101820FF;">
<svg width="250px"height="auto"viewbox="0 0 160 45">
<text class="svgText" x="2" y="34">OS808</text>
</svg></span>
</a>
<span class="navbar-text">
<div style="display: inline-block; color: #101820FF;" id="date">
<span style="color: #101820FF;" class="label">Date/Time:</span>
<div style="display: inline-block;" id="taDate"></div>
</div>
<div id="status">
<label class="label">
<span style="color: #101820FF;" class="label">Status:</span>
<div style="display: inline-block;" id="taStatus"></div>
</label>
</div>
</span>
</div>
</nav>
<div id="divMain">
<div id="divButtonBar" style="margin:4px; padding: 12px;">
<input type="button"
id = "btnStartOS"
name="btnStartOS"
class="btn btn-primary"
value="Start"
tabindex="0"
onclick="TSOS.Control.hostBtnStartOS_click(this);">
<input type="button"
id = "btnHaltOS"
name="btnHaltOS"
class="btn btn-warning"
disabled="disabled"
value="Halt"
tabindex="1"
onclick="TSOS.Control.hostBtnHaltOS_click(this);">
<input type="button"
id = "btnReset"
name="btnReset"
class="btn btn-danger"
disabled="disabled"
value="Reset"
tabindex="2"
onclick="TSOS.Control.hostBtnReset_click(this);">
<input type="button"
id = "btnToggleStepMode"
name="btnToggleStepMode"
class="btn btn-primary active"
disabled="disabled"
value="ToggleStep"
tabindex="3"
onclick="TSOS.Control.hostBtnToggleStep_click(this);">
<input type="button"
id = "btnStep"
name="btnStep"
class="btn btn-secondary"
disabled="disabled"
value="Step"
tabindex="4"
onclick="TSOS.Control.hostBtnStep_click(this);">
</div>
<div class="wrapper">
<div class="console">
<div id="divConsole">
<canvas id="display"
width="600px"
height="500px"
tabindex="3">
</canvas>
</div>
</div>
<div class="hostLog">
<div class="card" style="padding: 0; width: 590px;">
<div class="card-header">
<svg width="100px"height="auto"viewbox="0 0 100 22">
<text class="svgText" x="2" y="15">Host Log</text>
</svg>
</div>
<div class="card-body overflow-auto">
<textarea name="taHostLog"
id ="taHostLog"
rows="8"
cols="80"
style="resize: none"
></textarea>
</div>
</div>
</div>
<div class="processes">
<div class="card" style="width: 590px; height: 207px;">
<div class="card-header">
<svg width="100px"height="auto"viewbox="0 0 100 22">
<text class="svgText" x="2" y="15">Processes</text>
</svg>
</div>
<div class="card-body overflow-auto" style="height: 212px;">
<span>
<table name="taProcesses" id="taProcesses">
<tr class="tableHeader">
<th>PID</th>
<th>PC</th>
<th>IR</th>
<th>ACC</th>
<th>X</th>
<th>Y</th>
<th>Z</th>
<th>Priority</th>
<th>State</th>
<th>Location</th>
<th>Base</th>
<th>Limit</th>
<th>Segment</th>
<th>Quantum</th>
</tr>
</table>
</span>
</div>
</div>
</div>
<div class="hardDrive">
<div class="card h-100" id="cardHardDrive">
<div class="card-header">
<svg width="100px"height="auto"viewbox="0 0 100 22">
<text class="svgText" x="2" y="15">Hard Drive</text>
</svg></div>
<div class="card-body overflow-auto">
<span>
<table name="taHardDrive" id="taHardDrive">
<tr class="tableHeader">
<th>T:S:B</th>
<th>Used</th>
<th>Next</th>
<th>Data</th>
</tr>
</table>
</span>
</div>
</div>
</div>
<div class="cpu">
<div class="card h-100" id="cardCPU">
<div class="card-header">
<svg width="100px"height="auto"viewbox="0 0 100 22">
<text class="svgText" x="2" y="15">CPU</text>
</svg>
</div>
<div class="card-body overflow-auto">
<span>
<table name="taCpu" id="taCpu">
<tr class="tableHeader">
<th>PC</th>
<th>IR</th>
<th>ACC</th>
<th>X</th>
<th>Y</th>
<th>Z</th>
</tr>
</table>
</span>
</div>
</div>
</div>
<div class="memory">
<div class="card h-100" id="divMemory">
<div class="card-header">
<svg width="100px"height="auto"viewbox="0 0 100 22">
<text class="svgText" x="2" y="15">Memory</text>
</svg>
</div>
<div class="card-body overflow-auto">
<span>
<table name="taMemory"
id="taMemory">
</table>
</span>
</div>
</div>
</div>
<div class="programInput">
<div class="card h-100" id="cardPrgramInput" style="padding: 0; height: auto;">
<div class="card-header">
<svg width="160px"height="auto"viewbox="0 0 160 22">
<text class="svgText" x="2" y="15">User Program Input</text>
</svg>
</div>
<div class="card-body overflow-auto">
<textarea name="taProgramInput"
id="taProgramInput"
rows="5"
cols="10"
style="resize: none"
></textarea>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- <p class="footerText" style="clear:both;">
<br>
Copyright © 2008 - 2019 No Rights Reserved.
<br>
Reproduction is inhibited without the express written consent of
Ted Codd, Stevie Ray Vaughan, and Ian Fleming.
</p> -->
<!-- <img src="https://i.imgur.com/MjeqeUP.gif" class="center" height="60" alt="A cat with a body made of a poptart flying through space while pooping rainbows."> -->
</body>
</html>