dma80.s 31.1 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 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456
/************************************************************************
  TOP-LEVEL MIXED TRAFFIC RSP DMA TESTS: File #0
************************************************************************/
	.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

Start:	ori	$4,	$0,	0xC000		/* reg initialization	*/
	ori	$5,	$0,	0xC000		/* reg initialization	*/
	ori	$6,	$0,	0xC000		/* reg initialization	*/
	ori	$7,	$0,	0xC000		/* reg initialization	*/
	ori	$8,	$0,	0xC000		/* reg initialization	*/
	ori	$9,	$0,	0xC000		/* reg initialization	*/
	ori	$10,	$0,	0xC000		/* reg initialization	*/
	ori	$11,	$0,	0xC000		/* reg initialization	*/
	ori	$20,	$0,	0xC000		/* reg initialization	*/
	ori	$21,	$0,	0xC000		/* reg initialization	*/
	ori	$22,	$0,	0xC000		/* reg initialization	*/
	ori	$23,	$0,	0xC000		/* reg initialization	*/
	ori	$24,	$0,	0xC000		/* reg initialization	*/
	ori	$25,	$0,	0xC000		/* reg initialization	*/
	ori	$26,	$0,	0xC000		/* reg initialization	*/
	ori	$27,	$0,	0xC000		/* reg initialization	*/

	/****************************************************************
	                           DMA TEST #0.0
	 ****************************************************************/
	/* XBUS Ring-Buffer test	*/
	or	$1,	$0,	$0		/* R1  = TEST ID	*/
	mfc0	$2,	$4			/* read SP Status Reg	*/
	andi	$2,	$2,	0x0040		/* extract signal 0	*/
	beq	$2,	$0,	Skip		/* CPU not requesting	*/
CmdWait:	mfc0	$2,	$11			/* read DPC Status Reg	*/
	andi	$2,	$2,	0x0200		/* extract end valid	*/
	bne	$2,	$0,	CmdWait		/* wait for XBUS idle	*/
	ori	$2,	$0,	0x0002		/* set xbus_dmem_dma b	*/
	mtc0	$2,	$11			/* write DP status reg	*/
	lui	$2,	0x0400			/* load start address	*/
	ori	$2,	$2,	0x0800
	mtc0	$2,	$8			/* write start address	*/
	addi	$2,	$2,	0x0070		/* prep end address	*/
	mtc0	$2,	$9			/* write end address	*/
	addi	$2,	$2,	0x0058		/* prep end address	*/
	mtc0	$2,	$9			/* write end address	*/
	addi	$2,	$2,	0x0028		/* prep end address	*/
	mtc0	$2,	$9			/* write end address	*/
	addi	$2,	$2,	0x0008		/* prep end address	*/
	mtc0	$2,	$9			/* write end address	*/
	ori	$2,	$0,	0x2A80		/* clear all signals	*/
	mtc0	$2,	$4			
Skip:
	/****************************************************************
	                           DMA TEST #0.1
	 ****************************************************************/
	ori	$1,	$0,	0x0001		/* R1  = TEST ID	*/
	ori	$12,	$0,	0x1580		/* R12 = IMEM address	*/
	lui	$13,	0x0013			/* R13 = DRAM address	*/
	ori	$13,	$13,	0x5000
	ori	$14,	$0,	0x027F		/* R14 = read length 	*/
	jal	DmaRead				/* go start DMA  	*/
	nop					
	jal	DoSubr				/* go do smthn, anythn	*/
	ori	$2,	$0,	0x0008		/* idle 8 times  	*/
	jal	DmaDone				/* wait till DMA done	*/
	nop					
	jal	L0580				/* exec IMEM code	*/
	nop					
	jal	ICheck				/* check exec result	*/
	nop					

	/****************************************************************
	                           DMA TEST #0.2
	 ****************************************************************/
	ori	$1,	$0,	0x0002		/* R1  = TEST ID	*/
	ori	$12,	$0,	0x1580		/* R12 = IMEM address	*/
	lui	$13,	0x0013			/* R13 = DRAM address	*/
	ori	$13,	$13,	0x6000
	ori	$14,	$0,	0x0007		/* R14 = read length 	*/
	addi	$20,	$20,	0x0001		/* answer		*/
	addi	$21,	$21,	0x0001		/* answer		*/
	jal	DmaRead				/* go start DMA  	*/
	nop					
	jal	DoSubr				/* go do smthn, anythn	*/
	ori	$2,	$0,	0x0002		/* idle 2 times  	*/
	jal	DmaDone				/* wait till DMA done	*/
	nop					
	jal	L0580				/* exec IMEM code	*/
	nop					
	jal	ICheck				/* check exec result	*/
	nop					

	/****************************************************************
	                           DMA TEST #0.3
	 ****************************************************************/
	ori	$1,	$0,	0x0003		/* R1  = TEST ID	*/
	ori	$12,	$0,	0x0580		/* R12 = DMEM address	*/
	lui	$13,	0x0013			/* R13 = DRAM address	*/
	ori	$13,	$13,	0x2000
	lui	$14,	0x0080			/* R14 = read length 	*/
	ori	$14,	$14,	0x0017
	sw	$1,	0x0598 ($0)		/* prevent overwrite	*/
	jal	DmaRead				/* go start DMA  	*/
	nop					
	jal	DoSubr				/* go do smthn, anythn	*/
	ori	$2,	$0,	0x0002		/* idle 2 times  	*/
	jal	DmaDone				/* wait till DMA done	*/
	nop					
	jal	DCheck				/* check DMEM data	*/
	nop					

	/****************************************************************
	                           DMA TEST #0.4
	 ****************************************************************/
	ori	$1,	$0,	0x0004		/* R1  = TEST ID	*/
	ori	$12,	$0,	0x1580		/* R12 = IMEM address	*/
	lui	$13,	0x0013			/* R13 = DRAM address	*/
	ori	$13,	$13,	0x6008
	ori	$14,	$0,	0x000F		/* R14 = read length 	*/
	addi	$22,	$22,	0x0001		/* answer		*/
	addi	$23,	$23,	0x0001		/* answer		*/
	addi	$24,	$24,	0x0001		/* answer		*/
	addi	$25,	$25,	0x0001		/* answer		*/
	jal	DmaRead				/* go start DMA  	*/
	nop					
	jal	DoSubr				/* go do smthn, anythn	*/
	ori	$2,	$0,	0x0002		/* idle 2 times  	*/
	jal	DmaDone				/* wait till DMA done	*/
	nop					
	jal	L0580				/* exec IMEM code	*/
	nop					
	jal	ICheck				/* check exec result	*/
	nop					

	/****************************************************************
	                           DMA TEST #0.5
	 ****************************************************************/
	ori	$1,	$0,	0x0005		/* R1  = TEST ID	*/
	ori	$12,	$0,	0x0580		/* R12 = DMEM address	*/
	lui	$13,	0x0013			/* R13 = DRAM address	*/
	ori	$13,	$13,	0x2000
	lui	$14,	0x0080			/* R14 = read length 	*/
	ori	$14,	$14,	0x2017
	sw	$1,	0x05C8 ($0)		/* prevent overwrite	*/
	jal	DmaRead				/* go start DMA  	*/
	nop					
	jal	DoSubr				/* go do smthn, anythn	*/
	ori	$2,	$0,	0x0002		/* idle 2 times  	*/
	jal	DmaDone				/* wait till DMA done	*/
	nop					
	jal	DCheck				/* check DMEM data	*/
	nop					

	/****************************************************************
	                           DMA TEST #0.6
	 ****************************************************************/
	ori	$1,	$0,	0x0006		/* R1  = TEST ID	*/
	ori	$12,	$0,	0x1580		/* R12 = IMEM address	*/
	lui	$13,	0x0013			/* R13 = DRAM address	*/
	ori	$13,	$13,	0x6010
	ori	$14,	$0,	0x0017		/* R14 = read length 	*/
	addi	$20,	$20,	0x0001		/* answer		*/
	addi	$21,	$21,	0x0001		/* answer		*/
	addi	$24,	$24,	0x0001		/* answer		*/
	addi	$25,	$25,	0x0001		/* answer		*/
	addi	$26,	$26,	0x0001		/* answer		*/
	addi	$27,	$27,	0x0001		/* answer		*/
	jal	DmaRead				/* go start DMA  	*/
	nop					
	jal	DoSubr				/* go do smthn, anythn	*/
	ori	$2,	$0,	0x0002		/* idle 2 times  	*/
	jal	DmaDone				/* wait till DMA done	*/
	nop					
	jal	L0580				/* exec IMEM code	*/
	nop					
	jal	ICheck				/* check exec result	*/
	nop					

	/****************************************************************
	                           DMA TEST #0.7
	 ****************************************************************/
	ori	$1,	$0,	0x0007		/* R1  = TEST ID	*/
	ori	$12,	$0,	0x0600		/* R12 = DMEM address	*/
	lui	$13,	0x0013			/* R13 = DRAM address	*/
	ori	$13,	$13,	0x4000
	lui	$14,	0x0080			/* R15 = read length 	*/
	ori	$14,	$14,	0x2017
	jal	DmaRead				/* go start DMA  	*/
	sw	$1,	0x0648 ($0)		/* prevent overwrite	*/
	jal	DmaDone				/* wait till DMA done	*/
	nop					
	jal	DCheck				/* check DMEM data	*/
	nop					

	ori	$12,	$0,	0x0580		/* R12 = DMEM address	*/
	lui	$13,	0x0013			/* R13 = DRAM address	*/
	ori	$13,	$13,	0x2000
	jal	DmaRead				/* go start DMA  	*/
	nop					

	lui	$13,	0x0013			/* R13 = new DRAM addr	*/
	ori	$13,	$13,	0x4000
	or	$15,	$14,	$0		/* R15 = write length 	*/
	jal	DmaWrite				/* go start DMA  	*/
	nop					
	jal	DmaRead				/* read data back  	*/
	sw	$1,	0x05C8 ($0)		/* prevent overwrite	*/
	jal	DoSubr				/* go do smthn, anythn	*/
	ori	$2,	$0,	0x0002		/* idle 2 times  	*/
	jal	DmaDone				/* wait till DMA done	*/
	lui	$13,	0x0013			/* R13 = DRAM address	*/
	ori	$13,	$13,	0x2000
	jal	DCheck				/* check DMEM data	*/
	nop					

	ori	$12,	$0,	0x0580		/* R12 = DMEM address	*/
	lui	$13,	0x0013			/* R13 = DRAM address	*/
	ori	$13,	$13,	0x4058
	lui	$14,	0x0080			/* R15 = read length 	*/
	ori	$14,	$14,	0x000F
	jal	DmaRead				/* go start DMA  	*/
	sw	$1,	0x0590 ($0)		/* prevent over-read	*/
	jal	DoSubr				/* go do smthn, anythn	*/
	ori	$2,	$0,	0x0001		/* idle 2 times  	*/
	jal	DmaDone				/* wait till DMA done	*/
	nop					
	jal	DCheck				/* check DMEM data	*/
	nop					

	ori	$12,	$0,	0x0580		/* R12 = DMEM address	*/
	lui	$13,	0x0013			/* R13 = DRAM address	*/
	ori	$13,	$13,	0x4018
	lui	$14,	0x0180			/* R15 = read length 	*/
	ori	$14,	$14,	0x2007
	jal	DmaRead				/* go start DMA  	*/
	sw	$1,	0x0598 ($0)		/* prevent over-read	*/
	jal	DoSubr				/* go do smthn, anythn	*/
	ori	$2,	$0,	0x0001		/* idle 2 times  	*/
	jal	DmaDone				/* wait till DMA done	*/
	nop					
	jal	DCheck				/* check DMEM data	*/
	nop					

	ori	$12,	$0,	0x0600		/* R12 = DMEM address	*/
	lui	$13,	0x0013			/* R13 = DRAM address	*/
	ori	$13,	$13,	0x4000
	lui	$14,	0x0080			/* R15 = read length 	*/
	ori	$14,	$14,	0x2017
	jal	DmaWrite				/* go start DMA  	*/
	or	$15,	$14,	$0		
	j	Done				/* test completed	*/
	nop					

	/****************************************************************
	  Subroutines ...
	 ****************************************************************/
	/* DMEM DMA CHECK SUBROUTINE */
DCheck:
	addi	$3,	$0,	0x0004		/* init R3 = 4  	*/
	andi	$16,	$14,	0x0FFF		/* len of data (bytes)	*/
	addi	$16,	$16,	0x0001		/* add 1 to length	*/
	srl	$17,	$14,	0x000C		/* number of spans	*/
	andi	$17,	$17,	0x00FF		
	srl	$18,	$14,	0x0014		/* number of skips	*/
	andi	$19,	$13,	0xFFFF		/* load expected data	*/
Chk:	lw	$29,	0x0000 ($12)		/* read test data	*/
	bne	$29,	$19,	Fail		/* verify data		*/
	sub	$16,	$16,	$3		/* decrement counter	*/
	add	$19,	$19,	$3		/* predict next data	*/
	add	$12,	$12,	$3		/* advance DMEM ptr	*/
	bne	$16,	$0,	Chk		/* check if done	*/
	nop					/* bne delay slot	*/
	beq	$17,	$0,	DC_done		/* exit if zero span	*/
	andi	$16,	$14,	0x0FFF		/* reload len (bytes)	*/
	addi	$16,	$16,	0x0001		/* reload len (bytes)	*/
	add	$19,	$19,	$18		/* adjust predict data	*/
	addi	$17,	$17,	0xFFFF		/* decrement span cnt	*/
	j	Chk				/* continue with next	*/
	nop					/* bne delay slot	*/
DC_done:	lw	$29,	0x0000 ($12)		/* read test data	*/
	bne	$29,	$1,	Fail		/* check for overflow	*/
	nop					/* bne delay slot	*/

	jr	$31				/* return to caller	*/
	nop					

	/* IMEM DMA CHECK SUBROUTINE */
ICheck:
	bne	$20,	$4,	Fail		/* check $4		*/
	nop					
	bne	$21,	$5,	Fail		/* check $5		*/
	nop					
	bne	$22,	$6,	Fail		/* check $6		*/
	nop					
	bne	$23,	$7,	Fail		/* check $7		*/
	nop					
	bne	$24,	$8,	Fail		/* check $8		*/
	nop					
	bne	$25,	$9,	Fail		/* check $9		*/
	nop					
	bne	$26,	$10,	Fail		/* check $10		*/
	nop					
	bne	$27,	$11,	Fail		/* check $11		*/
	nop					
	jr	$31				/* return to caller	*/
	nop					

	/* IDLING WHILE DMA SUBROUTINE */
DoSubr:
	ori	$28,	$0,	0x3A5A		/* init R28 = 0x3A5A	*/
	beq	$0,	$0,	Skip1		
	add	$3,	$1,	$0		/* start with any num	*/
 Skip1:	bne	$3,	$1,	Skip2		
	add	$3,	$3,	$28		/* add 0x3A5A		*/
 Skip2:	j	Skip3				
	sll	$3,	$3,	0x0002		/* multiply by 4	*/
 Skip3:	sub	$3,	$0,	$3		/* take the neg	*/
	beq	$0,	$0,	Skip4		
 Skip4:	add	$3,	$3,	$1		/* add original num x2	*/
	bne	$3,	$0,	Skip5		
	sw	$3,	0x0000 ($0)		
 Skip5:	lw	$3,	0x0000 ($0)		
	sub	$3,	$0,	$3		/* take the neg again	*/
	srl	$3,	$3,	0x0001		/* divide by 2		*/
	sw	$3,	0x0000 ($0)		
	beq	$3,	$3,	Skip6		
	lw	$3,	0x0000 ($0)		
 Skip6:	beq	$3,	$3,	Skip7		
 Skip7:	sub	$3,	$3,	$28		/* subtract 0x3A5A	*/
	bne	$3,	$1,	Fail		/* better get back R1	*/
	nop					
	bne	$2,	$0,	DoSubr		/* loop n-times as req	*/
	addi	$2,	$2,	0xFFFF		
	jr	$31				/* return to caller	*/
	nop					

	/* DMA READ ISSUE SUBROUTINE */
DmaRead:
	mfc0	$17,	$7			/* request DMA rsrc	*/
	bne	$17,	$0,	DmaRead		/* loop		*/
	nop					

DR_full:
	mfc0	$17,	$5			/* check not full	*/
	bne	$17,	$0,	DR_full		
	nop					
	mtc0	$12,	$0			/* init I/DMEM address	*/
	mtc0	$13,	$1			/* init DRAM address	*/
	mtc0	$14,	$2			/* init read length	*/
	mtc0	$17,	$7			/* release DMA rsrc	*/
	jr	$31				/* return to caller	*/
	nop					

	/* DMA WRITE ISSUE SUBROUTINE */
DmaWrite:
	mfc0	$17,	$7			/* request DMA rsrc	*/
	bne	$17,	$0,	DmaWrite		/* loop		*/
	nop					

DW_full:
	mfc0	$17,	$5			/* check not full	*/
	bne	$17,	$0,	DW_full		
	nop					
	mtc0	$12,	$0			/* init I/DMEM address	*/
	mtc0	$13,	$1			/* init DRAM address	*/
	mtc0	$15,	$3			/* init write length	*/
	mtc0	$17,	$7			/* release DMA rsrc	*/
	jr	$31				/* return to caller	*/
	nop					

	/* DMA DONE CHECK SUBROUTINE */
DmaDone:
	mfc0	$17,	$7			/* secure DMA resource	*/
	bne	$17,	$0,	DmaDone		
	nop					

DmaWait:
	mfc0	$17,	$6			/* wait till not busy	*/
	bne	$17,	$0,	DmaWait		
	nop					

	mtc0	$17,	$7			/* release DMA rsrc	*/

	jr	$31				/* return to caller	*/
	nop					

	/****************************************************************
	  Wrap up ...
	 ****************************************************************/
Done:	ori	$1,	$0,	0xFEED		/* Test passed		*/
	ori	$2,	$0,	0x2A00		/* clear sig1-3  	*/
	mtc0	$2,	$4			
	break
	j	Start				
	nop					

Fail:	ori	$2,	$0,	0x2A00		/* clear sig1-3  	*/
	mtc0	$2,	$4			
	andi	$2,	$1,	0x0004		/* set sig_3		*/
	sll	$2,	$2,	0x000C		
	mtc0	$2,	$4			
	andi	$2,	$1,	0x0002		/* set sig_2		*/
	sll	$2,	$2,	0x000B		
	mtc0	$2,	$4			
	andi	$2,	$1,	0x0001		/* set sig_1		*/
	sll	$2,	$2,	0x000A		
	mtc0	$2,	$4			
	break
	j	Start				
	nop					

	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
	nop					
L0580:	nop