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

lri $AR1,    #0x4e90
lri $IX1,    #0xe018
lri $WR1,    #0xb272
cw 0xd
call send_back  ; 4865 (0x1301)

lri $AR1,    #0x9af0
lri $IX1,    #0x65b0
lri $WR1,    #0x1016
cw 0xd
call send_back  ; 4866 (0x1302)

lri $AR1,    #0xaad6
lri $IX1,    #0x5f24
lri $WR1,    #0x3d74
cw 0xd
call send_back  ; 4867 (0x1303)

lri $AR1,    #0x9638
lri $IX1,    #0x80b4
lri $WR1,    #0xf342
cw 0xd
call send_back  ; 4868 (0x1304)

lri $AR1,    #0x5468
lri $IX1,    #0x99f0
lri $WR1,    #0x544e
cw 0xd
call send_back  ; 4869 (0x1305)

lri $AR1,    #0xb2aa
lri $IX1,    #0xe410
lri $WR1,    #0x0bd2
cw 0xd
call send_back  ; 4870 (0x1306)

lri $AR1,    #0xfc8e
lri $IX1,    #0x9eba
lri $WR1,    #0xd5f2
cw 0xd
call send_back  ; 4871 (0x1307)

lri $AR1,    #0xe674
lri $IX1,    #0xe452
lri $WR1,    #0xe6fa
cw 0xd
call send_back  ; 4872 (0x1308)

lri $AR1,    #0xcb18
lri $IX1,    #0x37d6
lri $WR1,    #0x8e30
cw 0xd
call send_back  ; 4873 (0x1309)

lri $AR1,    #0x7dc2
lri $IX1,    #0xfe18
lri $WR1,    #0x9b54
cw 0xd
call send_back  ; 4874 (0x130a)

lri $AR1,    #0xc6c4
lri $IX1,    #0xa162
lri $WR1,    #0x47a0
cw 0xd
call send_back  ; 4875 (0x130b)

lri $AR1,    #0x4bfe
lri $IX1,    #0x0d74
lri $WR1,    #0xc1ca
cw 0xd
call send_back  ; 4876 (0x130c)

lri $AR1,    #0x0d82
lri $IX1,    #0x778e
lri $WR1,    #0x3bb6
cw 0xd
call send_back  ; 4877 (0x130d)

lri $AR1,    #0xaab6
lri $IX1,    #0x642c
lri $WR1,    #0xf9c6
cw 0xd
call send_back  ; 4878 (0x130e)

lri $AR1,    #0xf2dc
lri $IX1,    #0x5a4c
lri $WR1,    #0x2ac4
cw 0xd
call send_back  ; 4879 (0x130f)

lri $AR1,    #0x2862
lri $IX1,    #0xd85c
lri $WR1,    #0x6c54
cw 0xd
call send_back  ; 4880 (0x1310)

lri $AR1,    #0x69a2
lri $IX1,    #0xd776
lri $WR1,    #0x2894
cw 0xd
call send_back  ; 4881 (0x1311)

lri $AR1,    #0x81cc
lri $IX1,    #0xbb5c
lri $WR1,    #0x3e5e
cw 0xd
call send_back  ; 4882 (0x1312)

lri $AR1,    #0xa814
lri $IX1,    #0x8d20
lri $WR1,    #0x0852
cw 0xd
call send_back  ; 4883 (0x1313)

lri $AR1,    #0xe520
lri $IX1,    #0x7b6c
lri $WR1,    #0x6ace
cw 0xd
call send_back  ; 4884 (0x1314)

lri $AR1,    #0x5cb0
lri $IX1,    #0x4254
lri $WR1,    #0xed68
cw 0xd
call send_back  ; 4885 (0x1315)

lri $AR1,    #0xae8a
lri $IX1,    #0x20f6
lri $WR1,    #0x3196
cw 0xd
call send_back  ; 4886 (0x1316)

lri $AR1,    #0xabe0
lri $IX1,    #0x0ce6
lri $WR1,    #0x7d08
cw 0xd
call send_back  ; 4887 (0x1317)

lri $AR1,    #0xea60
lri $IX1,    #0x8302
lri $WR1,    #0x4984
cw 0xd
call send_back  ; 4888 (0x1318)

lri $AR1,    #0x2dae
lri $IX1,    #0x9f7c
lri $WR1,    #0x1f12
cw 0xd
call send_back  ; 4889 (0x1319)

lri $AR1,    #0x11ae
lri $IX1,    #0x949c
lri $WR1,    #0x6ee6
cw 0xd
call send_back  ; 4890 (0x131a)

lri $AR1,    #0xdcb8
lri $IX1,    #0xab8e
lri $WR1,    #0x4b00
cw 0xd
call send_back  ; 4891 (0x131b)

lri $AR1,    #0xca36
lri $IX1,    #0x2fca
lri $WR1,    #0xe1c8
cw 0xd
call send_back  ; 4892 (0x131c)

lri $AR1,    #0xfe86
lri $IX1,    #0xff8e
lri $WR1,    #0xa88c
cw 0xd
call send_back  ; 4893 (0x131d)

lri $AR1,    #0x13ac
lri $IX1,    #0xe0de
lri $WR1,    #0x0af6
cw 0xd
call send_back  ; 4894 (0x131e)

lri $AR1,    #0x1f7e
lri $IX1,    #0xd1da
lri $WR1,    #0x71ca
cw 0xd
call send_back  ; 4895 (0x131f)

lri $AR1,    #0x584e
lri $IX1,    #0x0fa2
lri $WR1,    #0xef6a
cw 0xd
call send_back  ; 4896 (0x1320)

lri $AR1,    #0xeba0
lri $IX1,    #0x9db0
lri $WR1,    #0xa746
cw 0xd
call send_back  ; 4897 (0x1321)

lri $AR1,    #0x6f96
lri $IX1,    #0x1a56
lri $WR1,    #0x7660
cw 0xd
call send_back  ; 4898 (0x1322)

lri $AR1,    #0x9748
lri $IX1,    #0x37e0
lri $WR1,    #0xe508
cw 0xd
call send_back  ; 4899 (0x1323)

lri $AR1,    #0xe628
lri $IX1,    #0x28e4
lri $WR1,    #0xeeb8
cw 0xd
call send_back  ; 4900 (0x1324)

lri $AR1,    #0x51fe
lri $IX1,    #0x6d48
lri $WR1,    #0xa1f6
cw 0xd
call send_back  ; 4901 (0x1325)

lri $AR1,    #0xeea8
lri $IX1,    #0x4d3a
lri $WR1,    #0xd4e0
cw 0xd
call send_back  ; 4902 (0x1326)

lri $AR1,    #0x7fc4
lri $IX1,    #0xb5fe
lri $WR1,    #0xf97c
cw 0xd
call send_back  ; 4903 (0x1327)

lri $AR1,    #0x5bd0
lri $IX1,    #0x9048
lri $WR1,    #0xbaec
cw 0xd
call send_back  ; 4904 (0x1328)

lri $AR1,    #0xd3ca
lri $IX1,    #0x6c2a
lri $WR1,    #0x71f6
cw 0xd
call send_back  ; 4905 (0x1329)

lri $AR1,    #0x0c34
lri $IX1,    #0x7178
lri $WR1,    #0x810e
cw 0xd
call send_back  ; 4906 (0x132a)

lri $AR1,    #0x8204
lri $IX1,    #0xa654
lri $WR1,    #0x20b0
cw 0xd
call send_back  ; 4907 (0x132b)

lri $AR1,    #0x651e
lri $IX1,    #0xc134
lri $WR1,    #0xe52a
cw 0xd
call send_back  ; 4908 (0x132c)

lri $AR1,    #0x337a
lri $IX1,    #0x715c
lri $WR1,    #0xb71a
cw 0xd
call send_back  ; 4909 (0x132d)

lri $AR1,    #0xfa18
lri $IX1,    #0x3d4a
lri $WR1,    #0xf498
cw 0xd
call send_back  ; 4910 (0x132e)

lri $AR1,    #0xdbe4
lri $IX1,    #0xceb8
lri $WR1,    #0x0afa
cw 0xd
call send_back  ; 4911 (0x132f)

lri $AR1,    #0x6b5a
lri $IX1,    #0x90a2
lri $WR1,    #0x3bf6
cw 0xd
call send_back  ; 4912 (0x1330)

lri $AR1,    #0x9d62
lri $IX1,    #0xb044
lri $WR1,    #0x2e0e
cw 0xd
call send_back  ; 4913 (0x1331)

lri $AR1,    #0xfdc0
lri $IX1,    #0xee52
lri $WR1,    #0xccf8
cw 0xd
call send_back  ; 4914 (0x1332)

lri $AR1,    #0x31d6
lri $IX1,    #0x4b30
lri $WR1,    #0xc828
cw 0xd
call send_back  ; 4915 (0x1333)

lri $AR1,    #0x938c
lri $IX1,    #0x1262
lri $WR1,    #0x7b2e
cw 0xd
call send_back  ; 4916 (0x1334)

lri $AR1,    #0x77c8
lri $IX1,    #0xa868
lri $WR1,    #0xc11e
cw 0xd
call send_back  ; 4917 (0x1335)

lri $AR1,    #0x9d98
lri $IX1,    #0xa132
lri $WR1,    #0x24ac
cw 0xd
call send_back  ; 4918 (0x1336)

lri $AR1,    #0x633e
lri $IX1,    #0x70f0
lri $WR1,    #0xfe86
cw 0xd
call send_back  ; 4919 (0x1337)

lri $AR1,    #0x7922
lri $IX1,    #0x490a
lri $WR1,    #0x9c7e
cw 0xd
call send_back  ; 4920 (0x1338)

lri $AR1,    #0x5184
lri $IX1,    #0xb9a0
lri $WR1,    #0xaba2
cw 0xd
call send_back  ; 4921 (0x1339)

lri $AR1,    #0x9700
lri $IX1,    #0x4fa2
lri $WR1,    #0xf8ee
cw 0xd
call send_back  ; 4922 (0x133a)

lri $AR1,    #0x394e
lri $IX1,    #0x21c4
lri $WR1,    #0xd086
cw 0xd
call send_back  ; 4923 (0x133b)

lri $AR1,    #0xdd32
lri $IX1,    #0xf83a
lri $WR1,    #0xc05e
cw 0xd
call send_back  ; 4924 (0x133c)

lri $AR1,    #0x0716
lri $IX1,    #0x14d4
lri $WR1,    #0x87c8
cw 0xd
call send_back  ; 4925 (0x133d)

lri $AR1,    #0x14cc
lri $IX1,    #0x0d04
lri $WR1,    #0xd3ee
cw 0xd
call send_back  ; 4926 (0x133e)

lri $AR1,    #0x4856
lri $IX1,    #0x8816
lri $WR1,    #0x88ca
cw 0xd
call send_back  ; 4927 (0x133f)

lri $AR1,    #0x0228
lri $IX1,    #0x7180
lri $WR1,    #0x2784
cw 0xd
call send_back  ; 4928 (0x1340)

lri $AR1,    #0xb63a
lri $IX1,    #0x412c
lri $WR1,    #0x9ef0
cw 0xd
call send_back  ; 4929 (0x1341)

lri $AR1,    #0x1e38
lri $IX1,    #0x9988
lri $WR1,    #0x7386
cw 0xd
call send_back  ; 4930 (0x1342)

lri $AR1,    #0xdba4
lri $IX1,    #0xb362
lri $WR1,    #0xa4c8
cw 0xd
call send_back  ; 4931 (0x1343)

lri $AR1,    #0xec0e
lri $IX1,    #0xb3ae
lri $WR1,    #0x34de
cw 0xd
call send_back  ; 4932 (0x1344)

lri $AR1,    #0x9804
lri $IX1,    #0xedd2
lri $WR1,    #0x5488
cw 0xd
call send_back  ; 4933 (0x1345)

lri $AR1,    #0xb662
lri $IX1,    #0xe3b6
lri $WR1,    #0xa478
cw 0xd
call send_back  ; 4934 (0x1346)

lri $AR1,    #0x43d6
lri $IX1,    #0x0d26
lri $WR1,    #0x55da
cw 0xd
call send_back  ; 4935 (0x1347)

lri $AR1,    #0x3d34
lri $IX1,    #0xb4ae
lri $WR1,    #0xf00a
cw 0xd
call send_back  ; 4936 (0x1348)

lri $AR1,    #0x5972
lri $IX1,    #0x481c
lri $WR1,    #0x035e
cw 0xd
call send_back  ; 4937 (0x1349)

lri $AR1,    #0xa43e
lri $IX1,    #0x9090
lri $WR1,    #0x0a22
cw 0xd
call send_back  ; 4938 (0x134a)

lri $AR1,    #0x5fb8
lri $IX1,    #0x1e6a
lri $WR1,    #0x10d8
cw 0xd
call send_back  ; 4939 (0x134b)

lri $AR1,    #0xe770
lri $IX1,    #0x2ddc
lri $WR1,    #0x0054
cw 0xd
call send_back  ; 4940 (0x134c)

lri $AR1,    #0x0a90
lri $IX1,    #0x8e56
lri $WR1,    #0x2578
cw 0xd
call send_back  ; 4941 (0x134d)

lri $AR1,    #0x5b12
lri $IX1,    #0x2224
lri $WR1,    #0x0ab2
cw 0xd
call send_back  ; 4942 (0x134e)

lri $AR1,    #0xb796
lri $IX1,    #0x9da2
lri $WR1,    #0x4430
cw 0xd
call send_back  ; 4943 (0x134f)

lri $AR1,    #0x69d4
lri $IX1,    #0xc2e4
lri $WR1,    #0x9822
cw 0xd
call send_back  ; 4944 (0x1350)

lri $AR1,    #0x3c02
lri $IX1,    #0x16ea
lri $WR1,    #0x1e76
cw 0xd
call send_back  ; 4945 (0x1351)

lri $AR1,    #0xfb6a
lri $IX1,    #0xd4ac
lri $WR1,    #0x97e8
cw 0xd
call send_back  ; 4946 (0x1352)

lri $AR1,    #0x0316
lri $IX1,    #0x3d40
lri $WR1,    #0xcc82
cw 0xd
call send_back  ; 4947 (0x1353)

lri $AR1,    #0xd2ea
lri $IX1,    #0xdb0c
lri $WR1,    #0x48f6
cw 0xd
call send_back  ; 4948 (0x1354)

lri $AR1,    #0x6328
lri $IX1,    #0x8424
lri $WR1,    #0x805a
cw 0xd
call send_back  ; 4949 (0x1355)

lri $AR1,    #0xe498
lri $IX1,    #0xca18
lri $WR1,    #0x0c44
cw 0xd
call send_back  ; 4950 (0x1356)

lri $AR1,    #0x7192
lri $IX1,    #0x3294
lri $WR1,    #0x3fb0
cw 0xd
call send_back  ; 4951 (0x1357)

lri $AR1,    #0x3f62
lri $IX1,    #0x051a
lri $WR1,    #0x37e0
cw 0xd
call send_back  ; 4952 (0x1358)

lri $AR1,    #0x1caa
lri $IX1,    #0x5c5c
lri $WR1,    #0x22ee
cw 0xd
call send_back  ; 4953 (0x1359)

lri $AR1,    #0xcea0
lri $IX1,    #0x9c38
lri $WR1,    #0xd4c8
cw 0xd
call send_back  ; 4954 (0x135a)

lri $AR1,    #0x8cee
lri $IX1,    #0xed54
lri $WR1,    #0xa67c
cw 0xd
call send_back  ; 4955 (0x135b)

lri $AR1,    #0x0d58
lri $IX1,    #0x3da6
lri $WR1,    #0xaa7a
cw 0xd
call send_back  ; 4956 (0x135c)

lri $AR1,    #0x659c
lri $IX1,    #0xbec0
lri $WR1,    #0xe594
cw 0xd
call send_back  ; 4957 (0x135d)

lri $AR1,    #0xe4ba
lri $IX1,    #0xed40
lri $WR1,    #0x1f24
cw 0xd
call send_back  ; 4958 (0x135e)

lri $AR1,    #0x0ef0
lri $IX1,    #0xf78c
lri $WR1,    #0xbca2
cw 0xd
call send_back  ; 4959 (0x135f)

lri $AR1,    #0x7bfc
lri $IX1,    #0xeff2
lri $WR1,    #0x6460
cw 0xd
call send_back  ; 4960 (0x1360)

lri $AR1,    #0x630e
lri $IX1,    #0x6c7c
lri $WR1,    #0x73a2
cw 0xd
call send_back  ; 4961 (0x1361)

lri $AR1,    #0xd846
lri $IX1,    #0x0ef4
lri $WR1,    #0x447a
cw 0xd
call send_back  ; 4962 (0x1362)

lri $AR1,    #0x8116
lri $IX1,    #0x761a
lri $WR1,    #0x4f68
cw 0xd
call send_back  ; 4963 (0x1363)

lri $AR1,    #0xefdc
lri $IX1,    #0x0942
lri $WR1,    #0xcd24
cw 0xd
call send_back  ; 4964 (0x1364)

lri $AR1,    #0xd02a
lri $IX1,    #0xde7c
lri $WR1,    #0xe338
cw 0xd
call send_back  ; 4965 (0x1365)

lri $AR1,    #0x6446
lri $IX1,    #0x5832
lri $WR1,    #0x288e
cw 0xd
call send_back  ; 4966 (0x1366)

lri $AR1,    #0xfef8
lri $IX1,    #0x41a4
lri $WR1,    #0xd2bc
cw 0xd
call send_back  ; 4967 (0x1367)

lri $AR1,    #0x938c
lri $IX1,    #0xf6b4
lri $WR1,    #0x56c8
cw 0xd
call send_back  ; 4968 (0x1368)

lri $AR1,    #0xaac0
lri $IX1,    #0x9f9e
lri $WR1,    #0x8698
cw 0xd
call send_back  ; 4969 (0x1369)

lri $AR1,    #0x3950
lri $IX1,    #0x410e
lri $WR1,    #0x457e
cw 0xd
call send_back  ; 4970 (0x136a)

lri $AR1,    #0xf312
lri $IX1,    #0x1010
lri $WR1,    #0xc4ca
cw 0xd
call send_back  ; 4971 (0x136b)

lri $AR1,    #0x8ce6
lri $IX1,    #0xe59c
lri $WR1,    #0x1cbc
cw 0xd
call send_back  ; 4972 (0x136c)

lri $AR1,    #0x3670
lri $IX1,    #0xa36e
lri $WR1,    #0xc800
cw 0xd
call send_back  ; 4973 (0x136d)

lri $AR1,    #0xca12
lri $IX1,    #0xdd6e
lri $WR1,    #0x9c02
cw 0xd
call send_back  ; 4974 (0x136e)

lri $AR1,    #0x2624
lri $IX1,    #0xa67e
lri $WR1,    #0xf816
cw 0xd
call send_back  ; 4975 (0x136f)

lri $AR1,    #0x7ec0
lri $IX1,    #0x1e52
lri $WR1,    #0x3348
cw 0xd
call send_back  ; 4976 (0x1370)

lri $AR1,    #0xee36
lri $IX1,    #0xd15e
lri $WR1,    #0x67fc
cw 0xd
call send_back  ; 4977 (0x1371)

lri $AR1,    #0xf038
lri $IX1,    #0xce18
lri $WR1,    #0x401c
cw 0xd
call send_back  ; 4978 (0x1372)

lri $AR1,    #0xf908
lri $IX1,    #0x8bbc
lri $WR1,    #0x5c10
cw 0xd
call send_back  ; 4979 (0x1373)

lri $AR1,    #0x8f26
lri $IX1,    #0xd198
lri $WR1,    #0x9f96
cw 0xd
call send_back  ; 4980 (0x1374)

lri $AR1,    #0x7c7e
lri $IX1,    #0x7c78
lri $WR1,    #0xf64a
cw 0xd
call send_back  ; 4981 (0x1375)

lri $AR1,    #0xe1fa
lri $IX1,    #0x4058
lri $WR1,    #0xba50
cw 0xd
call send_back  ; 4982 (0x1376)

lri $AR1,    #0x210e
lri $IX1,    #0x3344
lri $WR1,    #0x5c34
cw 0xd
call send_back  ; 4983 (0x1377)

lri $AR1,    #0xaa0e
lri $IX1,    #0x3064
lri $WR1,    #0x7016
cw 0xd
call send_back  ; 4984 (0x1378)

lri $AR1,    #0x51cc
lri $IX1,    #0xffa0
lri $WR1,    #0xdd24
cw 0xd
call send_back  ; 4985 (0x1379)

lri $AR1,    #0x7000
lri $IX1,    #0x140c
lri $WR1,    #0xf564
cw 0xd
call send_back  ; 4986 (0x137a)

lri $AR1,    #0xbecc
lri $IX1,    #0x18ae
lri $WR1,    #0x6d94
cw 0xd
call send_back  ; 4987 (0x137b)

lri $AR1,    #0x3898
lri $IX1,    #0x2642
lri $WR1,    #0xed8a
cw 0xd
call send_back  ; 4988 (0x137c)

lri $AR1,    #0xf1c4
lri $IX1,    #0x3640
lri $WR1,    #0xd720
cw 0xd
call send_back  ; 4989 (0x137d)

lri $AR1,    #0x03e6
lri $IX1,    #0xc042
lri $WR1,    #0xf08a
cw 0xd
call send_back  ; 4990 (0x137e)

lri $AR1,    #0x277c
lri $IX1,    #0xc3a8
lri $WR1,    #0xe302
cw 0xd
call send_back  ; 4991 (0x137f)

lri $AR1,    #0x04ba
lri $IX1,    #0x8e2a
lri $WR1,    #0x5c6e
cw 0xd
call send_back  ; 4992 (0x1380)

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

