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

lri $AR1,    #0x8a37
lri $IX1,    #0xbd82
lri $WR1,    #0xc122
cw 0xd
call send_back  ; 28072 (0x6da8)

lri $AR1,    #0x6aa3
lri $IX1,    #0xe6bc
lri $WR1,    #0x7874
cw 0xd
call send_back  ; 28073 (0x6da9)

lri $AR1,    #0x661d
lri $IX1,    #0xa1d4
lri $WR1,    #0xa36b
cw 0xd
call send_back  ; 28074 (0x6daa)

lri $AR1,    #0x71c8
lri $IX1,    #0x6fde
lri $WR1,    #0x4c6d
cw 0xd
call send_back  ; 28075 (0x6dab)

lri $AR1,    #0x975c
lri $IX1,    #0x8052
lri $WR1,    #0xd502
cw 0xd
call send_back  ; 28076 (0x6dac)

lri $AR1,    #0x6956
lri $IX1,    #0x8736
lri $WR1,    #0xaba0
cw 0xd
call send_back  ; 28077 (0x6dad)

lri $AR1,    #0x4932
lri $IX1,    #0xe1e4
lri $WR1,    #0xc200
cw 0xd
call send_back  ; 28078 (0x6dae)

lri $AR1,    #0x6791
lri $IX1,    #0xd08a
lri $WR1,    #0x9106
cw 0xd
call send_back  ; 28079 (0x6daf)

lri $AR1,    #0x9d80
lri $IX1,    #0xfe54
lri $WR1,    #0x1cd4
cw 0xd
call send_back  ; 28080 (0x6db0)

lri $AR1,    #0xc9be
lri $IX1,    #0x797c
lri $WR1,    #0x350e
cw 0xd
call send_back  ; 28081 (0x6db1)

lri $AR1,    #0x9c59
lri $IX1,    #0x781c
lri $WR1,    #0x7ae9
cw 0xd
call send_back  ; 28082 (0x6db2)

lri $AR1,    #0x8e5f
lri $IX1,    #0xb60c
lri $WR1,    #0x6809
cw 0xd
call send_back  ; 28083 (0x6db3)

lri $AR1,    #0x8b06
lri $IX1,    #0xbba4
lri $WR1,    #0x86d0
cw 0xd
call send_back  ; 28084 (0x6db4)

lri $AR1,    #0x6b08
lri $IX1,    #0xd4a0
lri $WR1,    #0x2613
cw 0xd
call send_back  ; 28085 (0x6db5)

lri $AR1,    #0x3293
lri $IX1,    #0xca12
lri $WR1,    #0x6fe8
cw 0xd
call send_back  ; 28086 (0x6db6)

lri $AR1,    #0x659a
lri $IX1,    #0x718e
lri $WR1,    #0xcc78
cw 0xd
call send_back  ; 28087 (0x6db7)

lri $AR1,    #0x9dce
lri $IX1,    #0xb78e
lri $WR1,    #0x3f84
cw 0xd
call send_back  ; 28088 (0x6db8)

lri $AR1,    #0xb918
lri $IX1,    #0xd226
lri $WR1,    #0x589d
cw 0xd
call send_back  ; 28089 (0x6db9)

lri $AR1,    #0x56db
lri $IX1,    #0xa510
lri $WR1,    #0xbb98
cw 0xd
call send_back  ; 28090 (0x6dba)

lri $AR1,    #0x4de2
lri $IX1,    #0xef34
lri $WR1,    #0x986a
cw 0xd
call send_back  ; 28091 (0x6dbb)

lri $AR1,    #0xac30
lri $IX1,    #0x7d9c
lri $WR1,    #0x7eda
cw 0xd
call send_back  ; 28092 (0x6dbc)

lri $AR1,    #0x8d8a
lri $IX1,    #0x370e
lri $WR1,    #0x3431
cw 0xd
call send_back  ; 28093 (0x6dbd)

lri $AR1,    #0x8524
lri $IX1,    #0x3f1a
lri $WR1,    #0x6e6e
cw 0xd
call send_back  ; 28094 (0x6dbe)

lri $AR1,    #0x5a10
lri $IX1,    #0x8f16
lri $WR1,    #0x7a12
cw 0xd
call send_back  ; 28095 (0x6dbf)

lri $AR1,    #0x4df6
lri $IX1,    #0x1690
lri $WR1,    #0xb50f
cw 0xd
call send_back  ; 28096 (0x6dc0)

lri $AR1,    #0xf0b3
lri $IX1,    #0x9cca
lri $WR1,    #0x52eb
cw 0xd
call send_back  ; 28097 (0x6dc1)

lri $AR1,    #0x8356
lri $IX1,    #0x17ee
lri $WR1,    #0x6bb3
cw 0xd
call send_back  ; 28098 (0x6dc2)

lri $AR1,    #0x8034
lri $IX1,    #0xde46
lri $WR1,    #0x48b9
cw 0xd
call send_back  ; 28099 (0x6dc3)

lri $AR1,    #0x6569
lri $IX1,    #0xd95e
lri $WR1,    #0x97ba
cw 0xd
call send_back  ; 28100 (0x6dc4)

lri $AR1,    #0xba9f
lri $IX1,    #0x9a4e
lri $WR1,    #0x8682
cw 0xd
call send_back  ; 28101 (0x6dc5)

lri $AR1,    #0x5a56
lri $IX1,    #0xba00
lri $WR1,    #0xa68c
cw 0xd
call send_back  ; 28102 (0x6dc6)

lri $AR1,    #0xaa95
lri $IX1,    #0x2fd2
lri $WR1,    #0xb9bf
cw 0xd
call send_back  ; 28103 (0x6dc7)

lri $AR1,    #0x8847
lri $IX1,    #0x1c3a
lri $WR1,    #0x8ecb
cw 0xd
call send_back  ; 28104 (0x6dc8)

lri $AR1,    #0x9411
lri $IX1,    #0xccfc
lri $WR1,    #0x3d42
cw 0xd
call send_back  ; 28105 (0x6dc9)

lri $AR1,    #0xaefb
lri $IX1,    #0x5b7c
lri $WR1,    #0xbef4
cw 0xd
call send_back  ; 28106 (0x6dca)

lri $AR1,    #0xa8b4
lri $IX1,    #0x15b8
lri $WR1,    #0x759e
cw 0xd
call send_back  ; 28107 (0x6dcb)

lri $AR1,    #0x48c6
lri $IX1,    #0xc58c
lri $WR1,    #0x8189
cw 0xd
call send_back  ; 28108 (0x6dcc)

lri $AR1,    #0xd787
lri $IX1,    #0xc1b4
lri $WR1,    #0xc711
cw 0xd
call send_back  ; 28109 (0x6dcd)

lri $AR1,    #0x7b1b
lri $IX1,    #0x5f46
lri $WR1,    #0x7ebd
cw 0xd
call send_back  ; 28110 (0x6dce)

lri $AR1,    #0x804a
lri $IX1,    #0xb9f4
lri $WR1,    #0x8ce9
cw 0xd
call send_back  ; 28111 (0x6dcf)

lri $AR1,    #0x5e95
lri $IX1,    #0xbcf2
lri $WR1,    #0x8394
cw 0xd
call send_back  ; 28112 (0x6dd0)

lri $AR1,    #0xd235
lri $IX1,    #0xbdcc
lri $WR1,    #0x7a6c
cw 0xd
call send_back  ; 28113 (0x6dd1)

lri $AR1,    #0xa67d
lri $IX1,    #0xb5fa
lri $WR1,    #0xb693
cw 0xd
call send_back  ; 28114 (0x6dd2)

lri $AR1,    #0x1e46
lri $IX1,    #0x1778
lri $WR1,    #0xcd46
cw 0xd
call send_back  ; 28115 (0x6dd3)

lri $AR1,    #0x2fd8
lri $IX1,    #0x3c44
lri $WR1,    #0x61e3
cw 0xd
call send_back  ; 28116 (0x6dd4)

lri $AR1,    #0x6507
lri $IX1,    #0x6812
lri $WR1,    #0xb969
cw 0xd
call send_back  ; 28117 (0x6dd5)

lri $AR1,    #0x7fe5
lri $IX1,    #0x1eee
lri $WR1,    #0x7afa
cw 0xd
call send_back  ; 28118 (0x6dd6)

lri $AR1,    #0x67d1
lri $IX1,    #0x132e
lri $WR1,    #0x7678
cw 0xd
call send_back  ; 28119 (0x6dd7)

lri $AR1,    #0xba2f
lri $IX1,    #0x0096
lri $WR1,    #0x0fc4
cw 0xd
call send_back  ; 28120 (0x6dd8)

lri $AR1,    #0x85a0
lri $IX1,    #0x51ce
lri $WR1,    #0xd6b3
cw 0xd
call send_back  ; 28121 (0x6dd9)

lri $AR1,    #0x960e
lri $IX1,    #0x492a
lri $WR1,    #0x414c
cw 0xd
call send_back  ; 28122 (0x6dda)

lri $AR1,    #0xab4c
lri $IX1,    #0x74f8
lri $WR1,    #0x4f5a
cw 0xd
call send_back  ; 28123 (0x6ddb)

lri $AR1,    #0x5bb1
lri $IX1,    #0x5b2c
lri $WR1,    #0x73e0
cw 0xd
call send_back  ; 28124 (0x6ddc)

lri $AR1,    #0x9f5e
lri $IX1,    #0x5fbc
lri $WR1,    #0x5a93
cw 0xd
call send_back  ; 28125 (0x6ddd)

lri $AR1,    #0x70a8
lri $IX1,    #0xd478
lri $WR1,    #0x5cbe
cw 0xd
call send_back  ; 28126 (0x6dde)

lri $AR1,    #0x714f
lri $IX1,    #0xc0b2
lri $WR1,    #0x1ad9
cw 0xd
call send_back  ; 28127 (0x6ddf)

lri $AR1,    #0x7bea
lri $IX1,    #0x228a
lri $WR1,    #0x9536
cw 0xd
call send_back  ; 28128 (0x6de0)

lri $AR1,    #0x5454
lri $IX1,    #0x1312
lri $WR1,    #0x27e1
cw 0xd
call send_back  ; 28129 (0x6de1)

lri $AR1,    #0x295e
lri $IX1,    #0x324e
lri $WR1,    #0x5b58
cw 0xd
call send_back  ; 28130 (0x6de2)

lri $AR1,    #0x2da8
lri $IX1,    #0xef2e
lri $WR1,    #0x6d02
cw 0xd
call send_back  ; 28131 (0x6de3)

lri $AR1,    #0x94e3
lri $IX1,    #0x8366
lri $WR1,    #0xa81b
cw 0xd
call send_back  ; 28132 (0x6de4)

lri $AR1,    #0x9e4f
lri $IX1,    #0xb280
lri $WR1,    #0x8118
cw 0xd
call send_back  ; 28133 (0x6de5)

lri $AR1,    #0x64d3
lri $IX1,    #0x66e6
lri $WR1,    #0xc301
cw 0xd
call send_back  ; 28134 (0x6de6)

lri $AR1,    #0xd062
lri $IX1,    #0x0734
lri $WR1,    #0x5ff4
cw 0xd
call send_back  ; 28135 (0x6de7)

lri $AR1,    #0x9c17
lri $IX1,    #0xb1b0
lri $WR1,    #0x7b41
cw 0xd
call send_back  ; 28136 (0x6de8)

lri $AR1,    #0x4fd3
lri $IX1,    #0x532c
lri $WR1,    #0x6d41
cw 0xd
call send_back  ; 28137 (0x6de9)

lri $AR1,    #0xaba1
lri $IX1,    #0xaa2a
lri $WR1,    #0x2e72
cw 0xd
call send_back  ; 28138 (0x6dea)

lri $AR1,    #0xb6bb
lri $IX1,    #0x9688
lri $WR1,    #0x28ea
cw 0xd
call send_back  ; 28139 (0x6deb)

lri $AR1,    #0xcb7f
lri $IX1,    #0x7990
lri $WR1,    #0xc4ae
cw 0xd
call send_back  ; 28140 (0x6dec)

lri $AR1,    #0x751d
lri $IX1,    #0xc1b2
lri $WR1,    #0x7d04
cw 0xd
call send_back  ; 28141 (0x6ded)

lri $AR1,    #0xa35a
lri $IX1,    #0xe8bc
lri $WR1,    #0x4a3f
cw 0xd
call send_back  ; 28142 (0x6dee)

lri $AR1,    #0x7c2e
lri $IX1,    #0x0ae4
lri $WR1,    #0x8d34
cw 0xd
call send_back  ; 28143 (0x6def)

lri $AR1,    #0x4a88
lri $IX1,    #0xb068
lri $WR1,    #0xcec2
cw 0xd
call send_back  ; 28144 (0x6df0)

lri $AR1,    #0x951f
lri $IX1,    #0x4b2c
lri $WR1,    #0x6f9c
cw 0xd
call send_back  ; 28145 (0x6df1)

lri $AR1,    #0xa789
lri $IX1,    #0x24fc
lri $WR1,    #0x31d3
cw 0xd
call send_back  ; 28146 (0x6df2)

lri $AR1,    #0x2b68
lri $IX1,    #0xeafa
lri $WR1,    #0x373c
cw 0xd
call send_back  ; 28147 (0x6df3)

lri $AR1,    #0xb718
lri $IX1,    #0x85d0
lri $WR1,    #0x8533
cw 0xd
call send_back  ; 28148 (0x6df4)

lri $AR1,    #0x5289
lri $IX1,    #0x6626
lri $WR1,    #0xb7df
cw 0xd
call send_back  ; 28149 (0x6df5)

lri $AR1,    #0xc2b0
lri $IX1,    #0xb7fc
lri $WR1,    #0xac72
cw 0xd
call send_back  ; 28150 (0x6df6)

lri $AR1,    #0xcf54
lri $IX1,    #0xef74
lri $WR1,    #0xeb83
cw 0xd
call send_back  ; 28151 (0x6df7)

lri $AR1,    #0x8e8f
lri $IX1,    #0xb498
lri $WR1,    #0x6212
cw 0xd
call send_back  ; 28152 (0x6df8)

lri $AR1,    #0x6cbb
lri $IX1,    #0x3ba4
lri $WR1,    #0x613c
cw 0xd
call send_back  ; 28153 (0x6df9)

lri $AR1,    #0x8747
lri $IX1,    #0x728a
lri $WR1,    #0xca35
cw 0xd
call send_back  ; 28154 (0x6dfa)

lri $AR1,    #0x6412
lri $IX1,    #0xfbf6
lri $WR1,    #0x1da1
cw 0xd
call send_back  ; 28155 (0x6dfb)

lri $AR1,    #0x76c1
lri $IX1,    #0x93c8
lri $WR1,    #0x3ac4
cw 0xd
call send_back  ; 28156 (0x6dfc)

lri $AR1,    #0xa0d5
lri $IX1,    #0x102a
lri $WR1,    #0xd4b6
cw 0xd
call send_back  ; 28157 (0x6dfd)

lri $AR1,    #0x48c4
lri $IX1,    #0x9e28
lri $WR1,    #0x6112
cw 0xd
call send_back  ; 28158 (0x6dfe)

lri $AR1,    #0xa7f8
lri $IX1,    #0xf816
lri $WR1,    #0x654a
cw 0xd
call send_back  ; 28159 (0x6dff)

lri $AR1,    #0xe6fe
lri $IX1,    #0x07a0
lri $WR1,    #0x6d0a
cw 0xd
call send_back  ; 28160 (0x6e00)

lri $AR1,    #0x6aa9
lri $IX1,    #0x8caa
lri $WR1,    #0x7dea
cw 0xd
call send_back  ; 28161 (0x6e01)

lri $AR1,    #0xb48e
lri $IX1,    #0xde12
lri $WR1,    #0x69d4
cw 0xd
call send_back  ; 28162 (0x6e02)

lri $AR1,    #0x4c98
lri $IX1,    #0x886c
lri $WR1,    #0xd345
cw 0xd
call send_back  ; 28163 (0x6e03)

lri $AR1,    #0xb10b
lri $IX1,    #0x5298
lri $WR1,    #0xebfb
cw 0xd
call send_back  ; 28164 (0x6e04)

lri $AR1,    #0x25c4
lri $IX1,    #0xe792
lri $WR1,    #0x500f
cw 0xd
call send_back  ; 28165 (0x6e05)

lri $AR1,    #0xcb0a
lri $IX1,    #0xf040
lri $WR1,    #0xbd1c
cw 0xd
call send_back  ; 28166 (0x6e06)

lri $AR1,    #0x87ba
lri $IX1,    #0xa77e
lri $WR1,    #0xa673
cw 0xd
call send_back  ; 28167 (0x6e07)

lri $AR1,    #0x6a26
lri $IX1,    #0xc660
lri $WR1,    #0xad05
cw 0xd
call send_back  ; 28168 (0x6e08)

lri $AR1,    #0x8e69
lri $IX1,    #0xedca
lri $WR1,    #0xaaf2
cw 0xd
call send_back  ; 28169 (0x6e09)

lri $AR1,    #0xb88f
lri $IX1,    #0x4e5a
lri $WR1,    #0x3066
cw 0xd
call send_back  ; 28170 (0x6e0a)

lri $AR1,    #0x845e
lri $IX1,    #0x1ed0
lri $WR1,    #0x60cf
cw 0xd
call send_back  ; 28171 (0x6e0b)

lri $AR1,    #0x3407
lri $IX1,    #0x54e2
lri $WR1,    #0x74f1
cw 0xd
call send_back  ; 28172 (0x6e0c)

lri $AR1,    #0xa296
lri $IX1,    #0xebb0
lri $WR1,    #0x9ff7
cw 0xd
call send_back  ; 28173 (0x6e0d)

lri $AR1,    #0x8e72
lri $IX1,    #0xaec6
lri $WR1,    #0x9306
cw 0xd
call send_back  ; 28174 (0x6e0e)

lri $AR1,    #0xb3be
lri $IX1,    #0xdfdc
lri $WR1,    #0x3c69
cw 0xd
call send_back  ; 28175 (0x6e0f)

lri $AR1,    #0x65db
lri $IX1,    #0x013c
lri $WR1,    #0x84dd
cw 0xd
call send_back  ; 28176 (0x6e10)

lri $AR1,    #0xe2ff
lri $IX1,    #0x761a
lri $WR1,    #0x971c
cw 0xd
call send_back  ; 28177 (0x6e11)

lri $AR1,    #0x5bfd
lri $IX1,    #0x65a2
lri $WR1,    #0x8b29
cw 0xd
call send_back  ; 28178 (0x6e12)

lri $AR1,    #0x7e47
lri $IX1,    #0x3d14
lri $WR1,    #0x806b
cw 0xd
call send_back  ; 28179 (0x6e13)

lri $AR1,    #0x9549
lri $IX1,    #0x30c8
lri $WR1,    #0xa742
cw 0xd
call send_back  ; 28180 (0x6e14)

lri $AR1,    #0x740f
lri $IX1,    #0x1356
lri $WR1,    #0x53f8
cw 0xd
call send_back  ; 28181 (0x6e15)

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