forked from labouseur/AlanBBOS2013
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·238 lines (221 loc) · 7.74 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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Alan G. Labouseur" />
<link rel="stylesheet" href="css/bootstrap.css" type="text/css"/>
<link rel="stylesheet" href="css/bootstrap-responsive.css" type="text/css" />
<link rel="stylesheet" href="josf.css" type="text/css" media="screen" />
<title>
jOS F - a Browser-based virtual Operating System
</title>
<!-- Globals CONSTANTS and _Variables. Must included be first. -->
<script type="text/javascript" src="globals.js"></script>
<!-- Host (Hardware Simulation) Routines -->
<script type="text/javascript" src="scripts/host/control.js"></script>
<script type="text/javascript" src="scripts/host/devices.js"></script>
<script type="text/javascript" src="scripts/host/memory.js"></script>
<script type="text/javascript" src="scripts/host/virtualServices.js"></script>
<script type="text/javascript" src="scripts/host/cpu.js"></script>
<!-- Virtual OS Routines: Make sure Kernel code is last, since it needs those above it. -->
<script type="text/javascript" src="scripts/os/interrupt.js"></script>
<script type="text/javascript" src="scripts/os/canvastext.js"></script>
<script type="text/javascript" src="scripts/os/console.js"></script>
<script type="text/javascript" src="scripts/os/deviceDriver.js"></script>
<script type="text/javascript" src="scripts/os/deviceDriverKeyboard.js"></script>
<script type="text/javascript" src="scripts/os/deviceDriverFileSystem.js"></script>
<script type="text/javascript" src="scripts/os/priorityQueue.js"></script>
<script type="text/javascript" src="scripts/os/pcb.js"></script>
<script type="text/javascript" src="scripts/os/memoryManager.js"></script>
<script type="text/javascript" src="scripts/os/programLoader.js"></script>
<script type="text/javascript" src="scripts/os/shell.js"></script>
<script type="text/javascript" src="scripts/os/kernel.js"></script>
<script type="text/javascript" src="scripts/os/scheduler.js"></script>
<!-- Other Routines -->
<script type="text/javascript" src="scripts/utils.js"></script>
<!-- <script type="text/javascript" src="http://www.labouseur.com/courses/os/projects/glados.js"></script> -->
</head>
<body onload="hostInit();">
<div class="page-header">
<center><h1>jOS-F</h1></center>
</div>
<div class="row-fluid">
<center><div id="divButtonBar" class="span4 offset4">
<input type="button"
id = "btnStartOS"
name="brnStartOS"
class="normal_button"
value="Start"
tabindex="0"
onclick="hostBtnStartOS_click(this);">
<input type="button"
id = "btnHaltOS"
name="brnHaltOS"
class="normal_button"
disabled="disabled"
value="Halt"
tabindex="1"
onclick="hostBtnHaltOS_click(this);">
<input type="button"
id = "btnReset"
name="brnReset"
class="normal_button"
disabled="disabled"
value="Reset"
tabindex="2"
onclick="hostBtnReset_click(this);">
</div>
</center>
</div>
<br />
<br />
<div class="container-fluid">
<div id="divConsole" class="row-fluid show-grid" style="width:100%;">
<div class="span4" style="width:402px;">
<ul class="nav nav-tabs">
<li class="active"><a href="#mem" data-toggle="tab">Memory</a></li>
<li><a href="#disk" data-toggle="tab">Disk</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane fade in active" id="mem">
<div id="divMemDisplay" style="">
<table id="memTable">
</table>
</div>
</div>
<div class="tab-pane fade" id="disk">
<div id="divDiskDisplay" style="">
<table id="diskTable">
</table>
</div>
</div>
</div>
<div id="divCPUDisplay">
<table id="cpuTable">
<tr align="center">
<th colspan="5">
CPU
</th>
</tr>
<th>PC</th>
<th>ACC</th>
<th>X</th>
<th>Y</th>
<th>Z</th>
<tr id="cpuData">
<td name="cpuData"></td>
<td name="cpuData"></td>
<td name="cpuData"></td>
<td name="cpuData"></td>
<td name="cpuData"></td>
</tr>
</table>
</div>
<div id="divReadyQueueDisplay">
<table id="rqTable">
<tr align="center">
<th colspan="5">
Ready Queue
</th>
</tr>
<th>PID</th>
<th>State</th>
<th>Base</th>
<th>Limit</th>
<tr id="rq1Data">
<td name="rq1Data"></td>
<td name="rq1Data"></td>
<td name="rq1Data"></td>
<td name="rq1Data"></td>
</tr>
<tr id="rq2Data">
<td name="rq2Data"></td>
<td name="rq2Data"></td>
<td name="rq2Data"></td>
<td name="rq2Data"></td>
</tr>
<tr id="rq3Data">
<td name="rq3Data"></td>
<td name="rq3Data"></td>
<td name="rq3Data"></td>
<td name="rq3Data"></td>
</tr>
<tr id="rq4Data">
<td name="rq4Data"></td>
<td name="rq4Data"></td>
<td name="rq4Data"></td>
<td name="rq4Data"></td>
</tr>
</table>
</div>
<div id="divPCBDisplay">
<table id="pcbTable">
<tr align="center">
<th colspan="5">
Current Process PCB
</th>
</tr>
<th>State</th>
<th>Pid</th>
<th>Base</th>
<th>Limit</th>
<th>Slot</th>
<tr id="pcbData">
<td name="pcbData"></td>
<td name="pcbData"></td>
<td name="pcbData"></td>
<td name="pcbData"></td>
<td name="pcbData"></td>
</tr>
</table>
</div>
</div>
<div class="span6" style="width:500px;">
<canvas id="display"
width="500"
height="500"
tabindex="3">
</canvas>
<div id="divUserProgramInput" style="">
<label>
User Program Input
<br>
<textarea name="taProgramInput"
id ="taProgramInput"
rows="5"
style="width:480px;"
>A9 00 8D 7B 00 A9 00 8D 7B 00 A9 00 8D 7C 00 A9 00 8D 7C 00 A9 01 8D 7A 00 A2 00 EC 7A 00 D0 39 A0 7D A2 02 FF AC 7B 00 A2 01 FF AD 7B 00 8D 7A 00 A9 01 6D 7A 00 8D 7B 00 A9 03 AE 7B 00 8D 7A 00 A9 00 EC 7A 00 D0 02 A9 01 8D 7A 00 A2 01 EC 7A 00 D0 05 A9 01 8D 7C 00 A9 00 AE 7C 00 8D 7A 00 A9 00 EC 7A 00 D0 02 A9 01 8D 7A 00 A2 00 EC 7A 00 D0 AC A0 7F A2 02 FF 00 00 00 00 61 00 61 64 6F 6E 65 00</textarea>
</label>
</div>
</div>
<div class="span2" style="width:206px;">
<div id="divLog">
<label>
Log
<br>
<textarea name="taLog"
id ="taLog"
rows="26"
cols="40"
></textarea>
</label>
</div>
</div>
</div>
</div>
<div class="row-fluid">
<div id="footerText" class="span12">
<br>
Copyright © 2008 - 2013 No Rights Reserved.
<br>
Reproduction is prohibited without the express written consent of
Ted Codd, Stevie Ray Vaughan, and Ian Fleming.
</div>
</div>
<script src="http://code.jquery.com/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<script>
</script>
</body>
</html>