dma34.s 57.7 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
/************************************************************************
  DMA BLOCK WRITE TESTS: File #4
************************************************************************/
	.word	0x52F823D0
	.word	0x2BAF281A
	.word	0x75B33C3A
	.word	0x769872BE
	.word	0x4B376BDB
	.word	0x238C7B98
	.word	0x23E40ADC
	.word	0x2FC36A8D
	.word	0x63D3218D
	.word	0x52BA4624
	.word	0x65A32147
	.word	0x3BE31DBD
	.word	0x3E014F04
	.word	0x7F0C1B91
	.word	0x2BF93BBB
	.word	0x5B8F3A6D
	.word	0x4200667C
	.word	0x4A3F1B2E
	.word	0x13BD6450
	.word	0x7E0D35FB
	.word	0x749B29CE
	.word	0x437E6345
	.word	0x1310527D
	.word	0x6ACD7880
	.word	0x7CAA01ED
	.word	0x28DF749E
	.word	0x56DE3A94
	.word	0x1AEB7850
	.word	0x58904669
	.word	0x58E505FC
	.word	0x50610D42
	.word	0x42AF457C
	.word	0x43BC74EE
	.word	0x73FF479C
	.word	0x72A02712
	.word	0x0B0E0552
	.word	0x4C2B58C4
	.word	0x2E0616BB
	.word	0x1FEA6FE9
	.word	0x7B295DDA
	.word	0x17E2224F
	.word	0x4FC1210F
	.word	0x475D6A89
	.word	0x11CB5159
	.word	0x5A766E8E
	.word	0x6862784B
	.word	0x32643410
	.word	0x0EEC09CF
	.word	0x7A863E9E
	.word	0x2F08159E
	.word	0x02327379
	.word	0x6D33147B
	.word	0x673D5F36
	.word	0x143D4D32
	.word	0x5D4A3917
	.word	0x0B6E0D54
	.word	0x1DD4402A
	.word	0x037731AF
	.word	0x4CF94E1F
	.word	0x061A3A90
	.word	0x5F0C3BEA
	.word	0x549967B8
	.word	0x4AD8741D
	.word	0x40E0181F
	.word	0x14B54F03
	.word	0x6D71696B
	.word	0x7E4D147C
	.word	0x2013532E
	.word	0x672B3F9B
	.word	0x133A39E2
	.word	0x2A096000
	.word	0x723535A6
	.word	0x02D634F7
	.word	0x6C1A08B6
	.word	0x49895E4D
	.word	0x097101AC
	.word	0x0DA83EF6
	.word	0x30A34579
	.word	0x5E976D60
	.word	0x05213D22
	.word	0x4CA14D95
	.word	0x0D53233A
	.word	0x6EC83113
	.word	0x4B476D23
	.word	0x794D186B
	.word	0x34160C03
	.word	0x30FE729C
	.word	0x32164188
	.word	0x4742762D
	.word	0x1DC1045C
	.word	0x6AE5700C
	.word	0x59683067
	.word	0x19A42429
	.word	0x7B977EC8
	.word	0x7E781BD2
	.word	0x34470191
	.word	0x68A37DCD
	.word	0x58C61F44
	.word	0x277B4C37
	.word	0x42674A11
	.word	0x56F9241F
	.word	0x6BE96ECD
	.word	0x69015AE1
	.word	0x79A857B2
	.word	0x776F1544
	.word	0x18867ED9
	.word	0x2AE53453
	.word	0x5F970C78
	.word	0x425733FC
	.word	0x208F7CDB
	.word	0x0753576A
	.word	0x52EB2A24
	.word	0x3B113F22
	.word	0x05E235C2
	.word	0x483F44DF
	.word	0x050A0DB2
	.word	0x4589392E
	.word	0x1BCB0978
	.word	0x14EA5ECA
	.word	0x23845ADC
	.word	0x2BB53FB5
	.word	0x487F4E65
	.word	0x4F62381A
	.word	0x31951797
	.word	0x531952E6
	.word	0x76A024EC
	.word	0x22005420
	.word	0x11A53793
	.word	0x22450D0C
	.word	0x36BE3AEA
	.word	0x3CEA5604
	.word	0x3EC917BD
	.word	0x16534A11
	.word	0x10D37F3C
	.word	0x4391204C
	.word	0x364269BE
	.word	0x086C3EF7
	.word	0x05C44538
	.word	0x6A32645A
	.word	0x10FB0F7B
	.word	0x2342015F
	.word	0x40E55831
	.word	0x435821ED
	.word	0x4D0D6695
	.word	0x08967F05
	.word	0x79737EF5
	.word	0x3D56169D
	.word	0x473C03E9
	.word	0x26B1653F
	.word	0x041A6F51
	.word	0x4FCF1D61
	.word	0x64795F10
	.word	0x3DED7883
	.word	0x146F318A
	.word	0x592F7E0B
	.word	0x6B606DDE
	.word	0x162B5BE0
	.word	0x2E7473E3
	.word	0x2C312CC8
	.word	0x0DBA2FE4
	.word	0x645C4882
	.word	0x48194E1C
	.word	0x4D5A79A3
	.word	0x21FB29F0
	.word	0x5FFA3531
	.word	0x1AB774EE
	.word	0x607A3001
	.word	0x0CC2518A
	.word	0x088E6DD0
	.word	0x24965D92
	.word	0x46302624
	.word	0x5A5E6876
	.word	0x1B2B1AE0
	.word	0x5A66513A
	.word	0x69653CAA
	.word	0x08454837
	.word	0x37EF38FD
	.word	0x08C77095
	.word	0x3CCE4E0D
	.word	0x7E9D1D88
	.word	0x3787005E
	.word	0x65C4274D
	.word	0x686C0E23
	.word	0x39B513E3
	.word	0x30A93C57
	.word	0x52510F8A
	.word	0x270D599D
	.word	0x238B70FD
	.word	0x2D9A12D8
	.word	0x4BD3456E
	.word	0x53CB758A
	.word	0x1D462046
	.word	0x11A73BED
	.word	0x0D972A99
	.word	0x278A3ED3
	.word	0x38BB2E6B
	.word	0x2EAE293E
	.word	0x625719A5
	.word	0x267C49BF
	.word	0x21EA34D5
	.word	0x0A951D8F
	.word	0x25BA09A9
	.word	0x3D9F716F
	.word	0x387F3529
	.word	0x54D0343F
	.word	0x75D221B7
	.word	0x103B5760
	.word	0x595464C8
	.word	0x0BDD58CB
	.word	0x149E3C60
	.word	0x756752EE
	.word	0x57EC684F
	.word	0x52C92E4A
	.word	0x79885B2D
	.word	0x258350CE
	.word	0x27F87F16
	.word	0x76AA66F1
	.word	0x12E70A26
	.word	0x17BC2291
	.word	0x36D41EB3
	.word	0x24250B8E
	.word	0x377C334D
	.word	0x0F8D3E25
	.word	0x75087E77
	.word	0x4CE8330E
	.word	0x47F76222
	.word	0x5A3B6D56
	.word	0x0FC912ED
	.word	0x3D2F29FA
	.word	0x0071771F
	.word	0x3C576D47
	.word	0x5A787960
	.word	0x614109F4
	.word	0x79F14B3A
	.word	0x0F3E7DFB
	.word	0x68205354
	.word	0x3AF1413C
	.word	0x5BE94368
	.word	0x0E9A61D1
	.word	0x54FA1209
	.word	0x07200A2F
	.word	0x3DB85417
	.word	0x55E04D01
	.word	0x3FEA31FD
	.word	0x133852C4
	.word	0x382874B1
	.word	0x0DD24523
	.word	0x74016669
	.word	0x42B01410
	.word	0x26EF031E
	.word	0x49FC70A6
	.word	0x41FC34C2
	.word	0x448D19C2
	.word	0x1A301740
	.word	0x1639565B
	.word	0x09C10037
	.word	0x78DD39A5
	.word	0x77FA4677
	.word	0x342D0CEA
	.word	0x73E70537
	.word	0x063C7B23
	.word	0x4DC6571C
	.word	0x08CA5A59
	.word	0x5B2D44EB
	.word	0x1F512EBE
	.word	0x51FA6408
	.word	0x39CE438A
	.word	0x65FF60B6
	.word	0x78507597
	.word	0x156A700D
	.word	0x7B420BBB
	.word	0x4FF665BA
	.word	0x6C7838E9
	.word	0x64D46979
	.word	0x0CFA2406
	.word	0x63570854
	.word	0x5394118C
	.word	0x5A621D99
	.word	0x68190AE1
	.word	0x22924F9C
	.word	0x077B1F75
	.word	0x1F2A1C31
	.word	0x1C8C1B9E
	.word	0x21C230E8
	.word	0x19925133
	.word	0x5CAF0B06
	.word	0x5E8D4DEA
	.word	0x10311B48
	.word	0x38471B72
	.word	0x5E5F6957
	.word	0x4420654F
	.word	0x71D3730A
	.word	0x44962079
	.word	0x6315435E
	.word	0x329710B4
	.word	0x08C87D35
	.word	0x178647AE
	.word	0x1E9755D1
	.word	0x7C0F79DA
	.word	0x6EDD3B10
	.word	0x77AB450F
	.word	0x6B172165
	.word	0x2CF244DF
	.word	0x5F0A359A
	.word	0x3EA410B8
	.word	0x2AB36E48
	.word	0x09757FBD
	.word	0x2EF33911
	.word	0x2E9C4E62
	.word	0x58F73FA4
	.word	0x3B1A01CA
	.word	0x7869006E
	.word	0x77CB24E0
	.word	0x4C583721
	.word	0x2E2E3B37
	.word	0x72E850E6
	.word	0x6DF405A2
	.word	0x27B96861
	.word	0x1F4A7493
	.word	0x7D180568
	.word	0x6DE66434
	.word	0x7BE81C83
	.word	0x58D37E47
	.word	0x564E0A23
	.word	0x72FD5DBE
	.word	0x191F05A3
	.word	0x207C5019
	.word	0x080B47FF
	.word	0x5CA05084
	.word	0x10866257
	.word	0x54C118AC
	.word	0x7F7A0022
	.word	0x63C36365
	.word	0x65AE1131
	.word	0x3A6B3CFD
	.word	0x56F4176A
	.word	0x40657D5D
	.word	0x70151442
	.word	0x7A1147E5
	.word	0x4F7D51F7
	.word	0x7F112D05
	.word	0x6CA70493
	.word	0x4D93499C
	.word	0x7A467EA1
	.word	0x065F0011
	.word	0x3F3875AC
	.word	0x5DA02732
	.word	0x122C127B
	.word	0x4C724ACF
	.word	0x640D490F
	.word	0x4F2F5A15
	.word	0x05353459
	.word	0x3C795FAC
	.word	0x115371BB
	.word	0x01071F90
	.word	0x2E183845
	.word	0x4C3136B0
	.word	0x08A427AC
	.word	0x79391848
	.word	0x3DB40B09
	.word	0x415F04FF
	.word	0x18880B58
	.word	0x02A357C0
	.word	0x54950DAB
	.word	0x27584458
	.word	0x4DEF3931
	.word	0x7A6D63D4
	.word	0x4C7560EA
	.word	0x747B2A98
	.word	0x55BA4D28
	.word	0x4D8E2440
	.word	0x31B620C5
	.word	0x5FB31137
	.word	0x0E315626
	.word	0x26464218
	.word	0x6CEB0FF2
	.word	0x65F84CC7
	.word	0x488C3992
	.word	0x49A2774E
	.word	0x1C4E3369
	.word	0x7FCD7479
	.word	0x3A6C06D0
	.word	0x24FD4E32
	.word	0x1D4A5DD8
	.word	0x06C2199A
	.word	0x1F613ABF
	.word	0x0B7C50EB
	.word	0x45F02B2E
	.word	0x4AF16F10
	.word	0x0A647338
	.word	0x23902901
	.word	0x4E846C13
	.word	0x588260E0
	.word	0x675C1294
	.word	0x04762ED5
	.word	0x6AEF016C
	.word	0x6D291BAA
	.word	0x2C9C5325
	.word	0x03B86925
	.word	0x144C27DA
	.word	0x1DA50429
	.word	0x3C614AB9
	.word	0x32AB7C8B
	.word	0x025E333A
	.word	0x2B421EB5
	.word	0x76565E1C
	.word	0x0BF00AFD
	.word	0x55163A24
	.word	0x095666C3
	.word	0x79122495
	.word	0x50F6034D
	.word	0x6E10316E
	.word	0x12C51662
	.word	0x13963B66
	.word	0x177460A8
	.word	0x7A1477A8
	.word	0x6F7E5DBE
	.word	0x66D2094E
	.word	0x06F25A18
	.word	0x2A98509F
	.word	0x29FE0A9E
	.word	0x371F7209
	.word	0x463F0204
	.word	0x1F3A50DD
	.word	0x74CA1FE7
	.word	0x6DC479CD
	.word	0x18FA55AD
	.word	0x7F483925
	.word	0x1FF85D19
	.word	0x4A7358CC
	.word	0x2D0B3CB0
	.word	0x433A41FA
	.word	0x3EA535CF
	.word	0x44CB7EB6
	.word	0x18297889
	.word	0x2E355717
	.word	0x7C7D3942
	.word	0x1DD60637
	.word	0x0554040D
	.word	0x778842F5
	.word	0x233869C5
	.word	0x218B1873
	.word	0x125A62ED
	.word	0x24304A4B
	.word	0x501A0448
	.word	0x184B408F
	.word	0x5D546138
	.word	0x10563787
	.word	0x597037D7
	.word	0x68652F2A
	.word	0x422842D7
	.word	0x28CE5658
	.word	0x64184D1A
	.word	0x67946DDD
	.word	0x48076310
	.word	0x54985F26
	.word	0x28F73DD4
	.word	0x5C7E02C1
	.word	0x3EEE4406
	.word	0x0E605296
	.word	0x6A833C66
	.word	0x303503E7
	.word	0x0D270E35
	.word	0x2DFF4509
	.word	0x1A392B4C
	.word	0x4FB81AE0
	.word	0x2CC87FF9
	.word	0x61FA1A1B
	.word	0x2E25049C
	.word	0x3D717835
	.word	0x59304D06
	.word	0x59013027
	.word	0x2660318D
	.word	0x52B636ED
	.word	0x6C8F6DEF
	.word	0x1B6F7BBF
	.word	0x428B51EC
	.word	0x314A300C
	.word	0x6D5D5FA1
	.word	0x14CE1336
	.word	0x675773A6
	.word	0x64DB3E11
	.word	0x4BDF52E7
	.word	0x4D522A19
	.word	0x33FE3A43
	.word	0x34847075
	.word	0x4FA84BE6
	.word	0x535C7CAF
	.word	0x47C97667
	.word	0x244B2F31
	.word	0x351431A0
	.word	0x54F62B7F
	.word	0x378A2D51
	.word	0x26A24E36
	.word	0x7ACC4D74
	.word	0x695B06C8
	.word	0x3322105E
	.word	0x7DE810F4
	.word	0x5F473A9A
	.word	0x0A6E4A08
	.word	0x5AFA6485
	.word	0x4DE61DD6
	.word	0x0E4545A9
	.word	0x3E404778
	.word	0x458C59DA
	.word	0x5D5461C3
	.word	0x7E553C12
	.word	0x708D038C
	.word	0x34D9530D
	.word	0x0754639D
	.word	0x7E4E2BA4
	.word	0x7C3E4075
	.word	0x7BF21CEB
	.word	0x5CF407C3
	.word	0x72D71209
	.word	0x64E679A1
	.word	0x147215DA
	.word	0x76AF4391
	.word	0x43E17C46
	.word	0x40464F38
	.word	0x63FF455F
	.word	0x75EA40DC
	.word	0x7A2A163D
	.word	0x4FCC619F
	.word	0x31CF6399
	.word	0x36797179
	.word	0x0CBA2A2C
	.word	0x4A0E1CF7
	.word	0x4C1F50C5
	.word	0x301A12B5
	.word	0x5E67102D
	.word	0x5451749C
	.word	0x5DBC7CBB
	.word	0x07F620DC
	.word	0x6B530DB5
	.word	0x2C060EA8
	.word	0x737C3E6D
	.word	0x52253AB4
	.word	0x266B2518
	.word	0x004A5F70
	.word	0x31C41B6D
	.word	0x03297501
	.word	0x06E85502
	.word	0x7B643504
	.word	0x3A027F65
	.word	0x11701E02
	.word	0x45D047FD
	.word	0x7C4832B1
	.word	0x4032639F
	.word	0x46D570F0
	.word	0x4B7473EF
	.word	0x00183C80
	.word	0x505B667D
	.word	0x421D3984
	.word	0x4CF1299B
	.word	0x3BA052B7
	.word	0x44105300
	.word	0x287C676F
	.word	0x19B0141E
	.word	0x64D75D55
	.word	0x67F21843
	.word	0x070F11E1
	.word	0x18E82871
	.word	0x2C636798
	.word	0x512A30FE
	.word	0x64616B05
	.word	0x771A04EC
	.word	0x67134B79
	.word	0x62F27B06
	.word	0x01E92382
	.word	0x039240BF
	.word	0x67654D2C
	.word	0x040C7ECA
	.word	0x4D893DFA
	.word	0x3DEB2B78
	.word	0x070026A2
	.word	0x044726D6
	.word	0x030E528C
	.word	0x13897C82
	.word	0x60390309
	.word	0x31FE6751
	.word	0x7DB54253
	.word	0x4D1E72A3
	.word	0x37906A49
	.word	0x1F9A5581
	.word	0x39A25AE7
	.word	0x2C28637B
	.word	0x15321C87
	.word	0x190E2F43
	.word	0x056969D9
	.word	0x38703B09
	.word	0x0E775DA3
	.word	0x49595296
	.word	0x63874039
	.word	0x3D8A6B28
	.word	0x3F6330BC
	.word	0x10062510
	.word	0x1BE72612
	.word	0x78594B0C
	.word	0x742703A9
	.word	0x06AC6B65
	.word	0x7D603DEB
	.word	0x748A66C8
	.word	0x029F4A7F
	.word	0x367010E5
	.word	0x4F335846
	.word	0x1A163EC9
	.word	0x53D40B10
	.word	0x7D805EFC
	.word	0x72903722
	.word	0x6AC3775A
	.word	0x1D795868
	.word	0x249824B1
	.word	0x3410417A
	.word	0x6FA27820
	.word	0x4B703E51
	.word	0x247F4E2A
	.word	0x4D3A26C6
	.word	0x56907B9D
	.word	0x19441CCE
	.word	0x1B896C25
	.word	0x16007277
	.word	0x3FB80EAF
	.word	0x5BAE73A1
	.word	0x73152B7F
	.word	0x66410F7D
	.word	0x3B0D0010
	.word	0x7A121DC7
	.word	0x350E3CAF
	.word	0x27473BC3
	.word	0x75D13FD6
	.word	0x18027CF9
	.word	0x116B2B49
	.word	0x15496BB0
	.word	0x18132EF2
	.word	0x6EB8152B
	.word	0x13B1257D
	.word	0x30E81DA5
	.word	0x522B5EB3
	.word	0x569E180E
	.word	0x086E3397
	.word	0x60B41D84
	.word	0x1A3E4043
	.word	0x00C76090
	.word	0x12BE5F80
	.word	0x42A63825
	.word	0x19BF4426
	.word	0x60755E59
	.word	0x71C94C39
	.word	0x2DA55EE0
	.word	0x4AEA69C0
	.word	0x4494714D
	.word	0x76403D65
	.word	0x63033B09
	.word	0x46483ECE
	.word	0x213B350F
	.word	0x27E50EBE
	.word	0x6FFF316D
	.word	0x40304EEA
	.word	0x09303C7A
	.word	0x1B021B9C
	.word	0x3F4355D8
	.word	0x36420309
	.word	0x57633D28
	.word	0x75EF1673
	.word	0x5A654E90
	.word	0x4CEC70FF
	.word	0x08702AEE
	.word	0x268F5054
	.word	0x5B6827D9
	.word	0x5CE81AF7
	.word	0x441F435C
	.word	0x47D17069
	.word	0x0E3A1771
	.word	0x30BA1EFD
	.word	0x16E5093F
	.word	0x37311B7B
	.word	0x42363013
	.word	0x72345677
	.word	0x5B623020
	.word	0x5A370B6E
	.word	0x4BA204F7
	.word	0x47F365A5
	.word	0x53E377C4
	.word	0x13F516C2
	.word	0x35303D4E
	.word	0x22E23B27
	.word	0x73E077AC
	.word	0x6A8A2812
	.word	0x217F17C8
	.word	0x3BB47F76
	.word	0x597D5A95
	.word	0x5CA42596
	.word	0x5C995E10
	.word	0x406C7467
	.word	0x770B09F8
	.word	0x66F848A3
	.word	0x1D74484C
	.word	0x31D744AD
	.word	0x6C864989
	.word	0x39C96528
	.word	0x777350A0
	.word	0x710E4355
	.word	0x111642B9
	.word	0x1E692130
	.word	0x7BE476AA
	.word	0x7CF61B4A
	.word	0x2C910036
	.word	0x0CB11C65
	.word	0x0B827306
	.word	0x5FC26ED1
	.word	0x60F55967
	.word	0x708A0789
	.word	0x57F25AC9
	.word	0x4C6E670C
	.word	0x43F14DF3
	.word	0x1F662BFD
	.word	0x15483307
	.word	0x6C44337A
	.word	0x285B513A
	.word	0x7DC5633C
	.word	0x5B82744F
	.word	0x5C597973
	.word	0x17B805D8
	.word	0x54B27E5F
	.word	0x38097E2C
	.word	0x5B0E33AE
	.word	0x7BBA6927
	.word	0x57451D99
	.word	0x6F357AA4
	.word	0x259201BD
	.word	0x77BB6EBB
	.word	0x582177B9
	.word	0x6DC831BB
	.word	0x055C678D
	.word	0x72450BE6
	.word	0x2EF511AD
	.word	0x6A704CEF
	.word	0x0DB37CE8
	.word	0x4E8B3334
	.word	0x4DFE65FC
	.word	0x37480ABB
	.word	0x09290CF5
	.word	0x55EF3FEE
	.word	0x07817C4A
	.word	0x43556217
	.word	0x171925B5
	.word	0x517D519A
	.word	0x035370D6
	.word	0x4C0B15F4
	.word	0x792F1786
	.word	0x536D1777
	.word	0x64536BFC
	.word	0x3EC738C2
	.word	0x10DE64A2
	.word	0x30A20C02
	.word	0x1DED09B5
	.word	0x4A551FEC
	.word	0x0CE9209F
	.word	0x2A2F2076
	.word	0x79973114
	.word	0x20694758
	.word	0x46DD3FEE
	.word	0x46CF5846
	.word	0x4C555BC9
	.word	0x672824EA
	.word	0x5093575E
	.word	0x5C6A54A3
	.word	0x5C374DA0
	.word	0x5A9F6C00
	.word	0x31B14B98
	.word	0x49954FFB
	.word	0x75D73C01
	.word	0x1E4840F5
	.word	0x552870A3
	.word	0x5F100975
	.word	0x31DE6570
	.word	0x3E8B5CA0
	.word	0x26B51960
	.word	0x79482078
	.word	0x6A7E190C
	.word	0x62381FD5
	.word	0x6062170C
	.word	0x49D56023
	.word	0x60F72E12
	.word	0x2C0F16E1
	.word	0x080428C3
	.word	0x50FB7AD5
	.word	0x13146B59
	.word	0x4C3B6D0F
	.word	0x1CBD5AF9
	.word	0x072B35A5
	.word	0x40AE5ED5
	.word	0x41D15028
	.word	0x747A5702
	.word	0x368103E8
	.word	0x21262516
	.word	0x4C5343EC
	.word	0x49732289
	.word	0x044612B0
	.word	0x48ED20C9
	.word	0x0D31659C
	.word	0x77B04F1A
	.word	0x2A6D4449
	.word	0x3EFD2234
	.word	0x59441F73
	.word	0x6A80199A
	.word	0x61181BBC
	.word	0x425F7EBC
	.word	0x3A534C26
	.word	0x3A0279CC
	.word	0x7812184E
	.word	0x3FA51860
	.word	0x20904A69
	.word	0x789F21CC
	.word	0x20540100
	.word	0x766F553D
	.word	0x441B006B
	.word	0x308B6D96
	.word	0x6583200F
	.word	0x4EE9070A
	.word	0x367C4F57
	.word	0x114A427E
	.word	0x576E6E73
	.word	0x5F49429C
	.word	0x242A76D3
	.word	0x4D275EB7
	.word	0x63932F62
	.word	0x21532762
	.word	0x46096883
	.word	0x26BC18CE
	.word	0x5E987BCC
	.word	0x57D716E7
	.word	0x02E50B85
	.word	0x2E6F0F2E
	.word	0x3DD43DDE
	.word	0x24305C54
	.word	0x40FA6FF4
	.word	0x2FF1479C
	.word	0x00C61C82
	.word	0x4BC543EE
	.word	0x676E7267
	.word	0x4FC03EBA
	.word	0x4A9B56DC
	.word	0x2D892292
	.word	0x0FD34F71
	.word	0x58A46786
	.word	0x2BAA0FCC
	.word	0x677C4D3E
	.word	0x67A82721
	.word	0x39331ADA
	.word	0x1AF90970
	.word	0x2C2A008A
	.word	0x41D77082
	.word	0x314F76EC
	.word	0x1FB850A1
	.word	0x48293829
	.word	0x58375D1A
	.word	0x2FA52ECD
	.word	0x2AC35873
	.word	0x579E766A
	.word	0x3D092C6D
	.word	0x5F2E49ED
	.word	0x202205B8
	.word	0x2BB77BBB
	.word	0x7C7C6F79
	.word	0x64AF5393
	.word	0x108A2A7C
	.word	0x602F6E23
	.word	0x6E2B3C39
	.word	0x4C3B7A67
	.word	0x22DB7188
	.word	0x20CF70C5
	.word	0x369C5124
	.word	0x26AE1FEA
	.word	0x2DA239E1
	.word	0x1EEA2B62
	.word	0x78C128AD
	.word	0x573257F9
	.word	0x00976248
	.word	0x36DE41D5
	.word	0x37797CC3
	.word	0x10BC5850
	.word	0x5E1E04BA
	.word	0x45983B97
	.word	0x670E3A51
	.word	0x038D5804
	.word	0x24C821EF
	.word	0x2E0E5B3B
	.word	0x2EB664BD
	.word	0x3AB45F06
	.word	0x28D13CDD
	.word	0x0EC565F1
	.word	0x5A14696A
	.word	0x298805A5
	.word	0x3DA26634
	.word	0x274B5B05
	.word	0x7AB66338
	.word	0x6930240A
	.word	0x6F4E37E1
	.word	0x6DBC1B5F
	.word	0x39974E01
	.word	0x261E71BB
	.word	0x6C17408E
	.word	0x543F0102
	.word	0x589D2A1D
	.word	0x3D8D151B
	.word	0x1DE85F1E
	.word	0x3E87668F
	.word	0x641A0FDD
	.word	0x0B0922E7
	.word	0x73DB0E34
	.word	0x27551EC2
	.word	0x144C3311
	.word	0x65E50DB8
	.word	0x5BB21FAB
	.word	0x75F35BF2
	.word	0x5EDF5683
	.word	0x4EC40586
	.word	0x6B60681D
	.word	0x03B80793
	.word	0x38682F7B
	.word	0x4D134720
	.word	0x3A7F5A5E
	.word	0x518909B5
	.word	0x05EA393C
	.word	0x7C8B5BB7
	.word	0x6BD91300
	.word	0x6D540084
	.word	0x3E537884
	.word	0x4AB24853
	.word	0x66E253CE
	.word	0x079567C9
	.word	0x3BFE2F0E
	.word	0x64592D5A
	.word	0x413A6F53
	.word	0x38D33065
	.word	0x3E307F11
	.word	0x531D560E
	.word	0x582D2453
	.word	0x772247DB
	.word	0x1A9D7EC0
	.word	0x4AE8380E
	.word	0x1A35694F
	.word	0x3BA00FC4
	.word	0x1EE23BCA
	.word	0x276F62D2
	.word	0x00752804
	.word	0x57FA455B
	.word	0x220B2ED9
	.word	0x19B45F31
	.word	0x383E68EA
	.word	0x7BE758F1
	.word	0x460D1F16
	.word	0x05837EDD
	.word	0x7C8B6EB7
	.word	0x6AA93577
	.word	0x694B75A1
	.word	0x0EF71BE3
	.word	0x1F8741DB
	.word	0x609277FA
	.word	0x4812011B
	.word	0x57F4482D
	.word	0x44042C03
	.word	0x287B1720
	.word	0x4E1F291E
	.word	0x6DAD6D02
	.word	0x47032399
	.word	0x614C7AAE
	.word	0x181611C1
	.word	0x661E5A83
	.word	0x59312740
	.word	0x73790304
	.word	0x250B2F17
	.word	0x2D90472E
	.word	0x4866095B
	.word	0x3680009D
	.word	0x37FB48AF
	.word	0x041A3F5D
	.word	0x79262B85
	.word	0x466E1B91
	.word	0x69526D13
	.word	0x2B1C04C6
	.word	0x10222A17
	.word	0x095A2B15
	.word	0x6864554C
	.word	0x42C45DFA
	.word	0x4BB677A7
	.word	0x64E77CF7
	.word	0x6CF6385A
	.word	0x578B55E8
	.word	0x0D6B6886
	.word	0x23C40D25
	.word	0x58B50EBE
	.word	0x1FB76B5A
	.word	0x13752E40
	.word	0x0B2D2D25
	.word	0x08BB45F2
	.word	0x68D93074
	.word	0x6233431E
	.word	0x20691B9D
	.word	0x570F63ED
	.word	0x354F5A3A
	.word	0x5DB345A5
	.word	0x1E4C0BCA
	.word	0x4C241AA2
	.word	0x09C14009
	.word	0x132E4415
	.word	0x1AB51D0B
	.word	0x00574B80
	.word	0x6AA54B1A
	.word	0x328677ED
	.word	0x5C0F4255
	.word	0x2D737AF1
	.word	0x09BD5605
	.word	0x37CE7164
	.word	0x5ED219BE
	.word	0x702F33DD
	.word	0x23967C3A
	.word	0x44C032F0
	.word	0x0B0133F5
	.word	0x39AC5B27
	.word	0x0D095988
	.word	0x2A463CC1
	/****************************************************************
	                           DMA TEST #4.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,	0x207F

	/* 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)	*/
	ori	$7,	$0,	0x0002		/* number of spans	*/
	ori	$8,	$0,	0x0050		/* number of skips	*/
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	*/
	beq	$7,	$0,	Cont49		/* exit loop if 0 span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	sub	$4,	$4,	$8		/* adjust data		*/
	add	$7,	$7,	$9		/* funny decrement	*/
	j	Prep49				/* go look		*/
Cont49:
	/* 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,	0x19AB			/* load random number	*/
	ori	$9,	$9,	0x4BC6
	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	*/
	addi	$6,	$6,	0x0004		
	sw	$9,	0x0000 ($6)		/* and again		*/
	addi	$6,	$6,	0x007C		
	sw	$9,	0x0000 ($6)		/* and one last time	*/

	/* 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)	*/
	ori	$7,	$0,	0x0002		/* number of spans	*/
	ori	$8,	$0,	0x0050		/* number of skips	*/
	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	*/
	beq	$7,	$0,	Done49		/* exit if zero span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	add	$4,	$4,	$8		/* adjust answer	*/
	add	$7,	$7,	$9		/* decrement span cnt	*/
	j	Chk49				/* go loop		*/
Done49:
	/* 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 #4.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)	*/
	ori	$7,	$0,	0x0000		/* number of spans	*/
	ori	$8,	$0,	0x0FF8		/* number of skips	*/
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	*/
	beq	$7,	$0,	Cont50		/* exit loop if 0 span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	sub	$4,	$4,	$8		/* adjust data		*/
	add	$7,	$7,	$9		/* funny decrement	*/
	j	Prep50				/* go look		*/
Cont50:
	/* 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,	0x70FA			/* load random number	*/
	ori	$9,	$9,	0x732D
	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)	*/
	ori	$7,	$0,	0x0000		/* number of spans	*/
	ori	$8,	$0,	0x0FF8		/* number of skips	*/
	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	*/
	beq	$7,	$0,	Done50		/* exit if zero span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	add	$4,	$4,	$8		/* adjust answer	*/
	add	$7,	$7,	$9		/* decrement span cnt	*/
	j	Chk50				/* go loop		*/
Done50:
	/* 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 #4.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)	*/
	ori	$7,	$0,	0x0000		/* number of spans	*/
	ori	$8,	$0,	0x0FF8		/* number of skips	*/
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	*/
	beq	$7,	$0,	Cont51		/* exit loop if 0 span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	sub	$4,	$4,	$8		/* adjust data		*/
	add	$7,	$7,	$9		/* funny decrement	*/
	j	Prep51				/* go look		*/
Cont51:
	/* 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,	0x70BB			/* load random number	*/
	ori	$9,	$9,	0x3998
	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)	*/
	ori	$7,	$0,	0x0000		/* number of spans	*/
	ori	$8,	$0,	0x0FF8		/* number of skips	*/
	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	*/
	beq	$7,	$0,	Done51		/* exit if zero span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	add	$4,	$4,	$8		/* adjust answer	*/
	add	$7,	$7,	$9		/* decrement span cnt	*/
	j	Chk51				/* go loop		*/
Done51:
	/* 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 #4.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,	0x107F

	/* 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)	*/
	ori	$7,	$0,	0x0001		/* number of spans	*/
	ori	$8,	$0,	0x0058		/* number of skips	*/
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	*/
	beq	$7,	$0,	Cont52		/* exit loop if 0 span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	sub	$4,	$4,	$8		/* adjust data		*/
	add	$7,	$7,	$9		/* funny decrement	*/
	j	Prep52				/* go look		*/
Cont52:
	/* 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,	0x21F4			/* load random number	*/
	ori	$9,	$9,	0x0844
	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	*/
	addi	$6,	$6,	0x0004		
	sw	$9,	0x0000 ($6)		/* and again		*/
	addi	$6,	$6,	0x007C		
	sw	$9,	0x0000 ($6)		/* and one last time	*/

	/* 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)	*/
	ori	$7,	$0,	0x0001		/* number of spans	*/
	ori	$8,	$0,	0x0058		/* number of skips	*/
	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	*/
	beq	$7,	$0,	Done52		/* exit if zero span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	add	$4,	$4,	$8		/* adjust answer	*/
	add	$7,	$7,	$9		/* decrement span cnt	*/
	j	Chk52				/* go loop		*/
Done52:
	/* 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 #4.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,	0x207F

	/* 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)	*/
	ori	$7,	$0,	0x0002		/* number of spans	*/
	ori	$8,	$0,	0x0060		/* number of skips	*/
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	*/
	beq	$7,	$0,	Cont53		/* exit loop if 0 span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	sub	$4,	$4,	$8		/* adjust data		*/
	add	$7,	$7,	$9		/* funny decrement	*/
	j	Prep53				/* go look		*/
Cont53:
	/* 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,	0x2A6C			/* load random number	*/
	ori	$9,	$9,	0x6D98
	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	*/
	addi	$6,	$6,	0x0004		
	sw	$9,	0x0000 ($6)		/* and again		*/
	addi	$6,	$6,	0x007C		
	sw	$9,	0x0000 ($6)		/* and one last time	*/

	/* 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)	*/
	ori	$7,	$0,	0x0002		/* number of spans	*/
	ori	$8,	$0,	0x0060		/* number of skips	*/
	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	*/
	beq	$7,	$0,	Done53		/* exit if zero span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	add	$4,	$4,	$8		/* adjust answer	*/
	add	$7,	$7,	$9		/* decrement span cnt	*/
	j	Chk53				/* go loop		*/
Done53:
	/* 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 #4.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,	0x107F

	/* 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)	*/
	ori	$7,	$0,	0x0001		/* number of spans	*/
	ori	$8,	$0,	0x0068		/* number of skips	*/
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	*/
	beq	$7,	$0,	Cont54		/* exit loop if 0 span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	sub	$4,	$4,	$8		/* adjust data		*/
	add	$7,	$7,	$9		/* funny decrement	*/
	j	Prep54				/* go look		*/
Cont54:
	/* 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,	0x4492			/* load random number	*/
	ori	$9,	$9,	0x4F4A
	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	*/
	addi	$6,	$6,	0x0004		
	sw	$9,	0x0000 ($6)		/* and again		*/
	addi	$6,	$6,	0x007C		
	sw	$9,	0x0000 ($6)		/* and one last time	*/

	/* 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)	*/
	ori	$7,	$0,	0x0001		/* number of spans	*/
	ori	$8,	$0,	0x0068		/* number of skips	*/
	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	*/
	beq	$7,	$0,	Done54		/* exit if zero span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	add	$4,	$4,	$8		/* adjust answer	*/
	add	$7,	$7,	$9		/* decrement span cnt	*/
	j	Chk54				/* go loop		*/
Done54:
	/* 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 #4.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,	0x207F

	/* 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)	*/
	ori	$7,	$0,	0x0002		/* number of spans	*/
	ori	$8,	$0,	0x0070		/* number of skips	*/
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	*/
	beq	$7,	$0,	Cont55		/* exit loop if 0 span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	sub	$4,	$4,	$8		/* adjust data		*/
	add	$7,	$7,	$9		/* funny decrement	*/
	j	Prep55				/* go look		*/
Cont55:
	/* 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,	0x3C9F			/* load random number	*/
	ori	$9,	$9,	0x3770
	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	*/
	addi	$6,	$6,	0x0004		
	sw	$9,	0x0000 ($6)		/* and again		*/
	addi	$6,	$6,	0x007C		
	sw	$9,	0x0000 ($6)		/* and one last time	*/

	/* 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)	*/
	ori	$7,	$0,	0x0002		/* number of spans	*/
	ori	$8,	$0,	0x0070		/* number of skips	*/
	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	*/
	beq	$7,	$0,	Done55		/* exit if zero span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	add	$4,	$4,	$8		/* adjust answer	*/
	add	$7,	$7,	$9		/* decrement span cnt	*/
	j	Chk55				/* go loop		*/
Done55:
	/* 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 #4.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,	0x107F

	/* 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)	*/
	ori	$7,	$0,	0x0001		/* number of spans	*/
	ori	$8,	$0,	0x0078		/* number of skips	*/
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	*/
	beq	$7,	$0,	Cont56		/* exit loop if 0 span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	sub	$4,	$4,	$8		/* adjust data		*/
	add	$7,	$7,	$9		/* funny decrement	*/
	j	Prep56				/* go look		*/
Cont56:
	/* 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,	0x378A			/* load random number	*/
	ori	$9,	$9,	0x73A3
	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	*/
	addi	$6,	$6,	0x0004		
	sw	$9,	0x0000 ($6)		/* and again		*/
	addi	$6,	$6,	0x007C		
	sw	$9,	0x0000 ($6)		/* and one last time	*/

	/* 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)	*/
	ori	$7,	$0,	0x0001		/* number of spans	*/
	ori	$8,	$0,	0x0078		/* number of skips	*/
	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	*/
	beq	$7,	$0,	Done56		/* exit if zero span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	add	$4,	$4,	$8		/* adjust answer	*/
	add	$7,	$7,	$9		/* decrement span cnt	*/
	j	Chk56				/* go loop		*/
Done56:
	/* 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 #4.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,	0x207F

	/* 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)	*/
	ori	$7,	$0,	0x0002		/* number of spans	*/
	ori	$8,	$0,	0x0080		/* number of skips	*/
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	*/
	beq	$7,	$0,	Cont57		/* exit loop if 0 span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	sub	$4,	$4,	$8		/* adjust data		*/
	add	$7,	$7,	$9		/* funny decrement	*/
	j	Prep57				/* go look		*/
Cont57:
	/* 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,	0x08EC			/* load random number	*/
	ori	$9,	$9,	0x0EF1
	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	*/
	addi	$6,	$6,	0x0004		
	sw	$9,	0x0000 ($6)		/* and again		*/
	addi	$6,	$6,	0x007C		
	sw	$9,	0x0000 ($6)		/* and one last time	*/

	/* 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)	*/
	ori	$7,	$0,	0x0002		/* number of spans	*/
	ori	$8,	$0,	0x0080		/* number of skips	*/
	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	*/
	beq	$7,	$0,	Done57		/* exit if zero span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	add	$4,	$4,	$8		/* adjust answer	*/
	add	$7,	$7,	$9		/* decrement span cnt	*/
	j	Chk57				/* go loop		*/
Done57:
	/* 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 #4.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,	0x107F

	/* 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)	*/
	ori	$7,	$0,	0x0001		/* number of spans	*/
	ori	$8,	$0,	0x0088		/* number of skips	*/
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	*/
	beq	$7,	$0,	Cont58		/* exit loop if 0 span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	sub	$4,	$4,	$8		/* adjust data		*/
	add	$7,	$7,	$9		/* funny decrement	*/
	j	Prep58				/* go look		*/
Cont58:
	/* 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,	0x2BDB			/* load random number	*/
	ori	$9,	$9,	0x3755
	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	*/
	addi	$6,	$6,	0x0004		
	sw	$9,	0x0000 ($6)		/* and again		*/
	addi	$6,	$6,	0x007C		
	sw	$9,	0x0000 ($6)		/* and one last time	*/

	/* 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)	*/
	ori	$7,	$0,	0x0001		/* number of spans	*/
	ori	$8,	$0,	0x0088		/* number of skips	*/
	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	*/
	beq	$7,	$0,	Done58		/* exit if zero span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	add	$4,	$4,	$8		/* adjust answer	*/
	add	$7,	$7,	$9		/* decrement span cnt	*/
	j	Chk58				/* go loop		*/
Done58:
	/* 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 #4.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,	0x207F

	/* 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)	*/
	ori	$7,	$0,	0x0002		/* number of spans	*/
	ori	$8,	$0,	0x0090		/* number of skips	*/
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	*/
	beq	$7,	$0,	Cont59		/* exit loop if 0 span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	sub	$4,	$4,	$8		/* adjust data		*/
	add	$7,	$7,	$9		/* funny decrement	*/
	j	Prep59				/* go look		*/
Cont59:
	/* 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,	0x3F71			/* load random number	*/
	ori	$9,	$9,	0x4CF2
	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	*/
	addi	$6,	$6,	0x0004		
	sw	$9,	0x0000 ($6)		/* and again		*/
	addi	$6,	$6,	0x007C		
	sw	$9,	0x0000 ($6)		/* and one last time	*/

	/* 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)	*/
	ori	$7,	$0,	0x0002		/* number of spans	*/
	ori	$8,	$0,	0x0090		/* number of skips	*/
	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	*/
	beq	$7,	$0,	Done59		/* exit if zero span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	add	$4,	$4,	$8		/* adjust answer	*/
	add	$7,	$7,	$9		/* decrement span cnt	*/
	j	Chk59				/* go loop		*/
Done59:
	/* 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 #4.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,	0x107F

	/* 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)	*/
	ori	$7,	$0,	0x0001		/* number of spans	*/
	ori	$8,	$0,	0x0098		/* number of skips	*/
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	*/
	beq	$7,	$0,	Cont60		/* exit loop if 0 span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	sub	$4,	$4,	$8		/* adjust data		*/
	add	$7,	$7,	$9		/* funny decrement	*/
	j	Prep60				/* go look		*/
Cont60:
	/* 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,	0x6275			/* load random number	*/
	ori	$9,	$9,	0x1D41
	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	*/
	addi	$6,	$6,	0x0004		
	sw	$9,	0x0000 ($6)		/* and again		*/
	addi	$6,	$6,	0x007C		
	sw	$9,	0x0000 ($6)		/* and one last time	*/

	/* 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)	*/
	ori	$7,	$0,	0x0001		/* number of spans	*/
	ori	$8,	$0,	0x0098		/* number of skips	*/
	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	*/
	beq	$7,	$0,	Done60		/* exit if zero span	*/
	ori	$3,	$0,	0x0080		/* reload length	*/
	add	$4,	$4,	$8		/* adjust answer	*/
	add	$7,	$7,	$9		/* decrement span cnt	*/
	j	Chk60				/* go loop		*/
Done60:
	/* 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	*/

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

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

Fail:	break