cp0test.s
20.5 KB
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
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
/************************************************************************
CP0 BUS TEST. This test is hand-coded.
************************************************************************/
.word 0x2EE937CC
.word 0x364B567E
.word 0x6BD7541A
.word 0x20683269
.word 0x46F42ED5
.word 0x0831454E
.word 0x21781C20
.word 0x43773FCB
.word 0x25D467C2
.word 0x53CE049B
.word 0x027D060E
.word 0x3C400ADA
.word 0x057B7673
.word 0x05B427F7
.word 0x64B033E1
.word 0x1E1C7D78
.word 0x3EE94EE3
.word 0x7E620671
.word 0x21A60D75
.word 0x431000C2
.word 0x1FAA2CAA
.word 0x23C12E13
.word 0x44411FFF
.word 0x754B2891
.word 0x6F546A7C
.word 0x22A94765
.word 0x662D6D90
.word 0x48AB4EF9
.word 0x250B49AA
.word 0x605C68EA
.word 0x3D652C97
.word 0x24371FCB
.word 0x4CFE299E
.word 0x1C095AA0
.word 0x59AE775D
.word 0x7BA41415
.word 0x1DEA2F62
.word 0x40484981
.word 0x12186B89
.word 0x38D25D9F
.word 0x3E955D18
.word 0x64A26B06
.word 0x2282399B
.word 0x554D426E
.word 0x3B521980
.word 0x7F0810A1
.word 0x79142473
.word 0x23CF6842
.word 0x2B812778
.word 0x45582B41
.word 0x33C570C9
.word 0x49BB101A
.word 0x070E0D75
.word 0x3EDE3ED0
.word 0x4DD544B5
.word 0x68A241AD
.word 0x2BEF6D0D
.word 0x05CF45B6
.word 0x7D527727
.word 0x77C066F0
.word 0x13A84A6F
.word 0x38CE0456
.word 0x40954F6D
.word 0x4D7D5795
.word 0x38C943E6
.word 0x1C694C8D
.word 0x1BC434B2
.word 0x58EE5488
.word 0x2C6C395C
.word 0x6C9A3138
.word 0x06504D7B
.word 0x0B537373
.word 0x5BBA63D3
.word 0x5E4829AD
.word 0x08770F2B
.word 0x719A7A39
.word 0x05655CEC
.word 0x50C6253F
.word 0x08C13D7E
.word 0x7DD92A7C
.word 0x5F2E1662
.word 0x2F520EBC
.word 0x49845A0F
.word 0x00D57D19
.word 0x6B5E418E
.word 0x02953FF1
.word 0x166203D4
.word 0x537F4DA8
.word 0x7E4E26E3
.word 0x32276523
.word 0x21C8469F
.word 0x307375FF
.word 0x73E26D71
.word 0x76095095
.word 0x126F5A9D
.word 0x3D7A59AF
.word 0x15085264
.word 0x782B3E07
.word 0x40DC53D9
.word 0x45076183
.word 0x2D3B5084
.word 0x25E70633
.word 0x24E241B8
.word 0x1FBC6706
.word 0x500437B4
.word 0x3182424F
.word 0x731D3E7C
.word 0x4DE40FFC
.word 0x4E763475
.word 0x43AF5F90
.word 0x6A766EC3
.word 0x40F919E5
.word 0x5CAF4763
.word 0x5D0E22A4
.word 0x51A47107
.word 0x551D1580
.word 0x675C2CB5
.word 0x67A71B35
.word 0x24A83D1E
.word 0x7AA31244
.word 0x193333BF
.word 0x7872076B
.word 0x724E73B9
.word 0x0F8539E6
.word 0x10780671
.word 0x40D02768
.word 0x69B01DE7
.word 0x68ED5BD8
.word 0x447B60D7
.word 0x301100CC
.word 0x17B45C92
.word 0x0CAF68C6
.word 0x1B173899
.word 0x44EE1231
.word 0x548C07FE
.word 0x1ACB5E19
.word 0x2E33547B
.word 0x0F0E76AE
.word 0x61333F4F
.word 0x66EE2177
.word 0x414353DC
.word 0x60837955
.word 0x34F46802
.word 0x41F04C3F
.word 0x66C52639
.word 0x2F4C18B7
.word 0x7AE51D70
.word 0x7355670E
.word 0x55C672A9
.word 0x26D47A5D
.word 0x3F661051
.word 0x62CE153F
.word 0x6F5C6F60
.word 0x696F4E4F
.word 0x4DA55635
.word 0x71B73065
.word 0x742C292F
.word 0x01E1228F
.word 0x3D1B290B
.word 0x049853D1
.word 0x69E43B00
.word 0x04D9269D
.word 0x2F0E169C
.word 0x3CA65811
.word 0x30C0755C
.word 0x62705EF3
.word 0x3C0E200E
.word 0x61423E6C
.word 0x490775E7
.word 0x67AD4887
.word 0x117B4964
.word 0x79770C69
.word 0x488C2EE1
.word 0x70026C4E
.word 0x3EFB18FA
.word 0x157E1748
.word 0x00305EA5
.word 0x46CE62B6
.word 0x3406070C
.word 0x483B3F85
.word 0x515D772B
.word 0x38DB4729
.word 0x6D5D5D2E
.word 0x50BF1C5A
.word 0x338A7588
.word 0x55DF1B8F
.word 0x528C05D3
.word 0x73C6173B
.word 0x69BC296A
.word 0x61FE1BCA
.word 0x436E4BC8
.word 0x0539775A
.word 0x68016C9F
.word 0x7744013A
.word 0x55A709B8
.word 0x21AC5D23
.word 0x68F54A8D
.word 0x572D3638
.word 0x422A49A8
.word 0x17DE2DBF
.word 0x333F17BA
.word 0x6C1F799D
.word 0x02B3547A
.word 0x023E6E93
.word 0x0F137943
.word 0x7AEC723B
.word 0x1F4B316C
.word 0x106210C0
.word 0x6BAF5C67
.word 0x04523260
.word 0x2BC91599
.word 0x00902CA3
.word 0x34E05DFB
.word 0x567D2B59
.word 0x754D4374
.word 0x49372D54
.word 0x587D21F5
.word 0x4E8210EA
.word 0x5FC55A52
.word 0x72756C29
.word 0x7BE91AE4
.word 0x49E42CD9
.word 0x736A15DF
.word 0x1F913C33
.word 0x61934174
.word 0x48122262
.word 0x1A427DA6
.word 0x488065BD
.word 0x7E773BEC
.word 0x3BE421C2
.word 0x0D9E048B
.word 0x236211D2
.word 0x3F9C75B2
.word 0x0D230BAE
.word 0x739B1852
.word 0x3E0425B5
.word 0x7F9626C4
.word 0x4A0004DB
.word 0x2CA32118
.word 0x475D0E69
.word 0x2C044B3E
.word 0x08997977
.word 0x50EC70D7
.word 0x09147C29
.word 0x1B110AD9
.word 0x787A10AC
.word 0x5DF522E5
.word 0x10F60DEF
.word 0x10F51068
.word 0x24181022
.word 0x140E6B73
.word 0x0A826CEF
.word 0x7572515B
.word 0x62562F7B
.word 0x03CF5710
.word 0x4860581B
.word 0x395A453E
.word 0x78025BD6
.word 0x4B9E7A25
.word 0x7DE31F9F
.word 0x6C060D39
.word 0x69576B4F
.word 0x052B1079
.word 0x288C1064
.word 0x00DE0B8F
.word 0x7B7A407C
.word 0x62F50CAC
.word 0x29884F8F
.word 0x44D66B22
.word 0x65FF5DEF
.word 0x7DC517BE
.word 0x0F2F2601
.word 0x03ED16EB
.word 0x346369B9
.word 0x522F0088
.word 0x0E863BD7
.word 0x5EAE2184
.word 0x579220E3
.word 0x6E171B3F
.word 0x2CBC43E9
.word 0x4FB11CA0
.word 0x67613AF5
.word 0x4E2810F6
.word 0x18AE174D
.word 0x61196090
.word 0x14123D71
.word 0x6B5D1F1B
.word 0x346540D3
.word 0x121543BE
.word 0x47D53F56
.word 0x787A46F7
.word 0x4E957888
.word 0x6C614233
.word 0x78441CA0
.word 0x4F916D30
.word 0x0C1D0F36
.word 0x49C51513
.word 0x27E419C5
.word 0x0F7F6948
.word 0x018C49E1
.word 0x49933A1D
.word 0x17A97737
.word 0x696F051E
.word 0x7C982D49
.word 0x762B6B2E
.word 0x287074E7
.word 0x1E546C6A
.word 0x7DA7396C
.word 0x1A7805BD
.word 0x6C8445BE
.word 0x2C710C43
.word 0x61481503
.word 0x4772625F
.word 0x691C7323
.word 0x2CD3629B
.word 0x39B92902
.word 0x099C1C42
.word 0x07D9307A
.word 0x60D33DBF
.word 0x58612C1B
.word 0x4E8548B4
.word 0x384B1EA2
.word 0x6F976BDA
.word 0x07551E3A
.word 0x7A4A1E9B
.word 0x416B7F75
.word 0x538F5A71
.word 0x72D53408
.word 0x2D100DFC
.word 0x43215949
.word 0x77FA25E6
.word 0x42CE326A
.word 0x388C4777
.word 0x67BD0A73
.word 0x066118F7
.word 0x64583A01
.word 0x457D33C7
.word 0x457F4CC0
.word 0x64191C3E
.word 0x033702A9
.word 0x292F5B44
.word 0x701128FC
.word 0x5FC415B1
.word 0x335C06FD
.word 0x6AF83D63
.word 0x3A0A5A6E
.word 0x0ECE3821
.word 0x4A631FCF
.word 0x79BC1833
.word 0x266B2258
.word 0x5AF242BD
.word 0x69140FB2
.word 0x116A1FDF
.word 0x0A240B79
.word 0x3FB4308E
.word 0x34E47E73
.word 0x507F2631
.word 0x5D8E1D8D
.word 0x37E657FB
.word 0x41746499
.word 0x7D80320B
.word 0x3DF000CA
.word 0x5B267A45
.word 0x2A0F66EB
.word 0x7C8306EE
.word 0x1EFC1162
.word 0x2B5D430A
.word 0x5B2E21E8
.word 0x74A51C75
.word 0x2C516306
.word 0x123F37C3
.word 0x0BF6654E
.word 0x259205D9
.word 0x5AF9345F
.word 0x0ECF1748
.word 0x67B65F96
.word 0x6D02496D
.word 0x2AEB5294
.word 0x12DA2949
.word 0x676B3974
.word 0x7C382821
.word 0x18886CC9
.word 0x107A7DD5
.word 0x5B3E215A
.word 0x3D845501
.word 0x3E1F579D
.word 0x37931CD5
.word 0x240246F4
.word 0x69C11CB4
.word 0x256B40A9
.word 0x6356258F
.word 0x1CB946AB
.word 0x4DD57D00
.word 0x49125206
.word 0x37C35E26
.word 0x340F0524
.word 0x40362C43
.word 0x462645C5
.word 0x6F213316
.word 0x35DB7ABF
.word 0x466110F9
.word 0x3DA66977
.word 0x578626BB
.word 0x44A36F1B
.word 0x6A62293B
.word 0x65FC11A5
.word 0x005430C9
.word 0x0316248F
.word 0x4052623C
.word 0x4C7E7D56
.word 0x17B70DD3
.word 0x6D9273B1
.word 0x1BD25FCD
.word 0x46EF298E
.word 0x782A7EC6
.word 0x639E56D1
.word 0x759333D8
.word 0x14FE14CC
.word 0x65F2786D
.word 0x616F657C
.word 0x00CF05E6
.word 0x31C37289
.word 0x7C9F42ED
.word 0x69653FFC
.word 0x70CF2A9A
.word 0x55474EBE
.word 0x4C900949
.word 0x1D8D6AD4
.word 0x6E652B36
.word 0x25FB215C
.word 0x286E58DD
.word 0x091F1A46
.word 0x3D723D13
.word 0x1A3E51D3
.word 0x22AE10E4
.word 0x19FF6DCF
.word 0x125F292B
.word 0x09D92A8E
.word 0x3B1141F4
.word 0x4A3E1BA8
.word 0x17A62392
.word 0x6F843C74
.word 0x3C257D7F
.word 0x79980C45
.word 0x234812F6
.word 0x5A613267
.word 0x48C31552
.word 0x76F565D8
.word 0x1C564824
.word 0x0F7E14C6
.word 0x19924B17
.word 0x39EB07CD
.word 0x106A2585
.word 0x5B567CED
.word 0x6A816FD5
.word 0x4C38764C
.word 0x792D369B
.word 0x134F38B1
.word 0x184E736D
.word 0x634A35BC
.word 0x31D23786
.word 0x473A5DE7
.word 0x6E03641D
.word 0x29B9163D
.word 0x1C970C83
.word 0x22D84DDC
.word 0x22765DFF
.word 0x38CA6F2C
.word 0x78492969
.word 0x7F5228DC
.word 0x05C76A89
.word 0x41EC4AA1
.word 0x65BE692D
.word 0x24BE31AD
.word 0x5EE3500C
.word 0x683C00F1
.word 0x1D5B555D
.word 0x3B9E2113
.word 0x79065137
.word 0x4A03442E
.word 0x548E5DA7
.word 0x6E62694D
.word 0x61325C93
.word 0x3A351BA5
.word 0x53537F51
.word 0x3AE46994
.word 0x53BB2C07
.word 0x29F24F5D
.word 0x39B05CC1
.word 0x73E911A1
.word 0x59BD5453
.word 0x4206439C
.word 0x753B44F4
.word 0x72A57525
.word 0x16A24497
.word 0x2C6B4464
.word 0x66922B08
.word 0x78354F50
.word 0x459F35CC
.word 0x0DC440F0
.word 0x36DF0DB5
.word 0x3F24764D
.word 0x67350A47
.word 0x2EE17739
.word 0x5D5C4ECE
.word 0x3CE93EC3
.word 0x1EB31D3B
.word 0x56400F75
.word 0x54CA7AC3
.word 0x13664F54
.word 0x3FB00236
.word 0x51882795
.word 0x00FA001F
.word 0x3269641F
.word 0x0B9434A1
.word 0x2F0E4EC4
.word 0x4447570C
.word 0x292C023F
.word 0x1F0E3742
.word 0x275270ED
.word 0x451818CC
.word 0x27D61B4C
.word 0x0F9D23BB
.word 0x36813234
.word 0x63610740
.word 0x30FA20D7
.word 0x39092A0B
.word 0x65F33A7A
.word 0x5E210464
.word 0x7B1507F0
.word 0x3AE9000A
.word 0x45AC70DB
.word 0x28E279CE
.word 0x02123CA2
.word 0x261D40EF
.word 0x15DD2731
.word 0x713E3034
.word 0x48C80574
.word 0x5A533CCC
.word 0x20623591
.word 0x545716E5
.word 0x4A7856E8
.word 0x1384380E
.word 0x424305CB
.word 0x445C7B4D
.word 0x1C5216FD
.word 0x27761B00
.word 0x25360EEC
.word 0x1E093074
.word 0x3EEF50AE
.word 0x733A1147
.word 0x291940BD
.word 0x6E25267E
.word 0x1FD65773
.word 0x78AD1965
.word 0x7D7A5F44
.word 0x6704722A
.word 0x4AF95ABD
.word 0x2BF90438
.word 0x6B124E40
.word 0x06044455
.word 0x4C37697C
.word 0x7113647A
.word 0x4D434CAF
.word 0x69125176
.word 0x40DB659B
.word 0x493D6E41
.word 0x3B9F2049
.word 0x54252921
.word 0x19196781
.word 0x3083467F
.word 0x63633104
.word 0x66C07D86
.word 0x0995118F
.word 0x2B404281
.word 0x10F51491
.word 0x01725AF1
.word 0x2CDE53A7
.word 0x03991771
.word 0x696C09DB
.word 0x5B574F4A
.word 0x54ED1EA1
.word 0x36FE79D6
.word 0x5407648D
.word 0x47960195
.word 0x0CA907D5
.word 0x13AE2D10
.word 0x13B3688B
.word 0x2AE33971
.word 0x49645C97
.word 0x063202DF
.word 0x10871576
.word 0x20FD569B
.word 0x4C5D25B4
.word 0x16DE4ADC
.word 0x5149622A
.word 0x522F386A
.word 0x343E1AF8
.word 0x175631FD
.word 0x24E86841
.word 0x78D11553
.word 0x3E9D06A9
.word 0x00051213
.word 0x7C027F8F
.word 0x16C64264
.word 0x397D190B
.word 0x7DA5314D
.word 0x725E49A6
.word 0x5AFD6ACB
.word 0x24CD2BDC
.word 0x2EBC71B4
.word 0x08712D52
.word 0x36F2374E
.word 0x03E575D7
.word 0x111B70AE
.word 0x0CDC421D
.word 0x242D65D2
.word 0x5F0E2E34
.word 0x1F60167E
.word 0x35E92BCA
.word 0x19BF50D7
.word 0x74F92024
.word 0x1E7315C0
.word 0x6B1365DB
.word 0x31CA66F8
.word 0x1C452E57
.word 0x1B0A5AF0
.word 0x3E7E7F0D
.word 0x7EF9126D
.word 0x54FC4678
.word 0x17276BE2
.word 0x167844D8
.word 0x1201108B
.word 0x0A1444AD
.word 0x67973749
.word 0x07005EF2
.word 0x2F283940
.word 0x02F0471A
.word 0x41735432
.word 0x5B3E5ACC
.word 0x33BD369A
.word 0x04DE715D
.word 0x77A13188
.word 0x4F052711
.word 0x2B9A2C40
.word 0x24992012
.word 0x68513590
.word 0x78577F2C
.word 0x16A74EF5
.word 0x47C60C4E
.word 0x1A824D6D
.word 0x60DF46C1
.word 0x5E586C1A
.word 0x56795F25
.word 0x0B7D6C9B
.word 0x4F765530
.word 0x7B2C612A
.word 0x1CB03526
.word 0x2C577C75
.word 0x41A13118
.word 0x4A2F033E
.word 0x5BD411DC
.word 0x0F723BB1
.word 0x150F3BCF
.word 0x12777688
.word 0x0C3D434D
.word 0x45FA0DE1
.word 0x611E4CED
.word 0x3AA875DA
.word 0x4EAD357D
.word 0x6D6A3AF2
.word 0x00543DC1
.word 0x2E710A1F
.word 0x0DD235EA
.word 0x6D061EAF
.word 0x49E864D8
.word 0x740F31DF
.word 0x4FC7270F
.word 0x6360483C
.word 0x7B39017B
.word 0x71C778BD
.word 0x379123E4
.word 0x43D6099D
.word 0x5154172F
.word 0x636E7EFA
.word 0x36A4135A
.word 0x2410772F
.word 0x52703935
.word 0x7FE370F2
.word 0x6E5D2BE1
.word 0x3985572C
.word 0x4773460A
.word 0x4E926E9C
.word 0x418866E4
.word 0x06F5012A
.word 0x656D12E6
.word 0x2CF1630C
.word 0x15DA6449
.word 0x39EE2D9A
.word 0x2719073F
.word 0x04044BF2
.word 0x45753DF4
.word 0x3849354B
.word 0x56622846
.word 0x2DDA711A
.word 0x40694B43
.word 0x5DAC40E7
.word 0x45DA1466
.word 0x0B100BEC
.word 0x5E305491
.word 0x69086872
.word 0x3A426ECA
.word 0x484C5EEC
.word 0x5F2F36B5
.word 0x1A1A42D0
.word 0x04073AD5
.word 0x53C13D39
.word 0x1E397683
.word 0x7EEC653E
.word 0x48C127AA
.word 0x02AF0210
.word 0x720E4448
.word 0x715352D5
.word 0x7CB44BA4
.word 0x66E17848
.word 0x3ED66F4F
.word 0x44715C0D
.word 0x0C514FDD
.word 0x543031D5
.word 0x37A94961
.word 0x22326E36
.word 0x35B40BA9
.word 0x15FD4F47
.word 0x50087A3E
.word 0x18D152FE
.word 0x1225101A
.word 0x54B8374B
.word 0x5D634327
.word 0x58525FF0
.word 0x4F9A237C
.word 0x2B5E3E27
.word 0x68933257
.word 0x200815F2
.word 0x1A322CD8
.word 0x6CF53D40
.word 0x2F5F4683
.word 0x5C0F30C4
.word 0x35B90F73
.word 0x1A101A95
.word 0x55FA025F
.word 0x72D02686
.word 0x4728764E
.word 0x064F4043
.word 0x4881701A
.word 0x42821730
.word 0x4E240FA6
.word 0x2DDE0401
.word 0x4C7F14DF
.word 0x4EA52C19
.word 0x4E7C3873
.word 0x3AF37EA4
.word 0x426A5454
.word 0x1D876773
.word 0x29AD17EB
.word 0x3B52539A
.word 0x1726441D
.word 0x45C263CB
.word 0x28602AFF
.word 0x05CB6871
.word 0x657F6F58
.word 0x2BBA038C
.word 0x33E93FDA
.word 0x4FB90C4F
.word 0x47B10A20
.word 0x6F21107B
.word 0x3FC86167
.word 0x72830F79
.word 0x58E2150C
.word 0x08744B3A
.word 0x632932C9
.word 0x611C4ACF
.word 0x66A570AF
.word 0x167D6AC7
.word 0x22663AE3
.word 0x4D84174C
.word 0x52776118
.word 0x5BD20BFC
.word 0x68821FD0
.word 0x7E473589
.word 0x23430152
.word 0x6C52110F
.word 0x30AE526A
.word 0x53FB2538
.word 0x46DF26E3
.word 0x0AAD7112
.word 0x5FC529C5
.word 0x7EC56CAB
.word 0x038E354F
.word 0x35DB7772
.word 0x4DD26EB3
.word 0x63D3504D
.word 0x197F6194
.word 0x66A27379
.word 0x7F875740
.word 0x32E07A26
.word 0x144A65AD
.word 0x7D1257CE
.word 0x0FC57235
.word 0x2BB51159
.word 0x4C782411
.word 0x5E0A49F2
.word 0x49190297
.word 0x13A541A7
.word 0x18FA3B33
.word 0x40B321C3
.word 0x6F3B4B27
.word 0x5B0E32EB
.word 0x30AF0902
.word 0x2C0258FB
.word 0x388F49E1
.word 0x72DD709E
.word 0x3BE11E69
.word 0x24396AAF
.word 0x77A66380
.word 0x52084153
.word 0x15C622CE
.word 0x086422D2
.word 0x74BC7EF6
.word 0x2B146E3A
.word 0x3E012794
.word 0x1FDD5DB2
.word 0x773A10F7
.word 0x518F7A9F
.word 0x7A206B9B
.word 0x57CB3778
.word 0x7F33176D
.word 0x4F954B6A
.word 0x271E0EBD
.word 0x309D2BAB
.word 0x2EE90502
.word 0x2B4D3E9E
.word 0x3AE13552
.word 0x5B9224AB
.word 0x64471C9C
.word 0x5C6A32DC
.word 0x75BB1BAB
.word 0x08327B38
.word 0x02663CDA
.word 0x71AD7EE0
.word 0x43EA1998
.word 0x61D365EA
.word 0x6B0B1B9A
.word 0x66605901
.word 0x4F1A15E3
.word 0x3D1758B9
.word 0x28257175
.word 0x27DA2EB3
.word 0x3FE069D4
.word 0x756B5475
.word 0x4552153F
.word 0x4B006C06
.word 0x2F3F34AE
.word 0x7A89264C
.word 0x5959078A
.word 0x71C03326
.word 0x48251F2F
.word 0x0DF41749
.word 0x3FAE6E22
.word 0x609603DB
.word 0x18ED0F12
.word 0x30800BD1
.word 0x01F37F90
.word 0x44095309
.word 0x14DC4A8E
.word 0x3FC91327
.word 0x71745E99
.word 0x262C122F
.word 0x45A60BD6
.word 0x43B966E7
.word 0x70A965BE
.word 0x142026EA
.word 0x2CE90499
.word 0x6C055A8C
.word 0x6CB662BB
.word 0x738F5271
.word 0x55AE5181
.word 0x3DAF3AEC
.word 0x06EB420B
.word 0x08310919
.word 0x15ED5DB7
.word 0x70841DB9
.word 0x6E462A60
.word 0x294839D0
.word 0x0008365B
.word 0x7C9C2100
.word 0x68EE082D
.word 0x272605A4
.word 0x044D4E0E
.word 0x57DF1AAC
.word 0x0DB8091F
.word 0x60A4673B
.word 0x4276306A
.word 0x637C3802
.word 0x2DA5079D
.word 0x08AA4A5A
.word 0x0B2A2586
.word 0x09720D24
.word 0x6D60664E
.word 0x1BAB1360
.word 0x117C4575
.word 0x0A0A1490
.word 0x0EC25B91
.word 0x052816CA
.word 0x4C697BC6
.word 0x79581EA0
.word 0x6A4F2D04
.word 0x752B00B0
.word 0x085D7B03
.word 0x6CBF3109
.word 0x18B85B00
.word 0x65CC2C44
.word 0x28AD2035
.word 0x586D565F
.word 0x4C593C19
.word 0x50AE6B58
.word 0x191B465C
.word 0x1CD95D8E
.word 0x5ABB08A1
.word 0x14803DD7
.word 0x6F5709F9
.word 0x444A0960
.word 0x76115623
.word 0x0A7E7948
.word 0x3C7A7C86
.word 0x70512FFC
.word 0x16BD02EA
.word 0x4BEF6050
.word 0x0E8B47FA
.word 0x774B4A62
.word 0x14CA117A
.word 0x27A72A2F
.word 0x21FD4248
.word 0x31E273F2
.word 0x71717414
.word 0x47857A40
.word 0x432D70DF
.word 0x788C59E5
.word 0x50974835
.word 0x05F4477C
.word 0x5FE67C29
.word 0x51091AD0
.word 0x224B0215
.word 0x736C33F6
.word 0x48DF130E
.word 0x4BE61626
.word 0x7C4B0829
.word 0x0BF0545E
.word 0x23393E71
.word 0x11FE2BB5
.word 0x237E3EA3
.word 0x1C8F677F
.word 0x0A0424B0
.word 0x21F66B26
.word 0x457902F0
.word 0x58E57DC3
.word 0x5FB93D26
.word 0x3DBE337F
.word 0x61FC1737
.word 0x209A10AD
.word 0x4FBF73AA
.word 0x081542A3
.word 0x64737DDE
.word 0x74E00A5C
.word 0x7FE83C0F
.word 0x520434CE
.word 0x6D784507
.word 0x1DF73D0C
.word 0x71F315A3
.word 0x1860741C
.word 0x4C4E420D
.word 0x00AA4A96
.word 0x150A7EB3
.word 0x314A1801
.word 0x28663D09
.word 0x23D17BED
.word 0x07445804
.word 0x29B134D0
.word 0x5ADB0C52
.word 0x65CF08A1
.word 0x07223859
.word 0x52CC1B36
.word 0x77F81FF6
.word 0x62134E5E
.word 0x15132FF2
.word 0x7FA207BE
.word 0x08AF7D44
.word 0x0699786C
.word 0x44F27C09
.word 0x7285424D
.word 0x74212A44
.word 0x5969172F
.word 0x3F852A55
.word 0x7A902DA5
.word 0x191B093A
.word 0x6E1527A6
.word 0x73FF2C89
.word 0x412F46E4
.word 0x17952429
.word 0x0B3D0AED
.word 0x797C5BD4
.word 0x47951504
.word 0x4A34684D
.word 0x000C6DBD
.word 0x20896C60
.word 0x1445085B
.word 0x6FC7519E
.word 0x29BA1FEA
.word 0x349C50D5
.word 0x108C4A1B
.word 0x04CB0651
.word 0x290A5BE2
.word 0x6D960DD6
.word 0x16037BD1
.word 0x4CE86258
#define check(tn,nu,nl) \
ori $1, $0, tn; \
lui $12, nu; \
ori $12, $12, nl; \
mtc0 $12, $0; \
nop; \
mfc0 $17, $0; \
bne $12, $17, Fail; \
nop;
#define check2(tn,n) \
ori $1, $0, tn; \
lui $14, n; \
ori $14, $14, 0x0007 \
mtc0 $14, $2; \
nop; \
mfc0 $17, $2; \
and $14, $14, $15; \
and $17, $17, $15; \
bne $17, $14, Fail; \
nop;
Start:
or $12, $0, $0 /* reg initialization */
or $13, $0, $0 /* reg initialization */
or $14, $0, $0 /* reg initialization */
or $17, $0, $0 /* reg initialization */
lui $15, 0xff00 /* reg initialization */
/* DMA READ ISSUE SUBROUTINE */
Lock:
mfc0 $17, $7 /* request DMA rsrc */
bne $17, $0, Lock /* loop */
ori $12, $0, 1
mfc0 $17, $7 /* test bit 0 */
bne $17, $12, Fail
nop
NotBusy:
mfc0 $17, $6 /* check not full */
bne $17, $0, NotBusy
nop
check(0x0,0x0000,0x0000)
/* check(0x1,0x00000001) - check via semaphore */
/* check(0x2,0x00000002) - can't be checked by RSP */
/* check(0x3,0x00000004) - can't be checked by RSP */
check(0x4,0x0000,0x0008)
check(0x5,0x0000,0x0010)
check(0x6,0x0000,0x0020)
check(0x7,0x0000,0x0040)
check(0x8,0x0000,0x0080)
check(0x9,0x0000,0x0100)
check(0xA,0x0000,0x0200)
check(0xB,0x0000,0x0400)
check(0xC,0x0000,0x0800)
check(0xD,0x0000,0x1000)
check(0xE,0x0000,0x2000)
check(0xF,0x0000,0x4000)
check(0x10,0x0000,0x8000)
check(0x11,0x0001,0x0000)
check(0x12,0x0002,0x0000)
check(0x13,0x0004,0x0000)
check(0x14,0x0008,0x0000)
check(0x15,0x0010,0x0000)
check(0x16,0x0020,0x0000)
check(0x17,0x0040,0x0000)
check(0x18,0x0080,0x0000)
check(0x19,0x00FF,0xFFF8)
check(0x1A,0x0055,0x5550)
check(0x1B,0x00AA,0xAAA8)
or $12, $0, $0
or $13, $0, $0
mtc0 $12, $0
mtc0 $13, $1
check2(0x1C,0x0000)
jal DmaWait
check2(0x1D,0x0100)
jal DmaWait
check2(0x1E,0x0200)
jal DmaWait
check2(0x1F,0x0400)
jal DmaWait
check2(0x20,0x0800)
jal DmaWait
check2(0x21,0x1000)
jal DmaWait
check2(0x22,0x2000)
jal DmaWait
check2(0x23,0x4000)
jal DmaWait
check2(0x24,0x8000)
jal DmaWait
check2(0x25,0xFF00)
jal DmaWait
check2(0x26,0x5500)
jal DmaWait
check2(0x27,0xAA00)
mtc0 $17, $0 /* release DMA rsrc */
j Done
/* DMA DONE CHECK SUBROUTINE */
DmaWait:
mfc0 $17, $6 /* wait till not busy */
bne $17, $0, DmaWait
nop
jr $31 /* return to caller */
nop
Fail: ori $1, $0, 0xdead
break;
Done: ori $1, $0, 0xfeed
break