;misc test
incdir  "tests"
include "dsp_base.inc"

lri $AR1,    #0x97fe
lri $IX1,    #0xeaf8
lri $WR1,    #0x7e94
cw 0xd
call send_back  ; 5900 (0x170c)

lri $AR1,    #0x2fe0
lri $IX1,    #0x0d76
lri $WR1,    #0xa24f
cw 0xd
call send_back  ; 5901 (0x170d)

lri $AR1,    #0x772a
lri $IX1,    #0x291c
lri $WR1,    #0x9170
cw 0xd
call send_back  ; 5902 (0x170e)

lri $AR1,    #0x1912
lri $IX1,    #0xd77a
lri $WR1,    #0xa2b9
cw 0xd
call send_back  ; 5903 (0x170f)

lri $AR1,    #0x8456
lri $IX1,    #0x00f2
lri $WR1,    #0x7ca1
cw 0xd
call send_back  ; 5904 (0x1710)

lri $AR1,    #0x94c0
lri $IX1,    #0x0314
lri $WR1,    #0x4ada
cw 0xd
call send_back  ; 5905 (0x1711)

lri $AR1,    #0x80ff
lri $IX1,    #0x299e
lri $WR1,    #0xa79b
cw 0xd
call send_back  ; 5906 (0x1712)

lri $AR1,    #0xda9a
lri $IX1,    #0x56ac
lri $WR1,    #0x43c9
cw 0xd
call send_back  ; 5907 (0x1713)

lri $AR1,    #0xb557
lri $IX1,    #0xb9ae
lri $WR1,    #0x4e77
cw 0xd
call send_back  ; 5908 (0x1714)

lri $AR1,    #0x26d8
lri $IX1,    #0x6c94
lri $WR1,    #0xb5ea
cw 0xd
call send_back  ; 5909 (0x1715)

lri $AR1,    #0x9ecf
lri $IX1,    #0x99f2
lri $WR1,    #0x799b
cw 0xd
call send_back  ; 5910 (0x1716)

lri $AR1,    #0x7b86
lri $IX1,    #0x4e86
lri $WR1,    #0x4651
cw 0xd
call send_back  ; 5911 (0x1717)

lri $AR1,    #0x9620
lri $IX1,    #0x2bbc
lri $WR1,    #0x5ae4
cw 0xd
call send_back  ; 5912 (0x1718)

lri $AR1,    #0xad4c
lri $IX1,    #0xb8bc
lri $WR1,    #0x9dad
cw 0xd
call send_back  ; 5913 (0x1719)

lri $AR1,    #0xf4d2
lri $IX1,    #0xeaa6
lri $WR1,    #0xb84a
cw 0xd
call send_back  ; 5914 (0x171a)

lri $AR1,    #0x03b5
lri $IX1,    #0x8c68
lri $WR1,    #0x60ab
cw 0xd
call send_back  ; 5915 (0x171b)

lri $AR1,    #0x4247
lri $IX1,    #0x51e4
lri $WR1,    #0x8c0e
cw 0xd
call send_back  ; 5916 (0x171c)

lri $AR1,    #0xb4f8
lri $IX1,    #0x79ca
lri $WR1,    #0x81e7
cw 0xd
call send_back  ; 5917 (0x171d)

lri $AR1,    #0x703c
lri $IX1,    #0xccfe
lri $WR1,    #0x825c
cw 0xd
call send_back  ; 5918 (0x171e)

lri $AR1,    #0x853f
lri $IX1,    #0x69ae
lri $WR1,    #0xd54a
cw 0xd
call send_back  ; 5919 (0x171f)

lri $AR1,    #0xaeda
lri $IX1,    #0xfc24
lri $WR1,    #0x7c76
cw 0xd
call send_back  ; 5920 (0x1720)

lri $AR1,    #0xd170
lri $IX1,    #0xae76
lri $WR1,    #0x4cf7
cw 0xd
call send_back  ; 5921 (0x1721)

lri $AR1,    #0x6035
lri $IX1,    #0x13f4
lri $WR1,    #0xc15c
cw 0xd
call send_back  ; 5922 (0x1722)

lri $AR1,    #0x4d75
lri $IX1,    #0x84a8
lri $WR1,    #0xc7b4
cw 0xd
call send_back  ; 5923 (0x1723)

lri $AR1,    #0xb35e
lri $IX1,    #0xa0b8
lri $WR1,    #0x83f2
cw 0xd
call send_back  ; 5924 (0x1724)

lri $AR1,    #0xbe03
lri $IX1,    #0xeaee
lri $WR1,    #0x58d1
cw 0xd
call send_back  ; 5925 (0x1725)

lri $AR1,    #0x6ee3
lri $IX1,    #0x753e
lri $WR1,    #0x66ad
cw 0xd
call send_back  ; 5926 (0x1726)

lri $AR1,    #0x75df
lri $IX1,    #0x59a2
lri $WR1,    #0x718d
cw 0xd
call send_back  ; 5927 (0x1727)

lri $AR1,    #0xf2d5
lri $IX1,    #0x0d10
lri $WR1,    #0xa4b3
cw 0xd
call send_back  ; 5928 (0x1728)

lri $AR1,    #0x5eb1
lri $IX1,    #0x61d6
lri $WR1,    #0xd402
cw 0xd
call send_back  ; 5929 (0x1729)

lri $AR1,    #0x7a5b
lri $IX1,    #0x2a46
lri $WR1,    #0x888b
cw 0xd
call send_back  ; 5930 (0x172a)

lri $AR1,    #0x553e
lri $IX1,    #0xbbde
lri $WR1,    #0xb78c
cw 0xd
call send_back  ; 5931 (0x172b)

lri $AR1,    #0xa4b3
lri $IX1,    #0xf6d0
lri $WR1,    #0x583f
cw 0xd
call send_back  ; 5932 (0x172c)

lri $AR1,    #0x2139
lri $IX1,    #0xcd50
lri $WR1,    #0x86b0
cw 0xd
call send_back  ; 5933 (0x172d)

lri $AR1,    #0x4db4
lri $IX1,    #0x7134
lri $WR1,    #0xdf0a
cw 0xd
call send_back  ; 5934 (0x172e)

lri $AR1,    #0xd089
lri $IX1,    #0x2e94
lri $WR1,    #0x9e84
cw 0xd
call send_back  ; 5935 (0x172f)

lri $AR1,    #0xbde5
lri $IX1,    #0x6cde
lri $WR1,    #0x3c76
cw 0xd
call send_back  ; 5936 (0x1730)

lri $AR1,    #0xbe0e
lri $IX1,    #0x37ee
lri $WR1,    #0x7798
cw 0xd
call send_back  ; 5937 (0x1731)

lri $AR1,    #0xb9f6
lri $IX1,    #0xede2
lri $WR1,    #0xa112
cw 0xd
call send_back  ; 5938 (0x1732)

lri $AR1,    #0x8bf0
lri $IX1,    #0x1dfa
lri $WR1,    #0xa05d
cw 0xd
call send_back  ; 5939 (0x1733)

lri $AR1,    #0x79d2
lri $IX1,    #0x284e
lri $WR1,    #0x208f
cw 0xd
call send_back  ; 5940 (0x1734)

lri $AR1,    #0x595e
lri $IX1,    #0xa5c0
lri $WR1,    #0x7110
cw 0xd
call send_back  ; 5941 (0x1735)

lri $AR1,    #0x8f24
lri $IX1,    #0xeae4
lri $WR1,    #0x416a
cw 0xd
call send_back  ; 5942 (0x1736)

lri $AR1,    #0x7bdc
lri $IX1,    #0xf838
lri $WR1,    #0xe11a
cw 0xd
call send_back  ; 5943 (0x1737)

lri $AR1,    #0x435b
lri $IX1,    #0xbd72
lri $WR1,    #0x7217
cw 0xd
call send_back  ; 5944 (0x1738)

lri $AR1,    #0x840b
lri $IX1,    #0x9d4e
lri $WR1,    #0xe604
cw 0xd
call send_back  ; 5945 (0x1739)

lri $AR1,    #0x7537
lri $IX1,    #0x7a88
lri $WR1,    #0x8bab
cw 0xd
call send_back  ; 5946 (0x173a)

lri $AR1,    #0x55ed
lri $IX1,    #0x2670
lri $WR1,    #0x43d3
cw 0xd
call send_back  ; 5947 (0x173b)

lri $AR1,    #0x7dd2
lri $IX1,    #0xacd2
lri $WR1,    #0x89f9
cw 0xd
call send_back  ; 5948 (0x173c)

lri $AR1,    #0x9cb2
lri $IX1,    #0x9094
lri $WR1,    #0x36fa
cw 0xd
call send_back  ; 5949 (0x173d)

lri $AR1,    #0xa523
lri $IX1,    #0x77d0
lri $WR1,    #0xa148
cw 0xd
call send_back  ; 5950 (0x173e)

lri $AR1,    #0x61fc
lri $IX1,    #0xe5be
lri $WR1,    #0x5fb9
cw 0xd
call send_back  ; 5951 (0x173f)

lri $AR1,    #0x2e08
lri $IX1,    #0x542e
lri $WR1,    #0x5971
cw 0xd
call send_back  ; 5952 (0x1740)

lri $AR1,    #0x90a8
lri $IX1,    #0x2608
lri $WR1,    #0x570e
cw 0xd
call send_back  ; 5953 (0x1741)

lri $AR1,    #0x81d1
lri $IX1,    #0x677a
lri $WR1,    #0x568d
cw 0xd
call send_back  ; 5954 (0x1742)

lri $AR1,    #0x2b18
lri $IX1,    #0x0032
lri $WR1,    #0x5516
cw 0xd
call send_back  ; 5955 (0x1743)

lri $AR1,    #0x8342
lri $IX1,    #0xbf7e
lri $WR1,    #0x7719
cw 0xd
call send_back  ; 5956 (0x1744)

lri $AR1,    #0x7cf9
lri $IX1,    #0x619a
lri $WR1,    #0x50f7
cw 0xd
call send_back  ; 5957 (0x1745)

lri $AR1,    #0x9123
lri $IX1,    #0x38fa
lri $WR1,    #0x6f9f
cw 0xd
call send_back  ; 5958 (0x1746)

lri $AR1,    #0x908b
lri $IX1,    #0x65d6
lri $WR1,    #0x824a
cw 0xd
call send_back  ; 5959 (0x1747)

lri $AR1,    #0xc040
lri $IX1,    #0x59f2
lri $WR1,    #0x8bde
cw 0xd
call send_back  ; 5960 (0x1748)

lri $AR1,    #0x2f69
lri $IX1,    #0xadb0
lri $WR1,    #0xac01
cw 0xd
call send_back  ; 5961 (0x1749)

lri $AR1,    #0x54f4
lri $IX1,    #0xe77a
lri $WR1,    #0xbd76
cw 0xd
call send_back  ; 5962 (0x174a)

lri $AR1,    #0x36d3
lri $IX1,    #0xa5b0
lri $WR1,    #0x98d0
cw 0xd
call send_back  ; 5963 (0x174b)

lri $AR1,    #0x8435
lri $IX1,    #0x7ef4
lri $WR1,    #0xa009
cw 0xd
call send_back  ; 5964 (0x174c)

lri $AR1,    #0x8775
lri $IX1,    #0xc428
lri $WR1,    #0xb113
cw 0xd
call send_back  ; 5965 (0x174d)

lri $AR1,    #0x8417
lri $IX1,    #0xfae2
lri $WR1,    #0x9ae8
cw 0xd
call send_back  ; 5966 (0x174e)

lri $AR1,    #0xd8ab
lri $IX1,    #0x46b8
lri $WR1,    #0x1238
cw 0xd
call send_back  ; 5967 (0x174f)

lri $AR1,    #0xf3d3
lri $IX1,    #0xeb24
lri $WR1,    #0x4839
cw 0xd
call send_back  ; 5968 (0x1750)

lri $AR1,    #0x374f
lri $IX1,    #0x7758
lri $WR1,    #0x8fa9
cw 0xd
call send_back  ; 5969 (0x1751)

lri $AR1,    #0xa355
lri $IX1,    #0xe8ca
lri $WR1,    #0x499f
cw 0xd
call send_back  ; 5970 (0x1752)

lri $AR1,    #0x7801
lri $IX1,    #0x00de
lri $WR1,    #0x052c
cw 0xd
call send_back  ; 5971 (0x1753)

lri $AR1,    #0x423e
lri $IX1,    #0x0d58
lri $WR1,    #0xb264
cw 0xd
call send_back  ; 5972 (0x1754)

lri $AR1,    #0x64e6
lri $IX1,    #0x5b0c
lri $WR1,    #0x62d7
cw 0xd
call send_back  ; 5973 (0x1755)

lri $AR1,    #0x7e70
lri $IX1,    #0x558a
lri $WR1,    #0xaf1d
cw 0xd
call send_back  ; 5974 (0x1756)

lri $AR1,    #0x6efe
lri $IX1,    #0xd610
lri $WR1,    #0x5a6d
cw 0xd
call send_back  ; 5975 (0x1757)

lri $AR1,    #0x1a14
lri $IX1,    #0x37a2
lri $WR1,    #0x92d9
cw 0xd
call send_back  ; 5976 (0x1758)

lri $AR1,    #0xaadd
lri $IX1,    #0x4d90
lri $WR1,    #0x964c
cw 0xd
call send_back  ; 5977 (0x1759)

lri $AR1,    #0x8124
lri $IX1,    #0x352e
lri $WR1,    #0xf1c0
cw 0xd
call send_back  ; 5978 (0x175a)

lri $AR1,    #0x6101
lri $IX1,    #0x0b2e
lri $WR1,    #0x61d3
cw 0xd
call send_back  ; 5979 (0x175b)

lri $AR1,    #0x666d
lri $IX1,    #0xb04a
lri $WR1,    #0xf141
cw 0xd
call send_back  ; 5980 (0x175c)

lri $AR1,    #0xf990
lri $IX1,    #0xe09c
lri $WR1,    #0xab4c
cw 0xd
call send_back  ; 5981 (0x175d)

lri $AR1,    #0x7021
lri $IX1,    #0xcc78
lri $WR1,    #0x75b9
cw 0xd
call send_back  ; 5982 (0x175e)

lri $AR1,    #0x0ba4
lri $IX1,    #0x0114
lri $WR1,    #0xc752
cw 0xd
call send_back  ; 5983 (0x175f)

lri $AR1,    #0x7bd6
lri $IX1,    #0xa2d2
lri $WR1,    #0xd59a
cw 0xd
call send_back  ; 5984 (0x1760)

lri $AR1,    #0xd814
lri $IX1,    #0xa26a
lri $WR1,    #0x5db7
cw 0xd
call send_back  ; 5985 (0x1761)

lri $AR1,    #0x8213
lri $IX1,    #0x91e4
lri $WR1,    #0xba14
cw 0xd
call send_back  ; 5986 (0x1762)

lri $AR1,    #0x77b7
lri $IX1,    #0xed92
lri $WR1,    #0x67f1
cw 0xd
call send_back  ; 5987 (0x1763)

lri $AR1,    #0x2155
lri $IX1,    #0xf0ee
lri $WR1,    #0xd53d
cw 0xd
call send_back  ; 5988 (0x1764)

lri $AR1,    #0x8534
lri $IX1,    #0x46a8
lri $WR1,    #0xa8ff
cw 0xd
call send_back  ; 5989 (0x1765)

lri $AR1,    #0x589b
lri $IX1,    #0xeea8
lri $WR1,    #0x95b5
cw 0xd
call send_back  ; 5990 (0x1766)

lri $AR1,    #0x8a42
lri $IX1,    #0x7474
lri $WR1,    #0x86d1
cw 0xd
call send_back  ; 5991 (0x1767)

lri $AR1,    #0x7969
lri $IX1,    #0xe392
lri $WR1,    #0x7fd7
cw 0xd
call send_back  ; 5992 (0x1768)

lri $AR1,    #0x7876
lri $IX1,    #0xaf7a
lri $WR1,    #0x2d32
cw 0xd
call send_back  ; 5993 (0x1769)

lri $AR1,    #0x5955
lri $IX1,    #0xdfb2
lri $WR1,    #0x5457
cw 0xd
call send_back  ; 5994 (0x176a)

lri $AR1,    #0x7585
lri $IX1,    #0x207a
lri $WR1,    #0x622d
cw 0xd
call send_back  ; 5995 (0x176b)

lri $AR1,    #0x4b08
lri $IX1,    #0xbbe4
lri $WR1,    #0x2c70
cw 0xd
call send_back  ; 5996 (0x176c)

lri $AR1,    #0x4314
lri $IX1,    #0xd680
lri $WR1,    #0x73f7
cw 0xd
call send_back  ; 5997 (0x176d)

lri $AR1,    #0x66d1
lri $IX1,    #0x76a2
lri $WR1,    #0xb38c
cw 0xd
call send_back  ; 5998 (0x176e)

lri $AR1,    #0x89f8
lri $IX1,    #0xbc62
lri $WR1,    #0xa856
cw 0xd
call send_back  ; 5999 (0x176f)

lri $AR1,    #0xaaa1
lri $IX1,    #0x2446
lri $WR1,    #0xa668
cw 0xd
call send_back  ; 6000 (0x1770)

lri $AR1,    #0x5104
lri $IX1,    #0x95d0
lri $WR1,    #0x9589
cw 0xd
call send_back  ; 6001 (0x1771)

lri $AR1,    #0x799b
lri $IX1,    #0x3ad6
lri $WR1,    #0xbfc0
cw 0xd
call send_back  ; 6002 (0x1772)

lri $AR1,    #0x674d
lri $IX1,    #0x8bdc
lri $WR1,    #0x4cb4
cw 0xd
call send_back  ; 6003 (0x1773)

lri $AR1,    #0x8319
lri $IX1,    #0x814e
lri $WR1,    #0x3a76
cw 0xd
call send_back  ; 6004 (0x1774)

lri $AR1,    #0x89f2
lri $IX1,    #0x50fa
lri $WR1,    #0x3dbf
cw 0xd
call send_back  ; 6005 (0x1775)

lri $AR1,    #0x1934
lri $IX1,    #0x6a64
lri $WR1,    #0x9137
cw 0xd
call send_back  ; 6006 (0x1776)

lri $AR1,    #0x8d6a
lri $IX1,    #0x6490
lri $WR1,    #0x3cc9
cw 0xd
call send_back  ; 6007 (0x1777)

lri $AR1,    #0x7ece
lri $IX1,    #0x22d0
lri $WR1,    #0xa3a8
cw 0xd
call send_back  ; 6008 (0x1778)

; We're done, DO NOT DELETE THIS LINE
jmp end_of_test