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

lri $AR1,    #0xbd4c
lri $IX1,    #0x4542
lri $WR1,    #0xeed4
cw 0xd
call send_back  ; 5889 (0x1701)

lri $AR1,    #0x2226
lri $IX1,    #0x9af0
lri $WR1,    #0x8fb6
cw 0xd
call send_back  ; 5890 (0x1702)

lri $AR1,    #0x4dd8
lri $IX1,    #0x907a
lri $WR1,    #0xda50
cw 0xd
call send_back  ; 5891 (0x1703)

lri $AR1,    #0xad04
lri $IX1,    #0xf430
lri $WR1,    #0xf132
cw 0xd
call send_back  ; 5892 (0x1704)

lri $AR1,    #0xd176
lri $IX1,    #0x3e22
lri $WR1,    #0x9598
cw 0xd
call send_back  ; 5893 (0x1705)

lri $AR1,    #0xe52c
lri $IX1,    #0xe96c
lri $WR1,    #0xa522
cw 0xd
call send_back  ; 5894 (0x1706)

lri $AR1,    #0xb480
lri $IX1,    #0x6b46
lri $WR1,    #0x1332
cw 0xd
call send_back  ; 5895 (0x1707)

lri $AR1,    #0xc618
lri $IX1,    #0xff42
lri $WR1,    #0xe886
cw 0xd
call send_back  ; 5896 (0x1708)

lri $AR1,    #0x4f52
lri $IX1,    #0x908a
lri $WR1,    #0x53f8
cw 0xd
call send_back  ; 5897 (0x1709)

lri $AR1,    #0x3cc8
lri $IX1,    #0x0fe4
lri $WR1,    #0xf94c
cw 0xd
call send_back  ; 5898 (0x170a)

lri $AR1,    #0x72bc
lri $IX1,    #0xcbda
lri $WR1,    #0xbd1a
cw 0xd
call send_back  ; 5899 (0x170b)

lri $AR1,    #0x8cf4
lri $IX1,    #0xe674
lri $WR1,    #0xe32c
cw 0xd
call send_back  ; 5900 (0x170c)

lri $AR1,    #0x243e
lri $IX1,    #0x42b8
lri $WR1,    #0x2c14
cw 0xd
call send_back  ; 5901 (0x170d)

lri $AR1,    #0x63f8
lri $IX1,    #0x1944
lri $WR1,    #0xb7de
cw 0xd
call send_back  ; 5902 (0x170e)

lri $AR1,    #0xa072
lri $IX1,    #0x19ea
lri $WR1,    #0x12d0
cw 0xd
call send_back  ; 5903 (0x170f)

lri $AR1,    #0x7ba0
lri $IX1,    #0x3c82
lri $WR1,    #0xa640
cw 0xd
call send_back  ; 5904 (0x1710)

lri $AR1,    #0x08b8
lri $IX1,    #0x9392
lri $WR1,    #0xa822
cw 0xd
call send_back  ; 5905 (0x1711)

lri $AR1,    #0x6782
lri $IX1,    #0x5d18
lri $WR1,    #0xe090
cw 0xd
call send_back  ; 5906 (0x1712)

lri $AR1,    #0xab62
lri $IX1,    #0x4598
lri $WR1,    #0x17c8
cw 0xd
call send_back  ; 5907 (0x1713)

lri $AR1,    #0x8c1e
lri $IX1,    #0x8650
lri $WR1,    #0xca80
cw 0xd
call send_back  ; 5908 (0x1714)

lri $AR1,    #0x3c78
lri $IX1,    #0x2658
lri $WR1,    #0x373c
cw 0xd
call send_back  ; 5909 (0x1715)

lri $AR1,    #0x6f6c
lri $IX1,    #0x832c
lri $WR1,    #0x9c58
cw 0xd
call send_back  ; 5910 (0x1716)

lri $AR1,    #0x377c
lri $IX1,    #0x8674
lri $WR1,    #0x3b40
cw 0xd
call send_back  ; 5911 (0x1717)

lri $AR1,    #0xaf18
lri $IX1,    #0xb6bc
lri $WR1,    #0xa8b2
cw 0xd
call send_back  ; 5912 (0x1718)

lri $AR1,    #0xa102
lri $IX1,    #0x12e0
lri $WR1,    #0xdcc4
cw 0xd
call send_back  ; 5913 (0x1719)

lri $AR1,    #0x10f6
lri $IX1,    #0x6da2
lri $WR1,    #0xdf2e
cw 0xd
call send_back  ; 5914 (0x171a)

lri $AR1,    #0x19ba
lri $IX1,    #0xcae8
lri $WR1,    #0xe9d2
cw 0xd
call send_back  ; 5915 (0x171b)

lri $AR1,    #0x771e
lri $IX1,    #0x0cf4
lri $WR1,    #0x1eaa
cw 0xd
call send_back  ; 5916 (0x171c)

lri $AR1,    #0x4abc
lri $IX1,    #0x924a
lri $WR1,    #0x0a36
cw 0xd
call send_back  ; 5917 (0x171d)

lri $AR1,    #0x2110
lri $IX1,    #0xa190
lri $WR1,    #0x8e40
cw 0xd
call send_back  ; 5918 (0x171e)

lri $AR1,    #0xc57e
lri $IX1,    #0xd038
lri $WR1,    #0x2590
cw 0xd
call send_back  ; 5919 (0x171f)

lri $AR1,    #0xb05e
lri $IX1,    #0x2d52
lri $WR1,    #0xa4ba
cw 0xd
call send_back  ; 5920 (0x1720)

lri $AR1,    #0x2092
lri $IX1,    #0x803e
lri $WR1,    #0xfb7e
cw 0xd
call send_back  ; 5921 (0x1721)

lri $AR1,    #0xff50
lri $IX1,    #0x460a
lri $WR1,    #0xe2a2
cw 0xd
call send_back  ; 5922 (0x1722)

lri $AR1,    #0x0460
lri $IX1,    #0x5afa
lri $WR1,    #0xbc96
cw 0xd
call send_back  ; 5923 (0x1723)

lri $AR1,    #0x1cd8
lri $IX1,    #0xccb2
lri $WR1,    #0xabac
cw 0xd
call send_back  ; 5924 (0x1724)

lri $AR1,    #0xa200
lri $IX1,    #0x689e
lri $WR1,    #0x6dd4
cw 0xd
call send_back  ; 5925 (0x1725)

lri $AR1,    #0xd16e
lri $IX1,    #0x51ca
lri $WR1,    #0x4094
cw 0xd
call send_back  ; 5926 (0x1726)

lri $AR1,    #0x5088
lri $IX1,    #0x880e
lri $WR1,    #0x362e
cw 0xd
call send_back  ; 5927 (0x1727)

lri $AR1,    #0x0d1a
lri $IX1,    #0xc64c
lri $WR1,    #0xbb3c
cw 0xd
call send_back  ; 5928 (0x1728)

lri $AR1,    #0x6bb8
lri $IX1,    #0x59c0
lri $WR1,    #0x0912
cw 0xd
call send_back  ; 5929 (0x1729)

lri $AR1,    #0xa73e
lri $IX1,    #0xff38
lri $WR1,    #0x3b2a
cw 0xd
call send_back  ; 5930 (0x172a)

lri $AR1,    #0xa990
lri $IX1,    #0xae10
lri $WR1,    #0x0e5c
cw 0xd
call send_back  ; 5931 (0x172b)

lri $AR1,    #0x0d76
lri $IX1,    #0xf408
lri $WR1,    #0x490e
cw 0xd
call send_back  ; 5932 (0x172c)

lri $AR1,    #0x92ac
lri $IX1,    #0x332a
lri $WR1,    #0x538e
cw 0xd
call send_back  ; 5933 (0x172d)

lri $AR1,    #0xff20
lri $IX1,    #0x1f16
lri $WR1,    #0xfc96
cw 0xd
call send_back  ; 5934 (0x172e)

lri $AR1,    #0x3bce
lri $IX1,    #0xc758
lri $WR1,    #0x57fa
cw 0xd
call send_back  ; 5935 (0x172f)

lri $AR1,    #0x5fbc
lri $IX1,    #0xa15c
lri $WR1,    #0xc028
cw 0xd
call send_back  ; 5936 (0x1730)

lri $AR1,    #0x6dac
lri $IX1,    #0xa8c2
lri $WR1,    #0x886e
cw 0xd
call send_back  ; 5937 (0x1731)

lri $AR1,    #0xa2fc
lri $IX1,    #0x6180
lri $WR1,    #0xcace
cw 0xd
call send_back  ; 5938 (0x1732)

lri $AR1,    #0xb236
lri $IX1,    #0xdc6e
lri $WR1,    #0x5d50
cw 0xd
call send_back  ; 5939 (0x1733)

lri $AR1,    #0x7970
lri $IX1,    #0xf09c
lri $WR1,    #0xb0e4
cw 0xd
call send_back  ; 5940 (0x1734)

lri $AR1,    #0xe584
lri $IX1,    #0xb290
lri $WR1,    #0x2886
cw 0xd
call send_back  ; 5941 (0x1735)

lri $AR1,    #0x55c0
lri $IX1,    #0x2d9c
lri $WR1,    #0xe0d2
cw 0xd
call send_back  ; 5942 (0x1736)

lri $AR1,    #0x8aae
lri $IX1,    #0x6700
lri $WR1,    #0x5732
cw 0xd
call send_back  ; 5943 (0x1737)

lri $AR1,    #0x3e7e
lri $IX1,    #0x0ad8
lri $WR1,    #0xa172
cw 0xd
call send_back  ; 5944 (0x1738)

lri $AR1,    #0xe38c
lri $IX1,    #0xa0e8
lri $WR1,    #0x9da8
cw 0xd
call send_back  ; 5945 (0x1739)

lri $AR1,    #0x494c
lri $IX1,    #0x1f9c
lri $WR1,    #0x545c
cw 0xd
call send_back  ; 5946 (0x173a)

lri $AR1,    #0x44e4
lri $IX1,    #0x2562
lri $WR1,    #0xd28c
cw 0xd
call send_back  ; 5947 (0x173b)

lri $AR1,    #0x307c
lri $IX1,    #0x7236
lri $WR1,    #0x76c6
cw 0xd
call send_back  ; 5948 (0x173c)

lri $AR1,    #0xf6c2
lri $IX1,    #0x8d36
lri $WR1,    #0xc884
cw 0xd
call send_back  ; 5949 (0x173d)

lri $AR1,    #0xd4f4
lri $IX1,    #0xc56a
lri $WR1,    #0x401c
cw 0xd
call send_back  ; 5950 (0x173e)

lri $AR1,    #0xc3aa
lri $IX1,    #0x5678
lri $WR1,    #0xdc84
cw 0xd
call send_back  ; 5951 (0x173f)

lri $AR1,    #0x4a5c
lri $IX1,    #0x4ec4
lri $WR1,    #0xee18
cw 0xd
call send_back  ; 5952 (0x1740)

lri $AR1,    #0xc760
lri $IX1,    #0x5f1e
lri $WR1,    #0xd0fc
cw 0xd
call send_back  ; 5953 (0x1741)

lri $AR1,    #0x6476
lri $IX1,    #0xb1b0
lri $WR1,    #0xea6e
cw 0xd
call send_back  ; 5954 (0x1742)

lri $AR1,    #0xb8ce
lri $IX1,    #0xd640
lri $WR1,    #0x8d0c
cw 0xd
call send_back  ; 5955 (0x1743)

lri $AR1,    #0xc0a2
lri $IX1,    #0x0dd0
lri $WR1,    #0x1ed6
cw 0xd
call send_back  ; 5956 (0x1744)

lri $AR1,    #0x70fa
lri $IX1,    #0x1e4c
lri $WR1,    #0x10fa
cw 0xd
call send_back  ; 5957 (0x1745)

lri $AR1,    #0x176c
lri $IX1,    #0x7d78
lri $WR1,    #0x2090
cw 0xd
call send_back  ; 5958 (0x1746)

lri $AR1,    #0x7370
lri $IX1,    #0x12ba
lri $WR1,    #0x0800
cw 0xd
call send_back  ; 5959 (0x1747)

lri $AR1,    #0x5e20
lri $IX1,    #0x2bc6
lri $WR1,    #0x7d20
cw 0xd
call send_back  ; 5960 (0x1748)

lri $AR1,    #0x5b14
lri $IX1,    #0xc896
lri $WR1,    #0x71ce
cw 0xd
call send_back  ; 5961 (0x1749)

lri $AR1,    #0x094c
lri $IX1,    #0xd044
lri $WR1,    #0x7e62
cw 0xd
call send_back  ; 5962 (0x174a)

lri $AR1,    #0xe8da
lri $IX1,    #0x5168
lri $WR1,    #0x8cb8
cw 0xd
call send_back  ; 5963 (0x174b)

lri $AR1,    #0xb52e
lri $IX1,    #0x8084
lri $WR1,    #0x54be
cw 0xd
call send_back  ; 5964 (0x174c)

lri $AR1,    #0xa834
lri $IX1,    #0x64ca
lri $WR1,    #0x1400
cw 0xd
call send_back  ; 5965 (0x174d)

lri $AR1,    #0xb9dc
lri $IX1,    #0x06a4
lri $WR1,    #0xda92
cw 0xd
call send_back  ; 5966 (0x174e)

lri $AR1,    #0x4fd6
lri $IX1,    #0x3d48
lri $WR1,    #0xac24
cw 0xd
call send_back  ; 5967 (0x174f)

lri $AR1,    #0xdd5a
lri $IX1,    #0xe632
lri $WR1,    #0x3498
cw 0xd
call send_back  ; 5968 (0x1750)

lri $AR1,    #0xd382
lri $IX1,    #0x89ce
lri $WR1,    #0x99ac
cw 0xd
call send_back  ; 5969 (0x1751)

lri $AR1,    #0x8e2a
lri $IX1,    #0x8f4e
lri $WR1,    #0x8f60
cw 0xd
call send_back  ; 5970 (0x1752)

lri $AR1,    #0x268c
lri $IX1,    #0x3540
lri $WR1,    #0x3d60
cw 0xd
call send_back  ; 5971 (0x1753)

lri $AR1,    #0xf5b0
lri $IX1,    #0x9298
lri $WR1,    #0x42b0
cw 0xd
call send_back  ; 5972 (0x1754)

lri $AR1,    #0x94d8
lri $IX1,    #0x1270
lri $WR1,    #0xeb56
cw 0xd
call send_back  ; 5973 (0x1755)

lri $AR1,    #0xe204
lri $IX1,    #0x96b6
lri $WR1,    #0xd7ce
cw 0xd
call send_back  ; 5974 (0x1756)

lri $AR1,    #0xfad6
lri $IX1,    #0x5328
lri $WR1,    #0x28d0
cw 0xd
call send_back  ; 5975 (0x1757)

lri $AR1,    #0x2362
lri $IX1,    #0xfafe
lri $WR1,    #0xf096
cw 0xd
call send_back  ; 5976 (0x1758)

lri $AR1,    #0xa366
lri $IX1,    #0x3588
lri $WR1,    #0xcf48
cw 0xd
call send_back  ; 5977 (0x1759)

lri $AR1,    #0xa1f0
lri $IX1,    #0x1926
lri $WR1,    #0xf95a
cw 0xd
call send_back  ; 5978 (0x175a)

lri $AR1,    #0xcd18
lri $IX1,    #0xa336
lri $WR1,    #0xa1b8
cw 0xd
call send_back  ; 5979 (0x175b)

lri $AR1,    #0x4506
lri $IX1,    #0x9a78
lri $WR1,    #0x0864
cw 0xd
call send_back  ; 5980 (0x175c)

lri $AR1,    #0x6eba
lri $IX1,    #0xbac4
lri $WR1,    #0x2b66
cw 0xd
call send_back  ; 5981 (0x175d)

lri $AR1,    #0xe5a6
lri $IX1,    #0xf35a
lri $WR1,    #0x7236
cw 0xd
call send_back  ; 5982 (0x175e)

lri $AR1,    #0x6598
lri $IX1,    #0x83f2
lri $WR1,    #0xe650
cw 0xd
call send_back  ; 5983 (0x175f)

lri $AR1,    #0x1254
lri $IX1,    #0x72ca
lri $WR1,    #0x8a38
cw 0xd
call send_back  ; 5984 (0x1760)

lri $AR1,    #0x6668
lri $IX1,    #0x83d2
lri $WR1,    #0x4982
cw 0xd
call send_back  ; 5985 (0x1761)

lri $AR1,    #0x8308
lri $IX1,    #0x0992
lri $WR1,    #0xe406
cw 0xd
call send_back  ; 5986 (0x1762)

lri $AR1,    #0x7456
lri $IX1,    #0xa6bc
lri $WR1,    #0x1e60
cw 0xd
call send_back  ; 5987 (0x1763)

lri $AR1,    #0xe054
lri $IX1,    #0x9fb8
lri $WR1,    #0x5220
cw 0xd
call send_back  ; 5988 (0x1764)

lri $AR1,    #0xe814
lri $IX1,    #0x221a
lri $WR1,    #0xf63e
cw 0xd
call send_back  ; 5989 (0x1765)

lri $AR1,    #0x1194
lri $IX1,    #0x1d2a
lri $WR1,    #0xf308
cw 0xd
call send_back  ; 5990 (0x1766)

lri $AR1,    #0xd366
lri $IX1,    #0xa8ba
lri $WR1,    #0x7056
cw 0xd
call send_back  ; 5991 (0x1767)

lri $AR1,    #0xc21c
lri $IX1,    #0xd4e2
lri $WR1,    #0xfea2
cw 0xd
call send_back  ; 5992 (0x1768)

lri $AR1,    #0x6c16
lri $IX1,    #0xb0fc
lri $WR1,    #0xd25c
cw 0xd
call send_back  ; 5993 (0x1769)

lri $AR1,    #0x5662
lri $IX1,    #0x68b8
lri $WR1,    #0xd1e2
cw 0xd
call send_back  ; 5994 (0x176a)

lri $AR1,    #0xc3c6
lri $IX1,    #0xbc54
lri $WR1,    #0xe4de
cw 0xd
call send_back  ; 5995 (0x176b)

lri $AR1,    #0x3e06
lri $IX1,    #0x1e18
lri $WR1,    #0x0faa
cw 0xd
call send_back  ; 5996 (0x176c)

lri $AR1,    #0x088a
lri $IX1,    #0xac86
lri $WR1,    #0xae9a
cw 0xd
call send_back  ; 5997 (0x176d)

lri $AR1,    #0x90a0
lri $IX1,    #0x9aa2
lri $WR1,    #0xb1c8
cw 0xd
call send_back  ; 5998 (0x176e)

lri $AR1,    #0x7cb6
lri $IX1,    #0x5b26
lri $WR1,    #0x30fc
cw 0xd
call send_back  ; 5999 (0x176f)

lri $AR1,    #0x4f6a
lri $IX1,    #0xba34
lri $WR1,    #0xb602
cw 0xd
call send_back  ; 6000 (0x1770)

lri $AR1,    #0xe2e8
lri $IX1,    #0xfca6
lri $WR1,    #0x4a06
cw 0xd
call send_back  ; 6001 (0x1771)

lri $AR1,    #0x9e7c
lri $IX1,    #0x462e
lri $WR1,    #0xcf38
cw 0xd
call send_back  ; 6002 (0x1772)

lri $AR1,    #0xe592
lri $IX1,    #0x7882
lri $WR1,    #0xfea2
cw 0xd
call send_back  ; 6003 (0x1773)

lri $AR1,    #0xecd0
lri $IX1,    #0x6878
lri $WR1,    #0x4b54
cw 0xd
call send_back  ; 6004 (0x1774)

lri $AR1,    #0xa824
lri $IX1,    #0xece8
lri $WR1,    #0x4ada
cw 0xd
call send_back  ; 6005 (0x1775)

lri $AR1,    #0x72aa
lri $IX1,    #0x632a
lri $WR1,    #0x533e
cw 0xd
call send_back  ; 6006 (0x1776)

lri $AR1,    #0xd226
lri $IX1,    #0x2c5e
lri $WR1,    #0xcbc8
cw 0xd
call send_back  ; 6007 (0x1777)

lri $AR1,    #0xcab2
lri $IX1,    #0x005a
lri $WR1,    #0xea90
cw 0xd
call send_back  ; 6008 (0x1778)

lri $AR1,    #0xa33c
lri $IX1,    #0x48b0
lri $WR1,    #0xc9d2
cw 0xd
call send_back  ; 6009 (0x1779)

lri $AR1,    #0xd254
lri $IX1,    #0xf3f0
lri $WR1,    #0xc118
cw 0xd
call send_back  ; 6010 (0x177a)

lri $AR1,    #0x998a
lri $IX1,    #0x4ed4
lri $WR1,    #0xf804
cw 0xd
call send_back  ; 6011 (0x177b)

lri $AR1,    #0x92ac
lri $IX1,    #0xabe8
lri $WR1,    #0x20f8
cw 0xd
call send_back  ; 6012 (0x177c)

lri $AR1,    #0x8a58
lri $IX1,    #0x53ea
lri $WR1,    #0x4806
cw 0xd
call send_back  ; 6013 (0x177d)

lri $AR1,    #0xd396
lri $IX1,    #0x6a10
lri $WR1,    #0x2882
cw 0xd
call send_back  ; 6014 (0x177e)

lri $AR1,    #0x5f78
lri $IX1,    #0xfc12
lri $WR1,    #0x18a2
cw 0xd
call send_back  ; 6015 (0x177f)

lri $AR1,    #0x4736
lri $IX1,    #0x9c96
lri $WR1,    #0x2f88
cw 0xd
call send_back  ; 6016 (0x1780)

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

