-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·277 lines (261 loc) · 10.8 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="author" content="Alan G. Labouseur and Wendy Ni" />
<link rel="stylesheet" href="tsos.css" type="text/css" media="screen" />
<!-- Bootstrap core CSS -->
<link href="style/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Josefin+Slab:100,300,400,600,700,100italic,300italic,400italic,600italic,700italic" rel="stylesheet" type="text/css">
<!-- Custom styles for this template -->
<link href="style/css/style.css" rel="stylesheet">
<title>
ghOSt - a browser-based virtual Operating System in TypeScript
</title>
<!-- 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/deviceDriverFileSystem.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/pcb.js"></script>
<script type="text/javascript" src="distrib/os/memoryManager.js"></script>
<script type="text/javascript" src="distrib/os/CpuScheduler.js"></script>
<script type="text/javascript" src="distrib/os/LazySwapper.js"></script>
<script type="text/javascript" src="distrib/os/kernel.js"></script>
<!-- Other Routines -->
<script type="text/javascript" src="distrib/utils.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 onload="onDocumentLoad()">
<!-- title, time and status -->
<div class="tagline-upper text-center text-heading text-shadow text-white mt-5 d-none d-lg-block">
<img src="distrib/images/title.png" alt="title" style="padding:10px;">
</div>
<div class="tagline-lower text-center text-expanded text-shadow text-uppercase text-white mb-4 d-none d-lg-block">
<text id="clock"> </text><br />
<text id="usrStatus"> <b>Status: </b> I Lurve Operating Systems </text>
</div>
<div class="navbar-expand-lg navbar-light bg-faded">
<div id="divButtonBar" style="margin:4px;">
<table id="headContent">
<tr>
<td>
<input type="button"
id = "btnStartOS"
name="brnStartOS"
class="normal_button"
value=""
title="Start"
tabindex="0"
onclick="TSOS.Control.hostBtnStartOS_click(this);">
</td>
<td>
<input type="button"
id = "btnHaltOS"
name="brnHaltOS"
class="normal_button stop_button"
disabled="disabled"
value=""
title="Halt"
tabindex="1"
onclick="TSOS.Control.hostBtnHaltOS_click(this);">
</td>
<td>
<input type="button"
id = "btnReset"
name="brnReset"
class="normal_button stop_button"
disabled="disabled"
value=""
title="Reset"
tabindex="2"
onclick="TSOS.Control.hostBtnReset_click(this);">
</td>
<td>
<input type="button"
id = "btnSingle"
name="btnSingle"
disabled="disabled"
value=""
title="Single"
tabindex="3"
onclick="TSOS.Control.hostBtnSingle_click(this);">
</td>
<td>
<input type="button"
id = "btnNext"
name="btnNext"
disabled="disabled"
value=""
title="Next"
tabindex="4"
onclick="TSOS.Control.hostBtnNext_click(this);">
</td>
</tr>
</table>
</div>
</div>
<div id="divMain" class="table-responsive" >
<table id="mainContent">
<tr>
<td>
<div id="divConsole" class="bg-faded p-3 my-4">
<label>
Console
<br>
<canvas id="display"
width="500px"
height="500px"
tabindex="3"
style="margin-left:8px;"
>
</canvas>
</label>
</div>
</td>
<td>
<div id="divLog" class="bg-faded p-3 my-4">
<label>
Host Log
<br>
<textarea name="taHostLog"
id ="taHostLog"
rows="5"
cols="37"
></textarea>
</label>
</div>
<div id="divMemory" class="bg-faded p-3 my-4">
<label>
Memory
<br>
<div class="tableContainer" id="memoryContainer">
</div>
</label>
</div>
</td>
<td>
<div id="divUserProgramInput" class="bg-faded p-3 my-4">
<label>
User Program Input
<br>
<textarea name="taProgramInput"
id ="taProgramInput"
rows="5"
cols="43"
>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</textarea>
</label>
</div>
<div id="divPCB" class="bg-faded p-3 my-4">
<label>
Processes
<br>
<div class="tableContainer" id="pcbContainer">
<table name = "tbProcess"
id = "tbProcess"
class = "tableStyle">
<thead>
<tr style="border-bottom: 1px solid #666666;">
<th width="10%"> PID </th>
<th> PC </th>
<th> IR </th>
<th width="10%"> ACC </th>
<th> X </th>
<th> Y </th>
<th> Z </th>
<th> Pr </th>
<th width="25%"> State </th>
<th width="22%"> Location </th>
</tr>
</thead>
<tbody id="processTbody">
</tbody>
</table>
</div>
</label>
</div>
<div id="divCPU" class="bg-faded p-3 my-4">
<label>
CPU
<br>
<div id="cpuContainer">
<table name = "tbCPU"
id = "tbCPU">
<thead>
<tr style="border-bottom: 1px solid #666666;">
<th> PC </th>
<th> IR </th>
<th> ACC </th>
<th> X </th>
<th> Y </th>
<th> Z </th>
</tr>
</thead>
<tbody>
<tr>
<td id="cPC"> 0 </td>
<td id="cIR"> 0 </td>
<td id="cACC"> 0 </td>
<td id="cX"> 0 </td>
<td id="cY"> 0 </td>
<td id="cZ"> 0 </td>
</tr>
</tbody>
</table>
</div>
<span id="scheduleAlg"><b>Round Robin</b></span>
</label>
</div>
</td>
</tr>
<tr>
<th colspan="3">
<div id="divFileSystem" class="bg-faded p-3">
<label>
Disk
<br>
<div class="tableContainer" id="fsContainer">
</div>
</label>
</div>
</th>
</tr>
</table>
</div>
<footer class="bg-faded text-center">
<div class="container">
<p class="m-0">
<br>
Copyright © 2008 - 2017 No Rights Reserved.
<br>
Reproduction is inhibited without the express written consent of
Ted Codd, Stevie Ray Vaughan, and Ian Fleming.
</p>
</div>
</footer>
<!-- <script>document.getElementsByTagName("body").onload = function() {Control.loadDiskTable()}; </script> -->
<!-- Bootstrap core JavaScript -->
<script src="style/vendor/jquery/jquery.min.js"></script>
<script src="style/vendor/popper/popper.min.js"></script>
<script src="style/vendor/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>