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

lri $AR1,    #0x6829
lri $IX1,    #0xee78
lri $WR1,    #0xcab8
cw 0xd
call send_back  ; 16713 (0x4149)

lri $AR1,    #0xc20d
lri $IX1,    #0x5cea
lri $WR1,    #0xc3b6
cw 0xd
call send_back  ; 16714 (0x414a)

lri $AR1,    #0x3980
lri $IX1,    #0x1ed2
lri $WR1,    #0x3d7a
cw 0xd
call send_back  ; 16715 (0x414b)

lri $AR1,    #0xaaa0
lri $IX1,    #0xbf42
lri $WR1,    #0x1cb1
cw 0xd
call send_back  ; 16716 (0x414c)

lri $AR1,    #0xd737
lri $IX1,    #0x220c
lri $WR1,    #0x6679
cw 0xd
call send_back  ; 16717 (0x414d)

lri $AR1,    #0x20bb
lri $IX1,    #0xba34
lri $WR1,    #0x817e
cw 0xd
call send_back  ; 16718 (0x414e)

lri $AR1,    #0xa62a
lri $IX1,    #0x4f44
lri $WR1,    #0x16a1
cw 0xd
call send_back  ; 16719 (0x414f)

lri $AR1,    #0x5518
lri $IX1,    #0x7b24
lri $WR1,    #0xb3c7
cw 0xd
call send_back  ; 16720 (0x4150)

lri $AR1,    #0x88b5
lri $IX1,    #0x71f6
lri $WR1,    #0x9cdd
cw 0xd
call send_back  ; 16721 (0x4151)

lri $AR1,    #0x1124
lri $IX1,    #0x60a0
lri $WR1,    #0x84ac
cw 0xd
call send_back  ; 16722 (0x4152)

lri $AR1,    #0x50f4
lri $IX1,    #0x9e76
lri $WR1,    #0x9875
cw 0xd
call send_back  ; 16723 (0x4153)

lri $AR1,    #0x65fe
lri $IX1,    #0xf1ac
lri $WR1,    #0x3ef8
cw 0xd
call send_back  ; 16724 (0x4154)

lri $AR1,    #0x6e8f
lri $IX1,    #0x1e06
lri $WR1,    #0x04fa
cw 0xd
call send_back  ; 16725 (0x4155)

lri $AR1,    #0x4b0a
lri $IX1,    #0xc084
lri $WR1,    #0x4ec2
cw 0xd
call send_back  ; 16726 (0x4156)

lri $AR1,    #0xa003
lri $IX1,    #0xfa54
lri $WR1,    #0x67b4
cw 0xd
call send_back  ; 16727 (0x4157)

lri $AR1,    #0xb3ef
lri $IX1,    #0x80ea
lri $WR1,    #0xce95
cw 0xd
call send_back  ; 16728 (0x4158)

lri $AR1,    #0x6f68
lri $IX1,    #0x3084
lri $WR1,    #0x867f
cw 0xd
call send_back  ; 16729 (0x4159)

lri $AR1,    #0xa628
lri $IX1,    #0x19ea
lri $WR1,    #0x221b
cw 0xd
call send_back  ; 16730 (0x415a)

lri $AR1,    #0x42b9
lri $IX1,    #0x13bc
lri $WR1,    #0x903a
cw 0xd
call send_back  ; 16731 (0x415b)

lri $AR1,    #0xd603
lri $IX1,    #0xfb24
lri $WR1,    #0xc644
cw 0xd
call send_back  ; 16732 (0x415c)

lri $AR1,    #0xc79e
lri $IX1,    #0xe72c
lri $WR1,    #0x9eae
cw 0xd
call send_back  ; 16733 (0x415d)

lri $AR1,    #0x5330
lri $IX1,    #0x7d96
lri $WR1,    #0x7eec
cw 0xd
call send_back  ; 16734 (0x415e)

lri $AR1,    #0x82b0
lri $IX1,    #0x378c
lri $WR1,    #0x79f7
cw 0xd
call send_back  ; 16735 (0x415f)

lri $AR1,    #0xccc8
lri $IX1,    #0x97de
lri $WR1,    #0x8a04
cw 0xd
call send_back  ; 16736 (0x4160)

lri $AR1,    #0xca44
lri $IX1,    #0xfc34
lri $WR1,    #0x8568
cw 0xd
call send_back  ; 16737 (0x4161)

lri $AR1,    #0xf4cd
lri $IX1,    #0xae06
lri $WR1,    #0x803e
cw 0xd
call send_back  ; 16738 (0x4162)

lri $AR1,    #0x74b6
lri $IX1,    #0x0796
lri $WR1,    #0xbdf5
cw 0xd
call send_back  ; 16739 (0x4163)

lri $AR1,    #0x8b42
lri $IX1,    #0xc4ce
lri $WR1,    #0x8b2e
cw 0xd
call send_back  ; 16740 (0x4164)

lri $AR1,    #0x8229
lri $IX1,    #0xcf4c
lri $WR1,    #0x321f
cw 0xd
call send_back  ; 16741 (0x4165)

lri $AR1,    #0x98a1
lri $IX1,    #0xe06e
lri $WR1,    #0x98f6
cw 0xd
call send_back  ; 16742 (0x4166)

lri $AR1,    #0x89d4
lri $IX1,    #0x13a2
lri $WR1,    #0xdb55
cw 0xd
call send_back  ; 16743 (0x4167)

lri $AR1,    #0x5ff1
lri $IX1,    #0xd6e4
lri $WR1,    #0xb56f
cw 0xd
call send_back  ; 16744 (0x4168)

lri $AR1,    #0xb2cc
lri $IX1,    #0x6e9a
lri $WR1,    #0x40e1
cw 0xd
call send_back  ; 16745 (0x4169)

lri $AR1,    #0x9045
lri $IX1,    #0x5dba
lri $WR1,    #0x30cf
cw 0xd
call send_back  ; 16746 (0x416a)

lri $AR1,    #0x804a
lri $IX1,    #0x5274
lri $WR1,    #0x4c50
cw 0xd
call send_back  ; 16747 (0x416b)

lri $AR1,    #0x3dcb
lri $IX1,    #0x9b4a
lri $WR1,    #0xbbd0
cw 0xd
call send_back  ; 16748 (0x416c)

lri $AR1,    #0x396e
lri $IX1,    #0x7fbc
lri $WR1,    #0xb755
cw 0xd
call send_back  ; 16749 (0x416d)

lri $AR1,    #0xaa4d
lri $IX1,    #0x038c
lri $WR1,    #0xa15b
cw 0xd
call send_back  ; 16750 (0x416e)

lri $AR1,    #0x3491
lri $IX1,    #0x7ac6
lri $WR1,    #0x7b37
cw 0xd
call send_back  ; 16751 (0x416f)

lri $AR1,    #0x653e
lri $IX1,    #0xc85e
lri $WR1,    #0xc5ae
cw 0xd
call send_back  ; 16752 (0x4170)

lri $AR1,    #0x4e02
lri $IX1,    #0x08c6
lri $WR1,    #0x29b6
cw 0xd
call send_back  ; 16753 (0x4171)

lri $AR1,    #0x4b42
lri $IX1,    #0xa544
lri $WR1,    #0x9305
cw 0xd
call send_back  ; 16754 (0x4172)

lri $AR1,    #0x5258
lri $IX1,    #0x3c4c
lri $WR1,    #0x1774
cw 0xd
call send_back  ; 16755 (0x4173)

lri $AR1,    #0xed31
lri $IX1,    #0x4eba
lri $WR1,    #0x7bc2
cw 0xd
call send_back  ; 16756 (0x4174)

lri $AR1,    #0x2433
lri $IX1,    #0x194a
lri $WR1,    #0xbfdb
cw 0xd
call send_back  ; 16757 (0x4175)

lri $AR1,    #0x66a6
lri $IX1,    #0x4cf4
lri $WR1,    #0x3a14
cw 0xd
call send_back  ; 16758 (0x4176)

lri $AR1,    #0x6588
lri $IX1,    #0x58ac
lri $WR1,    #0x4a88
cw 0xd
call send_back  ; 16759 (0x4177)

lri $AR1,    #0xac02
lri $IX1,    #0x8a2e
lri $WR1,    #0x751c
cw 0xd
call send_back  ; 16760 (0x4178)

lri $AR1,    #0x6c66
lri $IX1,    #0x534c
lri $WR1,    #0x9a30
cw 0xd
call send_back  ; 16761 (0x4179)

lri $AR1,    #0xd7f5
lri $IX1,    #0x5c6a
lri $WR1,    #0xf39e
cw 0xd
call send_back  ; 16762 (0x417a)

lri $AR1,    #0x4b41
lri $IX1,    #0x9c8a
lri $WR1,    #0xcd0c
cw 0xd
call send_back  ; 16763 (0x417b)

lri $AR1,    #0x8086
lri $IX1,    #0x52c2
lri $WR1,    #0x8422
cw 0xd
call send_back  ; 16764 (0x417c)

lri $AR1,    #0x34b8
lri $IX1,    #0x544c
lri $WR1,    #0x16bb
cw 0xd
call send_back  ; 16765 (0x417d)

lri $AR1,    #0x9b9f
lri $IX1,    #0x8e28
lri $WR1,    #0x429b
cw 0xd
call send_back  ; 16766 (0x417e)

lri $AR1,    #0x82dc
lri $IX1,    #0xb882
lri $WR1,    #0x5bb2
cw 0xd
call send_back  ; 16767 (0x417f)

lri $AR1,    #0x7b0d
lri $IX1,    #0xedb6
lri $WR1,    #0x6393
cw 0xd
call send_back  ; 16768 (0x4180)

lri $AR1,    #0xa9fc
lri $IX1,    #0xfe3e
lri $WR1,    #0x761a
cw 0xd
call send_back  ; 16769 (0x4181)

lri $AR1,    #0x6810
lri $IX1,    #0xd66c
lri $WR1,    #0xacd3
cw 0xd
call send_back  ; 16770 (0x4182)

lri $AR1,    #0x5ee8
lri $IX1,    #0xfa26
lri $WR1,    #0x0c41
cw 0xd
call send_back  ; 16771 (0x4183)

lri $AR1,    #0xe65c
lri $IX1,    #0xde82
lri $WR1,    #0xc387
cw 0xd
call send_back  ; 16772 (0x4184)

lri $AR1,    #0x38be
lri $IX1,    #0xa090
lri $WR1,    #0xe080
cw 0xd
call send_back  ; 16773 (0x4185)

lri $AR1,    #0xa6a9
lri $IX1,    #0x2428
lri $WR1,    #0x77ea
cw 0xd
call send_back  ; 16774 (0x4186)

lri $AR1,    #0x962e
lri $IX1,    #0xe4fe
lri $WR1,    #0x829e
cw 0xd
call send_back  ; 16775 (0x4187)

lri $AR1,    #0xb0b2
lri $IX1,    #0x97d6
lri $WR1,    #0x366d
cw 0xd
call send_back  ; 16776 (0x4188)

lri $AR1,    #0x8e44
lri $IX1,    #0x012a
lri $WR1,    #0x4abc
cw 0xd
call send_back  ; 16777 (0x4189)

lri $AR1,    #0x4cc5
lri $IX1,    #0x020c
lri $WR1,    #0x465c
cw 0xd
call send_back  ; 16778 (0x418a)

lri $AR1,    #0xb4af
lri $IX1,    #0xab8e
lri $WR1,    #0x85bf
cw 0xd
call send_back  ; 16779 (0x418b)

lri $AR1,    #0xb4c5
lri $IX1,    #0x0c9c
lri $WR1,    #0x7e0c
cw 0xd
call send_back  ; 16780 (0x418c)

lri $AR1,    #0x7989
lri $IX1,    #0x456c
lri $WR1,    #0x3b33
cw 0xd
call send_back  ; 16781 (0x418d)

lri $AR1,    #0x94b7
lri $IX1,    #0x1778
lri $WR1,    #0x947d
cw 0xd
call send_back  ; 16782 (0x418e)

lri $AR1,    #0x6ca1
lri $IX1,    #0x8850
lri $WR1,    #0x74b6
cw 0xd
call send_back  ; 16783 (0x418f)

lri $AR1,    #0x62c4
lri $IX1,    #0x20f4
lri $WR1,    #0xb883
cw 0xd
call send_back  ; 16784 (0x4190)

lri $AR1,    #0xac42
lri $IX1,    #0xbb28
lri $WR1,    #0x6ee1
cw 0xd
call send_back  ; 16785 (0x4191)

lri $AR1,    #0x96c7
lri $IX1,    #0x898c
lri $WR1,    #0x9575
cw 0xd
call send_back  ; 16786 (0x4192)

lri $AR1,    #0x4777
lri $IX1,    #0xf6b6
lri $WR1,    #0x9bad
cw 0xd
call send_back  ; 16787 (0x4193)

lri $AR1,    #0x4953
lri $IX1,    #0xfb34
lri $WR1,    #0x6d4b
cw 0xd
call send_back  ; 16788 (0x4194)

lri $AR1,    #0x5bdb
lri $IX1,    #0x81ae
lri $WR1,    #0x5e5e
cw 0xd
call send_back  ; 16789 (0x4195)

lri $AR1,    #0x4239
lri $IX1,    #0x3c1a
lri $WR1,    #0x704b
cw 0xd
call send_back  ; 16790 (0x4196)

lri $AR1,    #0x36d8
lri $IX1,    #0xcc2c
lri $WR1,    #0xe8e6
cw 0xd
call send_back  ; 16791 (0x4197)

lri $AR1,    #0x7e93
lri $IX1,    #0x34ee
lri $WR1,    #0x7a31
cw 0xd
call send_back  ; 16792 (0x4198)

lri $AR1,    #0x4277
lri $IX1,    #0x12c6
lri $WR1,    #0xa2d4
cw 0xd
call send_back  ; 16793 (0x4199)

lri $AR1,    #0x3647
lri $IX1,    #0xf2ae
lri $WR1,    #0x5cd8
cw 0xd
call send_back  ; 16794 (0x419a)

lri $AR1,    #0x85a3
lri $IX1,    #0x3110
lri $WR1,    #0x81b8
cw 0xd
call send_back  ; 16795 (0x419b)

lri $AR1,    #0x6919
lri $IX1,    #0xebea
lri $WR1,    #0x605d
cw 0xd
call send_back  ; 16796 (0x419c)

lri $AR1,    #0x7ff4
lri $IX1,    #0xabaa
lri $WR1,    #0x3b0b
cw 0xd
call send_back  ; 16797 (0x419d)

lri $AR1,    #0x7b24
lri $IX1,    #0x518e
lri $WR1,    #0x20cf
cw 0xd
call send_back  ; 16798 (0x419e)

lri $AR1,    #0xa8f3
lri $IX1,    #0x79c0
lri $WR1,    #0xb795
cw 0xd
call send_back  ; 16799 (0x419f)

lri $AR1,    #0x68f2
lri $IX1,    #0xb328
lri $WR1,    #0x714f
cw 0xd
call send_back  ; 16800 (0x41a0)

lri $AR1,    #0x5ae6
lri $IX1,    #0x9616
lri $WR1,    #0xb05e
cw 0xd
call send_back  ; 16801 (0x41a1)

lri $AR1,    #0x1af9
lri $IX1,    #0xbeb4
lri $WR1,    #0x6cbd
cw 0xd
call send_back  ; 16802 (0x41a2)

lri $AR1,    #0x7116
lri $IX1,    #0xdf8e
lri $WR1,    #0x5d08
cw 0xd
call send_back  ; 16803 (0x41a3)

lri $AR1,    #0x60a7
lri $IX1,    #0x63e2
lri $WR1,    #0x5bde
cw 0xd
call send_back  ; 16804 (0x41a4)

lri $AR1,    #0x6198
lri $IX1,    #0x5134
lri $WR1,    #0x9bc3
cw 0xd
call send_back  ; 16805 (0x41a5)

lri $AR1,    #0x9ae9
lri $IX1,    #0x22d8
lri $WR1,    #0x9904
cw 0xd
call send_back  ; 16806 (0x41a6)

lri $AR1,    #0x1a95
lri $IX1,    #0x19c2
lri $WR1,    #0x7ab0
cw 0xd
call send_back  ; 16807 (0x41a7)

lri $AR1,    #0x9e33
lri $IX1,    #0xce84
lri $WR1,    #0x1938
cw 0xd
call send_back  ; 16808 (0x41a8)

lri $AR1,    #0x6b0f
lri $IX1,    #0x9aac
lri $WR1,    #0x8ac8
cw 0xd
call send_back  ; 16809 (0x41a9)

lri $AR1,    #0xd40c
lri $IX1,    #0x8a62
lri $WR1,    #0x42e0
cw 0xd
call send_back  ; 16810 (0x41aa)

lri $AR1,    #0x3f2f
lri $IX1,    #0xd6a0
lri $WR1,    #0x6447
cw 0xd
call send_back  ; 16811 (0x41ab)

lri $AR1,    #0xa40f
lri $IX1,    #0x4bba
lri $WR1,    #0x39e6
cw 0xd
call send_back  ; 16812 (0x41ac)

lri $AR1,    #0x7808
lri $IX1,    #0x579a
lri $WR1,    #0x4492
cw 0xd
call send_back  ; 16813 (0x41ad)

lri $AR1,    #0xac78
lri $IX1,    #0xa678
lri $WR1,    #0xc963
cw 0xd
call send_back  ; 16814 (0x41ae)

lri $AR1,    #0x26de
lri $IX1,    #0x1462
lri $WR1,    #0xad9f
cw 0xd
call send_back  ; 16815 (0x41af)

lri $AR1,    #0x5229
lri $IX1,    #0x2d64
lri $WR1,    #0x92c6
cw 0xd
call send_back  ; 16816 (0x41b0)

lri $AR1,    #0x73f5
lri $IX1,    #0x5d98
lri $WR1,    #0x6ede
cw 0xd
call send_back  ; 16817 (0x41b1)

lri $AR1,    #0xb035
lri $IX1,    #0x2df6
lri $WR1,    #0xaa7a
cw 0xd
call send_back  ; 16818 (0x41b2)

lri $AR1,    #0x78d2
lri $IX1,    #0x5a3a
lri $WR1,    #0x7fa0
cw 0xd
call send_back  ; 16819 (0x41b3)

lri $AR1,    #0xeee5
lri $IX1,    #0x0f9a
lri $WR1,    #0x4a10
cw 0xd
call send_back  ; 16820 (0x41b4)

lri $AR1,    #0x5605
lri $IX1,    #0x1bb2
lri $WR1,    #0x1301
cw 0xd
call send_back  ; 16821 (0x41b5)

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