dma13.s 60.3 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 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222
/************************************************************************
  DMA WRITE TESTS: File #3
************************************************************************/
	.word	0x1F906EC7
	.word	0x447401A3
	.word	0x45F455FE
	.word	0x68B807F1
	.word	0x286B0AA0
	.word	0x20BA3CDC
	.word	0x2C8F024E
	.word	0x14C66E01
	.word	0x165F32E6
	.word	0x74CC5CA2
	.word	0x67EE36C5
	.word	0x2DEB3242
	.word	0x0FCF78BC
	.word	0x6CC12302
	.word	0x123C23D3
	.word	0x787559BE
	.word	0x190952C0
	.word	0x328109E7
	.word	0x164B3B25
	.word	0x4740431E
	.word	0x65C7508D
	.word	0x5B3B6296
	.word	0x191C1B25
	.word	0x41333E26
	.word	0x5AB03E3A
	.word	0x04EE6531
	.word	0x135C6A76
	.word	0x56C21336
	.word	0x3ED737DA
	.word	0x23E33036
	.word	0x1AE3237A
	.word	0x676C7AC9
	.word	0x1D392CFC
	.word	0x002E37FF
	.word	0x5C354FCE
	.word	0x173C04F7
	.word	0x5642542A
	.word	0x63332641
	.word	0x440333CB
	.word	0x544A70F5
	.word	0x61460E6C
	.word	0x751D2990
	.word	0x58A96A05
	.word	0x0C387492
	.word	0x3E0A3AC5
	.word	0x4A6634D8
	.word	0x43B06ECE
	.word	0x11B873B9
	.word	0x163B79B3
	.word	0x21542EE3
	.word	0x0B4C1BB2
	.word	0x320327F4
	.word	0x0EF360B1
	.word	0x4F7811D8
	.word	0x7BDC12FA
	.word	0x7A6137E5
	.word	0x4A391DB6
	.word	0x5F2F7AB7
	.word	0x416F1B2A
	.word	0x2DA63ECD
	.word	0x18800AB5
	.word	0x5D2428E0
	.word	0x313B6A85
	.word	0x69B14407
	.word	0x5A25311D
	.word	0x55CA6D8C
	.word	0x43256287
	.word	0x7CED228B
	.word	0x10F33D58
	.word	0x02E40B50
	.word	0x3B3F3B68
	.word	0x6BD2606E
	.word	0x21A1624E
	.word	0x28FE059F
	.word	0x03431F9E
	.word	0x2663765F
	.word	0x45502CE2
	.word	0x24F36047
	.word	0x341B3759
	.word	0x6DAF072A
	.word	0x2B104771
	.word	0x29684EF1
	.word	0x4F5B2406
	.word	0x69520737
	.word	0x495A2D58
	.word	0x2C4E54A3
	.word	0x28C36BCE
	.word	0x6CF35409
	.word	0x5F954E6D
	.word	0x04615340
	.word	0x7FC05517
	.word	0x6DC63BC1
	.word	0x27932283
	.word	0x36AD0B04
	.word	0x48E93200
	.word	0x280A749B
	.word	0x37132CE9
	.word	0x74060A0B
	.word	0x27841BE7
	.word	0x748A046D
	.word	0x113F6FEA
	.word	0x468E0BC9
	.word	0x17011EE5
	.word	0x4E1E182D
	.word	0x682E504C
	.word	0x6F314891
	.word	0x447C554E
	.word	0x07294B6A
	.word	0x0E6168D2
	.word	0x73293510
	.word	0x183D7333
	.word	0x2F1B5FD1
	.word	0x18474DBC
	.word	0x597D31D1
	.word	0x6F3941E2
	.word	0x27EE64A7
	.word	0x2DBB4044
	.word	0x187C2AB9
	.word	0x04910B63
	.word	0x6BAB4E53
	.word	0x0B835221
	.word	0x3344268A
	.word	0x0B1075FB
	.word	0x01E47DD3
	.word	0x34D17906
	.word	0x07404662
	.word	0x76AF4FAA
	.word	0x25393844
	.word	0x54C41221
	.word	0x49A3353B
	.word	0x761249AF
	.word	0x18D50E5D
	.word	0x4FE6559F
	.word	0x34F0076B
	.word	0x1C0A2401
	.word	0x2DF033F2
	.word	0x05AD3A25
	.word	0x66740A24
	.word	0x391348D6
	.word	0x794D4774
	.word	0x41FD4856
	.word	0x6BC802F3
	.word	0x64D6581E
	.word	0x38BC096D
	.word	0x5EA25E52
	.word	0x00525F42
	.word	0x37A62306
	.word	0x68970406
	.word	0x14D86333
	.word	0x7AC353D8
	.word	0x34051777
	.word	0x09462283
	.word	0x7EC46A90
	.word	0x6A986C56
	.word	0x601E1B97
	.word	0x14BE38C3
	.word	0x48FA47FC
	.word	0x659B0ABA
	.word	0x0F4B5945
	.word	0x23FC7AC3
	.word	0x13F81286
	.word	0x056156DE
	.word	0x5B8E799F
	.word	0x448C641A
	.word	0x05A81838
	.word	0x14CB1DF7
	.word	0x4F1A507D
	.word	0x7E060F7D
	.word	0x0AE0419A
	.word	0x6D882219
	.word	0x3DC977F5
	.word	0x078D7E3A
	.word	0x48E3652E
	.word	0x059059AF
	.word	0x4EA55BD8
	.word	0x2D514FBF
	.word	0x3EDF0AF4
	.word	0x2CA81F06
	.word	0x35623531
	.word	0x660C6912
	.word	0x176F1FE6
	.word	0x79E24FC1
	.word	0x1BE075CB
	.word	0x18870C58
	.word	0x2A18197B
	.word	0x691C5C64
	.word	0x3BAC23AA
	.word	0x11146051
	.word	0x2CCE0926
	.word	0x287F47CB
	.word	0x277D248F
	.word	0x271467D8
	.word	0x156F1FD5
	.word	0x15FF16B2
	.word	0x44B97976
	.word	0x12706966
	.word	0x2B442175
	.word	0x6CE02F2D
	.word	0x74F06A19
	.word	0x7121468D
	.word	0x4885486B
	.word	0x232D282F
	.word	0x6F5E206D
	.word	0x7CAA437F
	.word	0x4BD4191A
	.word	0x77400906
	.word	0x4A6B3422
	.word	0x6F9B3E87
	.word	0x39BF2562
	.word	0x2D3F78DB
	.word	0x352D2625
	.word	0x1B0F578C
	.word	0x0E41401D
	.word	0x7C9B5E34
	.word	0x60E24C1F
	.word	0x2C2D0794
	.word	0x3E3F20A1
	.word	0x2D916E73
	.word	0x1A782BF5
	.word	0x21A8283C
	.word	0x690D7643
	.word	0x66AB2D57
	.word	0x14074748
	.word	0x71406B43
	.word	0x39E86BD1
	.word	0x2A3F5C78
	.word	0x5E5356F5
	.word	0x5D4141FE
	.word	0x797B1B15
	.word	0x03EC5ACD
	.word	0x124D7695
	.word	0x7A0134E3
	.word	0x4F5D7057
	.word	0x66227428
	.word	0x2A923FFC
	.word	0x63642B01
	.word	0x33907DDA
	.word	0x379920B6
	.word	0x0CE856BB
	.word	0x225A2184
	.word	0x10023F5B
	.word	0x10D73482
	.word	0x43C663A0
	.word	0x425E5334
	.word	0x120D4D97
	.word	0x29AC7EF0
	.word	0x67CB0033
	.word	0x16F74FF5
	.word	0x2BF801C4
	.word	0x76B75A44
	.word	0x39431238
	.word	0x31380446
	.word	0x46760915
	.word	0x76E12B1C
	.word	0x69A71732
	.word	0x054130C3
	.word	0x22246838
	.word	0x30DF4FF0
	.word	0x151C5FDC
	.word	0x3FBE51A5
	.word	0x690D6EDA
	.word	0x60B20096
	.word	0x6BF13BB0
	.word	0x4B66763F
	.word	0x70281B20
	.word	0x55281DC2
	.word	0x0C241463
	.word	0x067B0881
	.word	0x28D76D2D
	.word	0x7D5B7080
	.word	0x0ADC7965
	.word	0x284E0478
	.word	0x42672AA0
	.word	0x262F59BA
	.word	0x2DEE1B63
	.word	0x56BA1FCA
	.word	0x7B941215
	.word	0x67D671B7
	.word	0x555A37C6
	.word	0x6BA6613B
	.word	0x24047EA2
	.word	0x434E1797
	.word	0x14CD7433
	.word	0x6A85282D
	.word	0x4DCA7B5A
	.word	0x6FDF70DA
	.word	0x7D1E2A0B
	.word	0x25D82419
	.word	0x2EE346CB
	.word	0x589F58D9
	.word	0x15D321EB
	.word	0x14A83C1A
	.word	0x32BA4682
	.word	0x49F04049
	.word	0x069C3F2B
	.word	0x580F6661
	.word	0x3BA66A84
	.word	0x4EFF7CBE
	.word	0x70D51B61
	.word	0x70AE6FBF
	.word	0x146800D4
	.word	0x3F450823
	.word	0x790611DE
	.word	0x24363321
	.word	0x11AF78F1
	.word	0x7C083044
	.word	0x00653B2D
	.word	0x12E2410D
	.word	0x63961757
	.word	0x5DD93647
	.word	0x0E505899
	.word	0x7CF97728
	.word	0x172318FC
	.word	0x52155E2C
	.word	0x69D52FA6
	.word	0x384F07B1
	.word	0x47C946D3
	.word	0x28666E53
	.word	0x632C5594
	.word	0x55C27105
	.word	0x00E5794A
	.word	0x10411EF4
	.word	0x4D396AE1
	.word	0x76BF651C
	.word	0x4F410BCD
	.word	0x466879A6
	.word	0x270E46C6
	.word	0x52BD2108
	.word	0x02964043
	.word	0x726728DB
	.word	0x756512B8
	.word	0x6CBE347B
	.word	0x1F04128F
	.word	0x34193761
	.word	0x4C2855E6
	.word	0x78D4393F
	.word	0x7E9A7C0E
	.word	0x61223FE0
	.word	0x07EA70C0
	.word	0x71977ABE
	.word	0x22D3271D
	.word	0x72740C60
	.word	0x376D086C
	.word	0x5DB20D7A
	.word	0x36151292
	.word	0x21CD25C3
	.word	0x351C6250
	.word	0x45555694
	.word	0x3D32253F
	.word	0x37365345
	.word	0x70912F8D
	.word	0x57C20347
	.word	0x78E93175
	.word	0x06830A01
	.word	0x680E4880
	.word	0x40C3706C
	.word	0x7764687D
	.word	0x1CD74C6D
	.word	0x52065841
	.word	0x2E3001F5
	.word	0x55B93E1F
	.word	0x1E1F79DB
	.word	0x76937826
	.word	0x056B6A74
	.word	0x316B3C1D
	.word	0x52950DF8
	.word	0x38FF3B3F
	.word	0x48E66294
	.word	0x49E845B7
	.word	0x643D504E
	.word	0x513E29DA
	.word	0x2D9A509D
	.word	0x520B4B26
	.word	0x4C6973C4
	.word	0x35702CFE
	.word	0x608F5FF2
	.word	0x71996D23
	.word	0x7136261B
	.word	0x336269F2
	.word	0x7C590894
	.word	0x76C61060
	.word	0x730E0F71
	.word	0x3A0C0DB5
	.word	0x2E96069E
	.word	0x37B0610B
	.word	0x2A2641C0
	.word	0x53120886
	.word	0x0D7341C9
	.word	0x23E14650
	.word	0x5400185D
	.word	0x4C45395B
	.word	0x1D2724E8
	.word	0x05CF45D6
	.word	0x70E9077C
	.word	0x1121096C
	.word	0x0575656B
	.word	0x745C573F
	.word	0x51795BA9
	.word	0x344E77A7
	.word	0x772C3ADE
	.word	0x745927AB
	.word	0x5418694E
	.word	0x2921143B
	.word	0x41A80669
	.word	0x49FD4D33
	.word	0x52762C31
	.word	0x2D1B6C10
	.word	0x18516A50
	.word	0x7A716A70
	.word	0x3F0F56F5
	.word	0x6167644C
	.word	0x08195172
	.word	0x7D4541F4
	.word	0x72AF5297
	.word	0x145E05CE
	.word	0x1CFF66CC
	.word	0x1DFA39CD
	.word	0x29EA2DF0
	.word	0x3B0438B3
	.word	0x37917CF5
	.word	0x0D784F07
	.word	0x32A17D38
	.word	0x1A8B6FD6
	.word	0x126365A1
	.word	0x23977929
	.word	0x4983297F
	.word	0x21CD4449
	.word	0x779B3920
	.word	0x50997DB5
	.word	0x27873033
	.word	0x72D400E0
	.word	0x26680DDE
	.word	0x3EAC33AB
	.word	0x3F74529F
	.word	0x1C531DA5
	.word	0x68841FE4
	.word	0x236A3704
	.word	0x2B5B3568
	.word	0x032C2B63
	.word	0x57B76853
	.word	0x415A0C39
	.word	0x4A1A7011
	.word	0x7BEA2F1D
	.word	0x535524EE
	.word	0x196F33BC
	.word	0x0CD90C76
	.word	0x14476D96
	.word	0x25BD4F8F
	.word	0x4C862D7B
	.word	0x748F7652
	.word	0x0CA626C9
	.word	0x59DA05AE
	.word	0x2CEB6C62
	.word	0x3F7B5ABB
	.word	0x0197416F
	.word	0x40A45FDF
	.word	0x7FD239D8
	.word	0x46AD77A3
	.word	0x4558667F
	.word	0x269E3953
	.word	0x6EE0093F
	.word	0x0B7D5B57
	.word	0x69500CA7
	.word	0x39586754
	.word	0x29A23B76
	.word	0x75111402
	.word	0x779473D6
	.word	0x1CEC60CC
	.word	0x37125259
	.word	0x3DDA4F29
	.word	0x5C6410B4
	.word	0x318355BD
	.word	0x7717143E
	.word	0x1115692E
	.word	0x7FAD6826
	.word	0x08CF36C7
	.word	0x54041F77
	.word	0x584C6CCF
	.word	0x0E865ACD
	.word	0x0B902CA7
	.word	0x24166DD5
	.word	0x38D402A6
	.word	0x74B56086
	.word	0x4F117FB5
	.word	0x3AF84821
	.word	0x414E50A9
	.word	0x062A33E9
	.word	0x1AAA6F63
	.word	0x2B4029A2
	.word	0x472949AA
	.word	0x58816DCC
	.word	0x1D3E79C3
	.word	0x37F2139C
	.word	0x741C6CD5
	.word	0x4C8310BF
	.word	0x52BD1300
	.word	0x75FA50CE
	.word	0x03AF7537
	.word	0x47A3048F
	.word	0x19A14CE1
	.word	0x1DB428F1
	.word	0x30B17934
	.word	0x1D8201C6
	.word	0x78736E4C
	.word	0x0C66043E
	.word	0x52C17A0D
	.word	0x296D6D27
	.word	0x13457ABE
	.word	0x75C37EE7
	.word	0x2BC76362
	.word	0x17DD2335
	.word	0x513729D6
	.word	0x45686C9A
	.word	0x657A7AAC
	.word	0x5FF433AB
	.word	0x31F54EC9
	.word	0x30604C03
	.word	0x3EDA3EC0
	.word	0x6D040D03
	.word	0x53352FED
	.word	0x76A12A49
	.word	0x69B53752
	.word	0x780917F1
	.word	0x263B4E31
	.word	0x548E768E
	.word	0x1824346D
	.word	0x112C42E6
	.word	0x55571CA1
	.word	0x24764571
	.word	0x3A0D7DFD
	.word	0x59417D90
	.word	0x596327E5
	.word	0x3012048E
	.word	0x6AA17348
	.word	0x6B482457
	.word	0x3F482DC0
	.word	0x32091DFA
	.word	0x0DDD1A6E
	.word	0x75ED5BE0
	.word	0x1D782493
	.word	0x076D0BCA
	.word	0x1E0B1FEF
	.word	0x050A5C8C
	.word	0x397332DA
	.word	0x113D5B8B
	.word	0x29414623
	.word	0x7B212DF7
	.word	0x5D4516AC
	.word	0x45E221C9
	.word	0x7EDE44C2
	.word	0x3AE5527C
	.word	0x5D047D3D
	.word	0x72B55D8B
	.word	0x0D12185B
	.word	0x00B162AD
	.word	0x4C544A5D
	.word	0x2D764BD3
	.word	0x6E5541DF
	.word	0x6C0D18DD
	.word	0x63E54FF8
	.word	0x75D42B20
	.word	0x26EC7616
	.word	0x392E4C99
	.word	0x16F27596
	.word	0x06EA6EEE
	.word	0x126A3D26
	.word	0x2A745E28
	.word	0x58C14FDB
	.word	0x58BE6332
	.word	0x012B0211
	.word	0x21EC1211
	.word	0x12282806
	.word	0x51C23FE1
	.word	0x05D81235
	.word	0x6ACD5C93
	.word	0x47047374
	.word	0x28542C68
	.word	0x72E80CCD
	.word	0x32FE1D2C
	.word	0x6BC23B1C
	.word	0x74403333
	.word	0x081B426C
	.word	0x348C4A15
	.word	0x6AD87312
	.word	0x703B2528
	.word	0x50000487
	.word	0x0F360BC2
	.word	0x5A4A4207
	.word	0x6B686D2B
	.word	0x2D6E64EA
	.word	0x51E44864
	.word	0x612838C5
	.word	0x6AD5539B
	.word	0x190C6540
	.word	0x34291F69
	.word	0x4D0D79B5
	.word	0x7AFD31D1
	.word	0x0ECB168E
	.word	0x7FC754F9
	.word	0x57A0505B
	.word	0x314515A6
	.word	0x2B6928B6
	.word	0x2A292D79
	.word	0x1C1438D7
	.word	0x5D8154EB
	.word	0x79EE69F6
	.word	0x1DE8390A
	.word	0x3CAA5764
	.word	0x6B6E10F1
	.word	0x71303667
	.word	0x34480F08
	.word	0x382B5FDA
	.word	0x74382A00
	.word	0x21515781
	.word	0x5EBB798D
	.word	0x6F716D2D
	.word	0x7FF422E2
	.word	0x113E5394
	.word	0x005B10EE
	.word	0x5ADD48EE
	.word	0x77257458
	.word	0x4C302D4F
	.word	0x7772473B
	.word	0x6FE022C8
	.word	0x443950A1
	.word	0x1F2D133C
	.word	0x56F363C1
	.word	0x36753802
	.word	0x250A56F9
	.word	0x06857F3F
	.word	0x50006E8A
	.word	0x0EA36B01
	.word	0x2C603715
	.word	0x4B57461C
	.word	0x4B650BD9
	.word	0x25FE4AC5
	.word	0x736B44AA
	.word	0x510C16EF
	.word	0x331947B0
	.word	0x1D240A69
	.word	0x7B4C7AE5
	.word	0x12D96AB4
	.word	0x6BC2514C
	.word	0x5D4268A5
	.word	0x3E8B6FF2
	.word	0x514063BF
	.word	0x7E3026A6
	.word	0x1D8E074E
	.word	0x72A03877
	.word	0x6F8D1D44
	.word	0x70DE2FF2
	.word	0x18CD32D3
	.word	0x796C3B18
	.word	0x015B6ACE
	.word	0x51764B21
	.word	0x72CD19C0
	.word	0x02BF73F3
	.word	0x080E07C9
	.word	0x6E4C4761
	.word	0x4DEA743C
	.word	0x5DD22824
	.word	0x605836FA
	.word	0x3FE1509A
	.word	0x108B1B8D
	.word	0x7ACD0940
	.word	0x5FB75204
	.word	0x025F4AF1
	.word	0x5AA41191
	.word	0x1C4048DC
	.word	0x21F448E3
	.word	0x7F211E46
	.word	0x2B337844
	.word	0x38AB1C05
	.word	0x06A31173
	.word	0x062A71B8
	.word	0x35C5793F
	.word	0x0BF92EC7
	.word	0x5EA706E8
	.word	0x17AB571E
	.word	0x67F11D35
	.word	0x58FE07A8
	.word	0x49AD3954
	.word	0x3D80668D
	.word	0x1ED91376
	.word	0x5AFF5B2C
	.word	0x43AE2D27
	.word	0x14B249D7
	.word	0x0CAE696E
	.word	0x67284F51
	.word	0x62700AA8
	.word	0x06F43809
	.word	0x4E2B3225
	.word	0x3E162F13
	.word	0x43043D7F
	.word	0x342860EA
	.word	0x30181DBE
	.word	0x0D4D0DE7
	.word	0x2747042D
	.word	0x0BD94880
	.word	0x24C600FA
	.word	0x20C05B42
	.word	0x43636F91
	.word	0x16C0128C
	.word	0x69974CB5
	.word	0x444E6611
	.word	0x3B4E5263
	.word	0x70423E0B
	.word	0x5C757566
	.word	0x55415040
	.word	0x504720BA
	.word	0x6FEE50B6
	.word	0x01584AA1
	.word	0x03D07235
	.word	0x3E5E3F87
	.word	0x03017281
	.word	0x37C23E96
	.word	0x449C2E54
	.word	0x49EB4419
	.word	0x35E4791D
	.word	0x20451D92
	.word	0x7234347B
	.word	0x7D132399
	.word	0x6DAB6378
	.word	0x31FA357B
	.word	0x1E933585
	.word	0x1549528E
	.word	0x5196453A
	.word	0x00096D56
	.word	0x149F06CA
	.word	0x20C85459
	.word	0x64912247
	.word	0x2F264CC2
	.word	0x09AA359B
	.word	0x4C1C3AB8
	.word	0x4EB63A42
	.word	0x1B10737C
	.word	0x7EF30AC8
	.word	0x5F991545
	.word	0x56C74406
	.word	0x2C1200DB
	.word	0x53247E1C
	.word	0x6CE050F5
	.word	0x0BB7192D
	.word	0x5C836B53
	.word	0x03D419DE
	.word	0x2C5F079B
	.word	0x1E21518C
	.word	0x6E4847F5
	.word	0x1F044E4F
	.word	0x0AD03F65
	.word	0x69CD4EB3
	.word	0x505001EB
	.word	0x64A33531
	.word	0x66B71A5C
	.word	0x2F30376F
	.word	0x341501FF
	.word	0x180C453C
	.word	0x7DE675E7
	.word	0x7CEA6349
	.word	0x531F4613
	.word	0x018575A8
	.word	0x0AFA7A46
	.word	0x49483606
	.word	0x648268A7
	.word	0x1FC051A9
	.word	0x12DE1A19
	.word	0x3BC26B28
	.word	0x425D1858
	.word	0x095B7BEC
	.word	0x624501D8
	.word	0x267C5169
	.word	0x3F5B7F5E
	.word	0x7E62221C
	.word	0x3B32775B
	.word	0x2FC77645
	.word	0x2C341B0B
	.word	0x29CA6062
	.word	0x32712951
	.word	0x2B9F416F
	.word	0x0D2B0351
	.word	0x12F614DF
	.word	0x3D1D6ECB
	.word	0x252D0058
	.word	0x7F8F223B
	.word	0x3F342332
	.word	0x6E1B76B1
	.word	0x184461AE
	.word	0x4F3D5B70
	.word	0x033F27F6
	.word	0x639C6749
	.word	0x5AE560D8
	.word	0x3C1A23B5
	.word	0x04BD1C42
	.word	0x649D6DB5
	.word	0x36BE217D
	.word	0x6F9B086A
	.word	0x6BC0692A
	.word	0x2E683D73
	.word	0x32A53AFD
	.word	0x223F270A
	.word	0x44466B3B
	.word	0x72127FDE
	.word	0x0C1F73F4
	.word	0x711114AE
	.word	0x0FBB6601
	.word	0x01FC33AA
	.word	0x60DE6DBC
	.word	0x63293589
	.word	0x06746782
	.word	0x2F547C69
	.word	0x083C3FE9
	.word	0x1F2A046B
	.word	0x09341BC2
	.word	0x5794620B
	.word	0x1CC303CD
	.word	0x50C44A40
	.word	0x42A9103F
	.word	0x22000057
	.word	0x35A74FF4
	.word	0x3E31458F
	.word	0x78ED6774
	.word	0x6D2B2675
	.word	0x504823A7
	.word	0x0DBA41FE
	.word	0x0F087C58
	.word	0x6C706666
	.word	0x69B2426C
	.word	0x3B311FCB
	.word	0x366A75DF
	.word	0x757B1488
	.word	0x481F7F82
	.word	0x3D764B52
	.word	0x50744A76
	.word	0x7DBF3715
	.word	0x74727966
	.word	0x5BF4248C
	.word	0x7FEE3388
	.word	0x47FF65A3
	.word	0x63BB4553
	.word	0x3423568C
	.word	0x6A9010FE
	.word	0x41C818A3
	.word	0x50B80ABC
	.word	0x6F061F02
	.word	0x2A7C3CB8
	.word	0x10F368E4
	.word	0x45500ED2
	.word	0x26AD05BA
	.word	0x6FC04E17
	.word	0x51263F0F
	.word	0x54183003
	.word	0x7BB2041C
	.word	0x51D64D76
	.word	0x0152732B
	.word	0x01D05176
	.word	0x5ABE1CAC
	.word	0x512557AA
	.word	0x21345C18
	.word	0x5EE53692
	.word	0x72036289
	.word	0x08803187
	.word	0x7ED64F16
	.word	0x50EF4E76
	.word	0x56C170F0
	.word	0x0EA44B5C
	.word	0x340D0F3E
	.word	0x0C326F81
	.word	0x5AC452B8
	.word	0x07BC3474
	.word	0x53FB2D05
	.word	0x3D1F02CA
	.word	0x11E259D5
	.word	0x66DF7E95
	.word	0x488D55BE
	.word	0x61D21FA6
	.word	0x077F66D8
	.word	0x5F8F1183
	.word	0x5FFB1317
	.word	0x53941727
	.word	0x240B206B
	.word	0x07396E7C
	.word	0x0A4D7A99
	.word	0x00586F99
	.word	0x42801AD7
	.word	0x26BA63BB
	.word	0x46D24D2A
	.word	0x54405005
	.word	0x75E76F80
	.word	0x3BD62FF7
	.word	0x41A9068D
	.word	0x53175BB0
	.word	0x7ED24466
	.word	0x2AC015E4
	.word	0x213B5CDE
	.word	0x61D67D9B
	.word	0x70E243A3
	.word	0x1F975FAF
	.word	0x03BC3018
	.word	0x40222403
	.word	0x084002F2
	.word	0x1FE55283
	.word	0x2CB06992
	.word	0x31CA6BE0
	.word	0x2F265B24
	.word	0x4C211208
	.word	0x62624B7B
	.word	0x584C3C68
	.word	0x33552FAB
	.word	0x512C73E1
	.word	0x7B6C3064
	.word	0x3C4F528B
	.word	0x2B9E2611
	.word	0x09D6432C
	.word	0x1C343AB4
	.word	0x07273C77
	.word	0x0D5B4D80
	.word	0x50587404
	.word	0x246B7433
	.word	0x6C564513
	.word	0x71F5363A
	.word	0x7FD94700
	.word	0x4C8F5D83
	.word	0x43084F86
	.word	0x0C5E7920
	.word	0x25EB5CB4
	.word	0x73686DA0
	.word	0x4F9522AF
	.word	0x4E972F2D
	.word	0x640D392D
	.word	0x1B8C0165
	.word	0x3D0024AC
	.word	0x3F2958F9
	.word	0x01293776
	.word	0x18DD3B08
	.word	0x467C0656
	.word	0x7EAE3639
	.word	0x2B156D17
	.word	0x6E08519A
	.word	0x10E45EC1
	.word	0x7D470D3C
	.word	0x68157D93
	.word	0x5A06508A
	.word	0x344036BF
	.word	0x6025626D
	.word	0x38555DE8
	.word	0x159C4722
	.word	0x7545045C
	.word	0x17031FD6
	.word	0x67710811
	.word	0x40DD6806
	.word	0x2ED31661
	.word	0x21A82C99
	.word	0x0DEF1E85
	.word	0x00A518BA
	.word	0x6B776FD3
	.word	0x05677477
	.word	0x42C17FB8
	.word	0x4C1E711B
	.word	0x2EE91373
	.word	0x72A15F4C
	.word	0x7CC64996
	.word	0x6A3D2AE3
	.word	0x6F8E3F3E
	.word	0x1A3F388E
	.word	0x24474D0D
	.word	0x1F430128
	.word	0x3FF517EC
	.word	0x333B06D3
	.word	0x547D7182
	.word	0x0A3E7FDB
	.word	0x285B4473
	.word	0x3016534A
	.word	0x4D080859
	.word	0x3288434B
	.word	0x30287983
	.word	0x2461613F
	.word	0x13771070
	.word	0x454527A1
	.word	0x17727509
	.word	0x5A37559A
	.word	0x44C569A2
	.word	0x02E76863
	.word	0x407769AF
	.word	0x17BF4E5F
	.word	0x16D77846
	.word	0x5CAC2FF4
	.word	0x49265A58
	.word	0x14AD6A2D
	.word	0x0A0138AF
	.word	0x421C1710
	.word	0x549565A7
	.word	0x1FBF3FC0
	.word	0x4A8142AC
	.word	0x1E8E1453
	.word	0x04890177
	.word	0x74424571
	.word	0x42013D08
	.word	0x06A25BB1
	.word	0x22F42662
	.word	0x3F8D28B3
	.word	0x59174109
	.word	0x15C62DFD
	.word	0x7B706B3C
	.word	0x56821597
	.word	0x68C62DF2
	.word	0x7BB31865
	.word	0x64C71097
	.word	0x1B126E47
	.word	0x5BFC6C83
	.word	0x39EF23F2
	.word	0x7A6D7C3E
	.word	0x11B8728C
	.word	0x01132276
	.word	0x114B750A
	.word	0x060224BC
	.word	0x26FB574A
	.word	0x0B535602
	.word	0x1F645AEF
	.word	0x18D36CD5
	.word	0x24EF4E00
	.word	0x446D015A
	.word	0x2C244F3F
	.word	0x55576F0A
	.word	0x58B37C4B
	/****************************************************************
	                           DMA TEST #3.49
	 ****************************************************************/
	ori	$1,	$0,	0x0031		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x0808		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x2F80
	lui	$13,	0x0500			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep49:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep49		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write49:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write49		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x6DFF			/* load random number	*/
	ori	$9,	$9,	0x162D
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read49:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read49		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk49:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk49		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln49:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln49		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.50
	 ****************************************************************/
	ori	$1,	$0,	0x0032		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x0F78		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x2F88
	lui	$13,	0xFF80			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep50:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep50		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write50:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write50		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x2740			/* load random number	*/
	ori	$9,	$9,	0x6575
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read50:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read50		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk50:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk50		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln50:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln50		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.51
	 ****************************************************************/
	ori	$1,	$0,	0x0033		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x0F80		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x2FF8
	lui	$13,	0xFF80			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep51:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep51		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write51:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write51		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x68B4			/* load random number	*/
	ori	$9,	$9,	0x3918
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read51:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read51		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk51:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk51		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln51:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln51		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.52
	 ****************************************************************/
	ori	$1,	$0,	0x0034		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x0000		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x2770
	lui	$13,	0x0580			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep52:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep52		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write52:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write52		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x67F2			/* load random number	*/
	ori	$9,	$9,	0x6362
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read52:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read52		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk52:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk52		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln52:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln52		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.53
	 ****************************************************************/
	ori	$1,	$0,	0x0035		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x0008		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x2778
	lui	$13,	0x0600			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep53:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep53		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write53:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write53		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x5315			/* load random number	*/
	ori	$9,	$9,	0x7126
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read53:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read53		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk53:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk53		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln53:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln53		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.54
	 ****************************************************************/
	ori	$1,	$0,	0x0036		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x0770		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x2780
	lui	$13,	0x0680			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep54:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep54		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write54:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write54		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x55BA			/* load random number	*/
	ori	$9,	$9,	0x2A65
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read54:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read54		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk54:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk54		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln54:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln54		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.55
	 ****************************************************************/
	ori	$1,	$0,	0x0037		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x0778		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x27E8
	lui	$13,	0x0700			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep55:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep55		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write55:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write55		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x343A			/* load random number	*/
	ori	$9,	$9,	0x7777
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read55:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read55		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk55:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk55		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln55:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln55		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.56
	 ****************************************************************/
	ori	$1,	$0,	0x0038		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x0780		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x27F0
	lui	$13,	0x0780			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep56:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep56		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write56:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write56		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x5663			/* load random number	*/
	ori	$9,	$9,	0x3799
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read56:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read56		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk56:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk56		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln56:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln56		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.57
	 ****************************************************************/
	ori	$1,	$0,	0x0039		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x07E8		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x27F8
	lui	$13,	0x0800			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep57:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep57		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write57:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write57		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x09A4			/* load random number	*/
	ori	$9,	$9,	0x3D6B
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read57:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read57		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk57:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk57		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln57:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln57		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.58
	 ****************************************************************/
	ori	$1,	$0,	0x003A		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x07F0		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x2800
	lui	$13,	0x0880			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep58:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep58		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write58:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write58		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x2F5E			/* load random number	*/
	ori	$9,	$9,	0x73C1
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read58:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read58		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk58:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk58		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln58:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln58		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.59
	 ****************************************************************/
	ori	$1,	$0,	0x003B		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x07F8		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x2808
	lui	$13,	0x0900			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep59:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep59		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write59:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write59		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x26E5			/* load random number	*/
	ori	$9,	$9,	0x10DD
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read59:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read59		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk59:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk59		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln59:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln59		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.60
	 ****************************************************************/
	ori	$1,	$0,	0x003C		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x0800		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x2F70
	lui	$13,	0x0980			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep60:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep60		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write60:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write60		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x3B4B			/* load random number	*/
	ori	$9,	$9,	0x27E1
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read60:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read60		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk60:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk60		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln60:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln60		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.61
	 ****************************************************************/
	ori	$1,	$0,	0x003D		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x0808		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x2F78
	lui	$13,	0x0A00			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep61:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep61		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write61:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write61		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x640E			/* load random number	*/
	ori	$9,	$9,	0x4820
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read61:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read61		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk61:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk61		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln61:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln61		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.62
	 ****************************************************************/
	ori	$1,	$0,	0x003E		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x0F70		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x2F80
	lui	$13,	0xFF80			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep62:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep62		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write62:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write62		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x6C47			/* load random number	*/
	ori	$9,	$9,	0x1F99
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read62:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read62		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk62:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk62		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln62:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln62		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.63
	 ****************************************************************/
	ori	$1,	$0,	0x003F		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x0F78		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x2FF8
	lui	$13,	0xFF80			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x007F

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
Prep63:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep63		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write63:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write63		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x46DD			/* load random number	*/
	ori	$9,	$9,	0x31BA
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x007C		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read63:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read63		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x0080		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk63:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk63		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln63:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln63		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	                           DMA TEST #3.64
	 ****************************************************************/
	ori	$1,	$0,	0x0040		/* R1  = TEST ID   	*/
	ori	$2,	$0,	0x0004		/* R2  = 4		*/
	ori	$10,	$0,	0x0000		/* R10 = DMEM ADDRESS	*/
	lui	$11,	0x0000			/* R11 = DRAM ADDRESS	*/
	ori	$11,	$11,	0x2800
	lui	$13,	0x0A80			/* R13 = WRITE DMA LEN	*/
	ori	$13,	$13,	0x07F7

	/* Prepare DMA write data */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	or	$6,	$10,	$0		/* copy DMEM address	*/
	xor	$4,	$11,	$9		/* gen data pattern	*/
	ori	$3,	$0,	0x07F8		/* len of data (bytes)	*/
Prep64:	sw	$4,	0x0000 ($6)		/* wr pattn into DMEM	*/
	sub	$4,	$4,	$2		/* update data pattern	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$6,	$6,	$2		/* update DMEM pointer	*/
	bne	$3,	$0,	Prep64		/* done?		*/
	nop					/* bne delay slot	*/

	/* DMA write */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Write64:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Write64		/* wait for DMA to end	*/

	/* Mess up DMEM before reading data back */
	lui	$9,	0x26F8			/* load random number	*/
	ori	$9,	$9,	0x1544
	or	$6,	$10,	$0		/* copy DMEM address	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM	*/
	addi	$6,	$6,	0x07F4		/* goto end of DMEM	*/
	sw	$9,	0x0000 ($6)		/* mess-up DMEM again	*/

	/* DMA read data back */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$2			/* initiate DMA read	*/
Read64:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Read64		/* wait for DMA to end	*/

	/* Check result */
	lui	$9,	0xFFFF			/* ld for bit-wise inv	*/
	ori	$9,	$9,	0xFFFF
	ori	$3,	$0,	0x07F8		/* len of data (bytes)	*/
	or	$4,	$11,	$0		/* R4 = R11 =DRAM addr	*/
	or	$6,	$10,	$0		/* R6 = R10 =DMEM addr	*/
Chk64:	lw	$5,	0x0000 ($6)		/* read test data	*/
	xor	$5,	$5,	$9		/* convert data	*/
	bne	$5,	$4,	Fail		/* verify data		*/
	nop					/* bne delay slot	*/
	sw	$5,	0x0000 ($6)		/* restore data	*/
	sub	$3,	$3,	$2		/* decrement counter	*/
	add	$4,	$4,	$2		/* predict next data	*/
	add	$6,	$6,	$2		/* advance DMEM ptr	*/
	bne	$3,	$0,	Chk64		/* check if done	*/
	nop					/* bne delay slot	*/

	/* Clean-up RDRAM */
	mtc0	$10,	$0			/* DMEM ad -> DMA reg	*/
	mtc0	$11,	$1			/* DRAM ad -> DMA reg	*/
	mtc0	$13,	$3			/* initiate DMA write	*/
Cln64:	mfc0	$14,	$4			/* read status reg	*/
	andi	$15,	$14,	0x0004		/* extract busy bit	*/
	bne	$15,	$0,	Cln64		/* wait for DMA to end	*/
	nop					/* bne delay slot	*/

	/****************************************************************
	  Wrap up ...
	 ****************************************************************/
	nop					
Done:	ori	$1,	$0,	0xFEED		/* Test passed		*/
	break

Time:	ori	$1,	$0,	0xDEAD		/* Timed-out from DMA	*/
	break

Fail:	break