@@ -29,128 +29,80 @@ <h2><a href="./index.html" title="Back to main page">IBCM Interface</a></h2>
29
29
</ div > <!-- id="top" -->
30
30
31
31
<!-- Main Content Container -->
32
- < div id =" content2 " >
32
+ < div >
33
33
< p class ="center "> < a href ="directions.html "> Directions for how to use this simulator</ a > are available.</ p >
34
- < table border ="7 " cellpadding ="10 ">
35
- <!-- Browse section -->
36
- < tr >
37
- < td colspan ="2 " align ="center ">
38
- < p class ="center ">
39
- Load IBCM file:
40
- < input type ="file " name ="userfile " id ="userfile " />
41
- </ p >
42
- < p class ="center danger " id ="error ">
43
- </ p >
44
- < p class ="center ">
45
- Load all of memory:
46
- < input type ="checkbox " id ="loadmem " name ="loadmem ">
47
- (leave unchecked if unsure)
48
- </ p >
49
- < p class ="center ">
50
- Enable watchdog timer:
51
- < input type ="checkbox " id ="watchtimer " name ="watchtimer ">
52
- (check to guard against infinite loops)
53
- </ p >
54
- < p id ="watchwarning " class ="center danger "> </ p >
55
- </ td >
56
- </ tr >
57
-
58
- <!-- Mem Table -->
59
- < tr >
60
- < td >
61
- < div id ="tabletitle ">
62
- < table border ="7 " width ="300 ">
63
- < tr >
64
- < th > Mem</ th >
65
- < th > Value</ th >
66
- < th > PC</ th >
67
- </ tr >
68
- </ table >
69
- </ div >
70
- < div id ="tbl-container ">
71
- < div id ="memtable "> </ div >
72
- </ div > <!-- id="tbl-container" -->
73
- </ td >
74
-
75
- <!-- Accum and Input Section -->
76
- < td valign ="top ">
77
-
78
- < table border =0 >
79
- < tr >
80
- < td >
81
- < p class ="righttitle "> Accumulator (hex): </ p >
82
- </ td >
83
- < td > < input name ="accum " id ="accum " type ="text " value ="0000 " readonly ="readonly "/> </ td >
84
- </ tr >
85
- < tr >
86
- < td > </ td >
87
- < td > </ td >
88
- </ tr >
89
- < tr >
90
- < td >
91
- < p class ="righttitle "> PC (hex): </ p >
92
- </ td >
93
- < td > < input name ="pc " id ="pc " type ="text " value ="0000 " readonly ="readonly "/> </ td >
94
- </ tr >
95
- < tr >
96
- < td > </ td >
97
- < td > </ td >
98
- </ tr >
99
- < tr >
100
- < td >
101
- < p class ="righttitle ">
102
- < div id ="bptitle "> Breakpoint (4 digits): </ div >
103
- </ p >
104
- </ td >
105
- < td > < input name ="breakpoint " id ="breakpoint " type ="text " value ="" /> </ td >
106
- </ tr >
107
- < tr >
108
- < td > </ td >
109
- < td > </ td >
110
- </ tr >
34
+ < div class ="grid ">
35
+ < div class ="settings ">
36
+ < p class ="center ">
37
+ Load IBCM file:
38
+ < input type ="file " id ="userfile " />
39
+ </ p >
40
+ < p class ="center danger " id ="error ">
41
+ </ p >
42
+ < p class ="center ">
43
+ Load all of memory:
44
+ < input type ="checkbox " id ="loadmem ">
45
+ (leave unchecked if unsure)
46
+ </ p >
47
+ < p class ="center ">
48
+ Enable watchdog timer:
49
+ < input type ="checkbox " id ="watchtimer ">
50
+ (check to guard against infinite loops)
51
+ </ p >
52
+ < p id ="watchwarning " class ="center danger "> </ p >
53
+ </ div >
54
+ < div class ="table ">
55
+ < table border ="7 " width ="300 " id ="instructionsTable ">
56
+ < thead >
111
57
< tr >
112
- < td >
113
- < p class ="righttitle ">
114
- < div id ="inputtitle "> Input: </ div >
115
- </ p >
116
- </ td >
117
- < td > < input name ="input " id ="input " type ="text " value ="0 " /> </ td >
58
+ < th > Mem</ th >
59
+ < th > Value</ th >
60
+ < th > PC</ th >
118
61
</ tr >
119
- </ table >
120
-
121
- < p > </ p > < hr /> < p > </ p >
122
-
123
- < table border ="5 " cellpadding ="25 ">
124
- < tr >
125
- < td > < input name ="Runner " type ="button " value ="Run " onclick ='run_simulator() '/> </ td >
126
- < td > < input name ="Stepper " type ="button " value ="Step " onclick ="step_simulator() " /> </ td >
127
- </ tr >
128
- < tr >
129
- < td > < input name ="Resetter " type ="button " value ="Reset " onclick ="reset() " /> </ td >
130
- < td > < input name ="Reverter " type ="button " value ="Revert " onclick ="revert() " /> </ td >
131
- </ tr >
132
- </ table >
133
-
134
- < p > </ p >
135
-
136
- < hr />
137
-
138
- < p > </ p >
139
-
140
- <!-- Display Section -->
141
- < p class ="center "> Output</ p >
142
- < textarea name ="output " id ="output " cols ="40 " rows ="15 " readonly ="readonly "> </ textarea >
143
-
144
- <!-- Separation Divider -->
145
- < div id ="clear "> </ div >
146
- </ td >
147
- </ tr >
148
- </ table >
149
- </ div > <!-- id="content2" -->
62
+ </ thead >
63
+ < tbody >
64
+ </ tbody >
65
+ </ table >
66
+ </ div >
67
+ < div class ="controls ">
68
+ < div class ="internal ">
69
+ < div >
70
+ < div class ="input-group ">
71
+ < label for ="accum "> Accumulator (hex):</ label >
72
+ < input id ="accum " type ="text " value ="0000 " readonly ="readonly "/>
73
+ </ div >
74
+ < div class ="input-group ">
75
+ < label for ="pc "> PC (hex):</ label >
76
+ < input id ="pc " type ="text " value ="0000 " readonly ="readonly "/>
77
+ </ div >
78
+ < div class ="input-group ">
79
+ < label id ="bptitle " for ="breakpoint "> Breakpoint (4 digits):</ label >
80
+ < input id ="breakpoint " type ="text " value ="" />
81
+ </ div >
82
+ < div class ="input-group ">
83
+ < label id ="inputtitle " for ="input "> Input:</ label >
84
+ < input id ="input " type ="text " value ="0 " />
85
+ </ div >
86
+ </ div >
87
+ < hr class ="divider ">
88
+ < div class ="control-grid ">
89
+ < button onclick ="run_simulator() "> Run</ button >
90
+ < button onclick ="step_simulator() "> Step</ button >
91
+ < button onclick ="reset() "> Reset</ button >
92
+ < button onclick ="revert() "> Revert</ button >
93
+ </ div >
94
+ < hr class ="divider ">
95
+ < div class ="output-group ">
96
+ < label for ="output "> Output</ label >
97
+ < textarea id ="output " cols ="40 " rows ="15 " readonly ="readonly "> </ textarea >
98
+ </ div >
99
+ </ div >
100
+ </ div >
101
+ </ div >
102
+ </ div >
150
103
151
104
<!-- Footer -->
152
105
< div id ="footer "> </ div >
153
-
154
106
</ div > <!-- id="wrap" -->
155
107
156
108
< script src ="simulator.js "> </ script >
0 commit comments