-
Notifications
You must be signed in to change notification settings - Fork 0
/
shangO1.sim
598 lines (598 loc) · 13.4 KB
/
shangO1.sim
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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
PC 0x0040052c
INSTRUCTION MEMORY
0x00400018 0x27bdffe0
0x0040001c 0xafbf0014
0x00400020 0x0c10003a
0x00400024 0x00000000
0x00400028 0x0c10015b
0x0040002c 0x00000000
0x00400030 0x8fbf0014
0x00400034 0x27bd0020
0x00400038 0x03e00008
0x0040003c 0x00000000
0x00400040 0x27bdffe0
0x00400044 0xafb10014
0x00400048 0x3c110044
0x0040004c 0x92220964
0x00400050 0xafbf0018
0x00400054 0x14400019
0x00400058 0xafb00010
0x0040005c 0x3c100044
0x00400060 0x8e020618
0x00400064 0x00000000
0x00400068 0x8c430000
0x0040006c 0x00000000
0x00400070 0x10600009
0x00400074 0x24420004
0x00400078 0x0060f809
0x0040007c 0xae020618
0x00400080 0x8e020618
0x00400084 0x00000000
0x00400088 0x8c430000
0x0040008c 0x00000000
0x00400090 0x1460fff9
0x00400094 0x24420004
0x00400098 0x3c020000
0x0040009c 0x24420000
0x004000a0 0x10400005
0x004000a4 0x24020001
0x004000a8 0x3c040040
0x004000ac 0x0c000000
0x004000b0 0x248405fc
0x004000b4 0x24020001
0x004000b8 0xa2220964
0x004000bc 0x8fbf0018
0x004000c0 0x8fb10014
0x004000c4 0x8fb00010
0x004000c8 0x03e00008
0x004000cc 0x27bd0020
0x004000d0 0x27bdffe8
0x004000d4 0xafbf0010
0x004000d8 0x8fbf0010
0x004000dc 0x00000000
0x004000e0 0x03e00008
0x004000e4 0x27bd0018
0x004000e8 0x3c020000
0x004000ec 0x27bdffe8
0x004000f0 0x3c040040
0x004000f4 0x3c050044
0x004000f8 0x24420000
0x004000fc 0xafbf0010
0x00400100 0x248405fc
0x00400104 0x10400003
0x00400108 0x24a50968
0x0040010c 0x0c000000
0x00400110 0x00000000
0x00400114 0x3c040044
0x00400118 0x8c830610
0x0040011c 0x3c020000
0x00400120 0x10600007
0x00400124 0x24590000
0x00400128 0x24840610
0x0040012c 0x13200004
0x00400130 0x00000000
0x00400134 0x8fbf0010
0x00400138 0x03200008
0x0040013c 0x27bd0018
0x00400140 0x8fbf0010
0x00400144 0x00000000
0x00400148 0x03e00008
0x0040014c 0x27bd0018
0x00400150 0x27bdffe8
0x00400154 0xafbf0010
0x00400158 0x8fbf0010
0x0040015c 0x00000000
0x00400160 0x03e00008
0x00400164 0x27bd0018
0x00400168 0x0810007c
0x0040016c 0x00004021
0x00400170 0x90e20000
0x00400174 0x00000000
0x00400178 0xa0c20000
0x0040017c 0x24630001
0x00400180 0x24e70001
0x00400184 0x24020015
0x00400188 0x1462fff9
0x0040018c 0x24c60001
0x00400190 0x25080001
0x00400194 0x24020028
0x00400198 0x15020016
0x0040019c 0x00081080
0x004001a0 0x00003021
0x004001a4 0x00804821
0x004001a8 0x00a04021
0x004001ac 0x24070050
0x004001b0 0x00c51021
0x004001b4 0x00861821
0x004001b8 0x8c630348
0x004001bc 0x24c60004
0x004001c0 0x14c7fffb
0x004001c4 0xac430348
0x004001c8 0x00002021
0x004001cc 0x240500a0
0x004001d0 0x00881021
0x004001d4 0x00891821
0x004001d8 0x8c630398
0x004001dc 0x24840004
0x004001e0 0x1085000b
0x004001e4 0xac430398
0x004001e8 0x08100075
0x004001ec 0x00881021
0x004001f0 0x00081080
0x004001f4 0x00081900
0x004001f8 0x00431021
0x004001fc 0x00481021
0x00400200 0x00823821
0x00400204 0x00a23021
0x00400208 0x0810005c
0x0040020c 0x00001821
0x00400210 0x03e00008
0x00400214 0x00000000
0x00400218 0x18c0001f
0x0040021c 0x00001021
0x00400220 0x80870000
0x00400224 0x80a30000
0x00400228 0x00000000
0x0040022c 0x00e3102a
0x00400230 0x14400015
0x00400234 0x00000000
0x00400238 0x0067102a
0x0040023c 0x14400014
0x00400240 0x00004021
0x00400244 0x0810009e
0x00400248 0x25080001
0x0040024c 0x00881021
0x00400250 0x80470000
0x00400254 0x00a81021
0x00400258 0x80430000
0x0040025c 0x00000000
0x00400260 0x00e3102a
0x00400264 0x14400008
0x00400268 0x00000000
0x0040026c 0x0067102a
0x00400270 0x14400007
0x00400274 0x25080001
0x00400278 0x14c8fff4
0x0040027c 0x00001021
0x00400280 0x081000a6
0x00400284 0x00000000
0x00400288 0x03e00008
0x0040028c 0x2402ffff
0x00400290 0x03e00008
0x00400294 0x24020001
0x00400298 0x03e00008
0x0040029c 0x00000000
0x004002a0 0x00a01021
0x004002a4 0x90a30000
0x004002a8 0x00000000
0x004002ac 0xa0830000
0x004002b0 0x24a50001
0x004002b4 0x80420001
0x004002b8 0x00000000
0x004002bc 0x1440fff8
0x004002c0 0x24840001
0x004002c4 0x03e00008
0x004002c8 0x00000000
0x004002cc 0x27bdfda0
0x004002d0 0xafbf0258
0x004002d4 0xafb50254
0x004002d8 0xafb40250
0x004002dc 0xafb3024c
0x004002e0 0xafb20248
0x004002e4 0xafb10244
0x004002e8 0xafb00240
0x004002ec 0x00a0a821
0x004002f0 0x081000ec
0x004002f4 0x00003821
0x004002f8 0x90c20000
0x004002fc 0x00000000
0x00400300 0xa0620000
0x00400304 0x24a50001
0x00400308 0x24c60015
0x0040030c 0x24020014
0x00400310 0x14a2fff9
0x00400314 0x24630001
0x00400318 0x24e70001
0x0040031c 0x14e50025
0x00400320 0x00873021
0x00400324 0x00002821
0x00400328 0x27a701a0
0x0040032c 0x240600a0
0x00400330 0x00e51021
0x00400334 0x00a41821
0x00400338 0x8c630398
0x0040033c 0x24a50004
0x00400340 0x10a60023
0x00400344 0xac430000
0x00400348 0x081000cd
0x0040034c 0x00e51021
0x00400350 0x8e020000
0x00400354 0x00000000
0x00400358 0x1040000e
0x0040035c 0x02402021
0x00400360 0x02602821
0x00400364 0x0c100086
0x00400368 0x26a60001
0x0040036c 0x1440000a
0x00400370 0x26310001
0x00400374 0x2631ffff
0x00400378 0x26940014
0x0040037c 0x27a201a0
0x00400380 0x1054001a
0x00400384 0x00111080
0x00400388 0x03a21021
0x0040038c 0x081000f5
0x00400390 0xac4001a0
0x00400394 0x26310001
0x00400398 0x26100004
0x0040039c 0x24020028
0x004003a0 0x1622ffeb
0x004003a4 0x26520015
0x004003a8 0x081000fc
0x004003ac 0x00001021
0x004003b0 0x00873021
0x004003b4 0x00071080
0x004003b8 0x00071900
0x004003bc 0x00431021
0x004003c0 0x27a30010
0x004003c4 0x00621821
0x004003c8 0x081000be
0x004003cc 0x00002821
0x004003d0 0x27b40010
0x004003d4 0x02809821
0x004003d8 0x3c020044
0x004003dc 0x2452061c
0x004003e0 0x00008821
0x004003e4 0x081000d4
0x004003e8 0x27b001a0
0x004003ec 0x24020001
0x004003f0 0x8fbf0258
0x004003f4 0x8fb50254
0x004003f8 0x8fb40250
0x004003fc 0x8fb3024c
0x00400400 0x8fb20248
0x00400404 0x8fb10244
0x00400408 0x8fb00240
0x0040040c 0x03e00008
0x00400410 0x27bd0260
0x00400414 0x27bdfb90
0x00400418 0xafbf046c
0x0040041c 0xafbe0468
0x00400420 0xafb70464
0x00400424 0xafb60460
0x00400428 0xafb5045c
0x0040042c 0xafb40458
0x00400430 0xafb30454
0x00400434 0xafb20450
0x00400438 0xafb1044c
0x0040043c 0xafb00448
0x00400440 0x0080a821
0x00400444 0x24020014
0x00400448 0x10a2002b
0x0040044c 0x00a0a021
0x00400450 0x00051080
0x00400454 0x00051900
0x00400458 0x00431021
0x0040045c 0x00451021
0x00400460 0x27a30010
0x00400464 0x0062b821
0x00400468 0x3c020044
0x0040046c 0x2453061c
0x00400470 0x00009021
0x00400474 0x00008821
0x00400478 0x0060f021
0x0040047c 0x0005b080
0x00400480 0x02b11021
0x00400484 0x8c420398
0x00400488 0x00000000
0x0040048c 0x10400013
0x00400490 0x02a02021
0x00400494 0x0c10005a
0x00400498 0x03c02821
0x0040049c 0x02de1021
0x004004a0 0xac520348
0x004004a4 0x023e1021
0x004004a8 0xac400398
0x004004ac 0x02e02021
0x004004b0 0x0c1000a8
0x004004b4 0x02602821
0x004004b8 0x03c02021
0x004004bc 0x0c1000b3
0x004004c0 0x02802821
0x004004c4 0x10400005
0x004004c8 0x03c02021
0x004004cc 0x0c100105
0x004004d0 0x26850001
0x004004d4 0x14400009
0x004004d8 0x24020001
0x004004dc 0x26520001
0x004004e0 0x26310004
0x004004e4 0x24020028
0x004004e8 0x1642ffe5
0x004004ec 0x26730015
0x004004f0 0x0810013f
0x004004f4 0x00001021
0x004004f8 0x24020001
0x004004fc 0x8fbf046c
0x00400500 0x8fbe0468
0x00400504 0x8fb70464
0x00400508 0x8fb60460
0x0040050c 0x8fb5045c
0x00400510 0x8fb40458
0x00400514 0x8fb30454
0x00400518 0x8fb20450
0x0040051c 0x8fb1044c
0x00400520 0x8fb00448
0x00400524 0x03e00008
0x00400528 0x27bd0470
0x0040052c 0x27bdfbb0
0x00400530 0xafbf0448
0x00400534 0x27a203a8
0x00400538 0x24040001
0x0040053c 0x27a30448
0x00400540 0xac440000
0x00400544 0x24420004
0x00400548 0x1443fffd
0x0040054c 0x00000000
0x00400550 0x27a40010
0x00400554 0x0c100105
0x00400558 0x00002821
0x0040055c 0x8fbf0448
0x00400560 0x00000000
0x00400564 0x03e00008
0x00400568 0x27bd0450
0x0040056c 0x3c020044
0x00400570 0x24420604
0x00400574 0x8c44fffc
0x00400578 0x27bdffe0
0x0040057c 0x2403ffff
0x00400580 0xafb00010
0x00400584 0xafbf0018
0x00400588 0xafb10014
0x0040058c 0x10830008
0x00400590 0x2450fffc
0x00400594 0x2411ffff
0x00400598 0x0080f809
0x0040059c 0x2610fffc
0x004005a0 0x8e040000
0x004005a4 0x00000000
0x004005a8 0x1491fffb
0x004005ac 0x00000000
0x004005b0 0x8fbf0018
0x004005b4 0x8fb10014
0x004005b8 0x8fb00010
0x004005bc 0x03e00008
0x004005c0 0x27bd0020
0x004005c4 0x27bdffe8
0x004005c8 0xafbf0010
0x004005cc 0x8fbf0010
0x004005d0 0x00000000
0x004005d4 0x03e00008
0x004005d8 0x27bd0018
0x004005dc 0x27bdffe0
0x004005e0 0xafbf0014
0x004005e4 0x0c100010
0x004005e8 0x00000000
0x004005ec 0x8fbf0014
0x004005f0 0x27bd0020
0x004005f4 0x03e00008
0x004005f8 0x00000000
DATA MEMORY
0x00440600 0xffffffff
0x00440604 0x00000000
0x00440608 0xffffffff
0x0044060c 0x00000000
0x00440610 0x00000000
0x00440614 0x00000000
0x00440618 0x0044060c
0x0044061c 0x20202020
0x00440620 0x20202020
0x00440624 0x20202020
0x00440628 0x20202020
0x0044062c 0x2020202a
0x00440630 0x00202020
0x00440634 0x20202020
0x00440638 0x20202020
0x0044063c 0x20202020
0x00440640 0x2020202a
0x00440644 0x2a002020
0x00440648 0x20202020
0x0044064c 0x202a2020
0x00440650 0x2020202a
0x00440654 0x20202a20
0x00440658 0x20200020
0x0044065c 0x20202020
0x00440660 0x20202020
0x00440664 0x20202a20
0x00440668 0x20202a2a
0x0044066c 0x2a202000
0x00440670 0x2a202020
0x00440674 0x2a202020
0x00440678 0x20202020
0x0044067c 0x2020202a
0x00440680 0x20202a20
0x00440684 0x00202020
0x00440688 0x20202020
0x0044068c 0x20202020
0x00440690 0x2a2a2020
0x00440694 0x20202a20
0x00440698 0x2a002020
0x0044069c 0x2a202a2a
0x004406a0 0x20202a20
0x004406a4 0x20202020
0x004406a8 0x2a202020
0x004406ac 0x20200020
0x004406b0 0x20202020
0x004406b4 0x20202020
0x004406b8 0x2020202a
0x004406bc 0x2a2a2a2a
0x004406c0 0x20202000
0x004406c4 0x2020202a
0x004406c8 0x2a202020
0x004406cc 0x202a2020
0x004406d0 0x202a202a
0x004406d4 0x20202020
0x004406d8 0x00202020
0x004406dc 0x20202020
0x004406e0 0x2020202a
0x004406e4 0x202a2020
0x004406e8 0x202a2a2a
0x004406ec 0x2000202a
0x004406f0 0x202a2020
0x004406f4 0x202a2020
0x004406f8 0x202a2020
0x004406fc 0x2a202020
0x00440700 0x20200020
0x00440704 0x20202020
0x00440708 0x202a2a20
0x0044070c 0x2020202a
0x00440710 0x202a2020
0x00440714 0x2a202000
0x00440718 0x20202a20
0x0044071c 0x202a2020
0x00440720 0x2a202020
0x00440724 0x20202a20
0x00440728 0x2a202020
0x0044072c 0x00202020
0x00440730 0x20202020
0x00440734 0x2020202a
0x00440738 0x20202a20
0x0044073c 0x202a2a20
0x00440740 0x2a00202a
0x00440744 0x2a2a2020
0x00440748 0x202a2020
0x0044074c 0x20202020
0x00440750 0x2020202a
0x00440754 0x20200020
0x00440758 0x2a20202a
0x0044075c 0x202a202a
0x00440760 0x2020202a
0x00440764 0x202a2020
0x00440768 0x20202000
0x0044076c 0x2020202a
0x00440770 0x2a20202a
0x00440774 0x202a2020
0x00440778 0x20202a20
0x0044077c 0x2a202020
0x00440780 0x0020202a
0x00440784 0x2a2a2a2a
0x00440788 0x20202020
0x0044078c 0x20202020
0x00440790 0x2020202a
0x00440794 0x20002020
0x00440798 0x2a20202a
0x0044079c 0x2020202a
0x004407a0 0x202a2a20
0x004407a4 0x202a2020
0x004407a8 0x20200020
0x004407ac 0x2020202a
0x004407b0 0x20202a20
0x004407b4 0x202a202a
0x004407b8 0x202a202a
0x004407bc 0x20202000
0x004407c0 0x20202020
0x004407c4 0x20202020
0x004407c8 0x202a202a
0x004407cc 0x2a2a2020
0x004407d0 0x202a2a20
0x004407d4 0x00202020
0x004407d8 0x20202a2a
0x004407dc 0x202a2020
0x004407e0 0x2a202020
0x004407e4 0x2a202a20
0x004407e8 0x20002020
0x004407ec 0x20202020
0x004407f0 0x20202a2a
0x004407f4 0x2a202a20
0x004407f8 0x2a202020
0x004407fc 0x2a200020
0x00440800 0x202a2a2a
0x00440804 0x2020202a
0x00440808 0x20202a20
0x0044080c 0x202a2020
0x00440810 0x20202000
0x00440814 0x20202020
0x00440818 0x2020202a
0x0044081c 0x20202a2a
0x00440820 0x202a202a
0x00440824 0x20202a20
0x00440828 0x00202020
0x0044082c 0x2a2a202a
0x00440830 0x202a202a
0x00440834 0x20202a20
0x00440838 0x2a202020
0x0044083c 0x20002020
0x00440840 0x20202a20
0x00440844 0x202a2020
0x00440848 0x2a202a2a
0x0044084c 0x2a202a20
0x00440850 0x2020002a
0x00440854 0x2a2a2a2a
0x00440858 0x20202020
0x0044085c 0x20202020
0x00440860 0x202a2020
0x00440864 0x20202a00
0x00440868 0x2020202a
0x0044086c 0x2a202020
0x00440870 0x202a202a
0x00440874 0x202a2a2a
0x00440878 0x20202020
0x0044087c 0x002a2020
0x00440880 0x2a202a20
0x00440884 0x2a2a2a20
0x00440888 0x2020202a
0x0044088c 0x20202020
0x00440890 0x20002020
0x00440894 0x20202020
0x00440898 0x2020202a
0x0044089c 0x2a2a2020
0x004408a0 0x2a2a202a
0x004408a4 0x202a0020
0x004408a8 0x20202020
0x004408ac 0x2a2a202a
0x004408b0 0x2020202a
0x004408b4 0x2a202a20
0x004408b8 0x2a202000
0x004408bc 0x2a2a2a20
0x004408c0 0x20202a20
0x004408c4 0x2a202020
0x004408c8 0x2020202a
0x004408cc 0x2a2a2020
0x004408d0 0x00202020
0x004408d4 0x2020202a
0x004408d8 0x2a202020
0x004408dc 0x2a2a202a
0x004408e0 0x2a2a202a
0x004408e4 0x2000202a
0x004408e8 0x202a202a
0x004408ec 0x2a20202a
0x004408f0 0x2a2a202a
0x004408f4 0x20202020
0x004408f8 0x2020002a
0x004408fc 0x202a2a2a
0x00440900 0x202a2a2a
0x00440904 0x2020202a
0x00440908 0x2a202020
0x0044090c 0x20202000
0x00440910 0x20202020
0x00440914 0x20202020
0x00440918 0x2a2a2a20
0x0044091c 0x2a202a2a
0x00440920 0x202a2a2a
0x00440924 0x00202a2a
0x00440928 0x2a2a202a
0x0044092c 0x2a202020
0x00440930 0x20202020
0x00440934 0x2a2a2a20
0x00440938 0x20002a2a
0x0044093c 0x2020202a
0x00440940 0x2a2a202a
0x00440944 0x2020202a
0x00440948 0x2a20202a
0x0044094c 0x2a20002a
0x00440950 0x2020202a
0x00440954 0x202a202a
0x00440958 0x2a2a2a2a
0x0044095c 0x20202a2a
0x00440960 0x20202a00
0x00440964 0x00000000