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

lri $AR1,    #0x5036
lri $IX1,    #0x7904
lri $WR1,    #0x68e4
cw 0x15
call send_back  ; 42162 (0xa4b2)

lri $AR1,    #0x6a7f
lri $IX1,    #0x2c7c
lri $WR1,    #0x8a7d
cw 0x15
call send_back  ; 42163 (0xa4b3)

lri $AR1,    #0xafe0
lri $IX1,    #0xde1e
lri $WR1,    #0x6530
cw 0x15
call send_back  ; 42164 (0xa4b4)

lri $AR1,    #0x537a
lri $IX1,    #0x0484
lri $WR1,    #0x9edb
cw 0x15
call send_back  ; 42165 (0xa4b5)

lri $AR1,    #0x8ba4
lri $IX1,    #0x8336
lri $WR1,    #0x7759
cw 0x15
call send_back  ; 42166 (0xa4b6)

lri $AR1,    #0x703b
lri $IX1,    #0x4176
lri $WR1,    #0x9d5e
cw 0x15
call send_back  ; 42167 (0xa4b7)

lri $AR1,    #0x8a95
lri $IX1,    #0x55e4
lri $WR1,    #0x2df3
cw 0x15
call send_back  ; 42168 (0xa4b8)

lri $AR1,    #0x6e02
lri $IX1,    #0x99c2
lri $WR1,    #0x76af
cw 0x15
call send_back  ; 42169 (0xa4b9)

lri $AR1,    #0x8f11
lri $IX1,    #0x1af0
lri $WR1,    #0x8031
cw 0x15
call send_back  ; 42170 (0xa4ba)

lri $AR1,    #0x8374
lri $IX1,    #0x545c
lri $WR1,    #0xb7f3
cw 0x15
call send_back  ; 42171 (0xa4bb)

lri $AR1,    #0xbbd1
lri $IX1,    #0x7114
lri $WR1,    #0xa607
cw 0x15
call send_back  ; 42172 (0xa4bc)

lri $AR1,    #0x845d
lri $IX1,    #0x46ae
lri $WR1,    #0xd4bd
cw 0x15
call send_back  ; 42173 (0xa4bd)

lri $AR1,    #0x886e
lri $IX1,    #0x482c
lri $WR1,    #0xcddc
cw 0x15
call send_back  ; 42174 (0xa4be)

lri $AR1,    #0x9902
lri $IX1,    #0x9316
lri $WR1,    #0xb26e
cw 0x15
call send_back  ; 42175 (0xa4bf)

lri $AR1,    #0x6d65
lri $IX1,    #0x84f2
lri $WR1,    #0x57aa
cw 0x15
call send_back  ; 42176 (0xa4c0)

lri $AR1,    #0x60df
lri $IX1,    #0x1fd4
lri $WR1,    #0xdd22
cw 0x15
call send_back  ; 42177 (0xa4c1)

lri $AR1,    #0xafa5
lri $IX1,    #0x0930
lri $WR1,    #0xbda8
cw 0x15
call send_back  ; 42178 (0xa4c2)

lri $AR1,    #0xc8f6
lri $IX1,    #0x3e90
lri $WR1,    #0xce17
cw 0x15
call send_back  ; 42179 (0xa4c3)

lri $AR1,    #0x5395
lri $IX1,    #0xd882
lri $WR1,    #0x5274
cw 0x15
call send_back  ; 42180 (0xa4c4)

lri $AR1,    #0x5d93
lri $IX1,    #0x7c46
lri $WR1,    #0x2b93
cw 0x15
call send_back  ; 42181 (0xa4c5)

lri $AR1,    #0xbf99
lri $IX1,    #0x9186
lri $WR1,    #0x7cb8
cw 0x15
call send_back  ; 42182 (0xa4c6)

lri $AR1,    #0x5f97
lri $IX1,    #0x11c2
lri $WR1,    #0x6a4f
cw 0x15
call send_back  ; 42183 (0xa4c7)

lri $AR1,    #0x961f
lri $IX1,    #0xf396
lri $WR1,    #0x1854
cw 0x15
call send_back  ; 42184 (0xa4c8)

lri $AR1,    #0xe53e
lri $IX1,    #0xec9a
lri $WR1,    #0xb85d
cw 0x15
call send_back  ; 42185 (0xa4c9)

lri $AR1,    #0xcf24
lri $IX1,    #0xa902
lri $WR1,    #0xa506
cw 0x15
call send_back  ; 42186 (0xa4ca)

lri $AR1,    #0xce67
lri $IX1,    #0xc8a6
lri $WR1,    #0x9992
cw 0x15
call send_back  ; 42187 (0xa4cb)

lri $AR1,    #0x993a
lri $IX1,    #0x0dc4
lri $WR1,    #0x6a91
cw 0x15
call send_back  ; 42188 (0xa4cc)

lri $AR1,    #0x545d
lri $IX1,    #0x51f6
lri $WR1,    #0x9d67
cw 0x15
call send_back  ; 42189 (0xa4cd)

lri $AR1,    #0x8a17
lri $IX1,    #0x2ac0
lri $WR1,    #0xba65
cw 0x15
call send_back  ; 42190 (0xa4ce)

lri $AR1,    #0x7d1e
lri $IX1,    #0xc746
lri $WR1,    #0x966e
cw 0x15
call send_back  ; 42191 (0xa4cf)

lri $AR1,    #0xa695
lri $IX1,    #0x9d6e
lri $WR1,    #0x76ca
cw 0x15
call send_back  ; 42192 (0xa4d0)

lri $AR1,    #0x3a23
lri $IX1,    #0x1502
lri $WR1,    #0x3b2d
cw 0x15
call send_back  ; 42193 (0xa4d1)

lri $AR1,    #0x4a3e
lri $IX1,    #0xa422
lri $WR1,    #0x8782
cw 0x15
call send_back  ; 42194 (0xa4d2)

lri $AR1,    #0x7aaa
lri $IX1,    #0xe0ae
lri $WR1,    #0x988e
cw 0x15
call send_back  ; 42195 (0xa4d3)

lri $AR1,    #0x7655
lri $IX1,    #0x06ba
lri $WR1,    #0x63f7
cw 0x15
call send_back  ; 42196 (0xa4d4)

lri $AR1,    #0x797d
lri $IX1,    #0x7cee
lri $WR1,    #0x3dc3
cw 0x15
call send_back  ; 42197 (0xa4d5)

lri $AR1,    #0x905b
lri $IX1,    #0x13d8
lri $WR1,    #0x5adf
cw 0x15
call send_back  ; 42198 (0xa4d6)

lri $AR1,    #0x8e36
lri $IX1,    #0x3df4
lri $WR1,    #0x89b3
cw 0x15
call send_back  ; 42199 (0xa4d7)

lri $AR1,    #0x1819
lri $IX1,    #0x6a98
lri $WR1,    #0x3f67
cw 0x15
call send_back  ; 42200 (0xa4d8)

lri $AR1,    #0xca0f
lri $IX1,    #0x2676
lri $WR1,    #0x81d9
cw 0x15
call send_back  ; 42201 (0xa4d9)

lri $AR1,    #0x5d28
lri $IX1,    #0xc8d2
lri $WR1,    #0xa3d8
cw 0x15
call send_back  ; 42202 (0xa4da)

lri $AR1,    #0xa821
lri $IX1,    #0x6534
lri $WR1,    #0x9ab6
cw 0x15
call send_back  ; 42203 (0xa4db)

lri $AR1,    #0x3bf7
lri $IX1,    #0x95c2
lri $WR1,    #0x49c1
cw 0x15
call send_back  ; 42204 (0xa4dc)

lri $AR1,    #0x9934
lri $IX1,    #0x9adc
lri $WR1,    #0x59b3
cw 0x15
call send_back  ; 42205 (0xa4dd)

lri $AR1,    #0x6a57
lri $IX1,    #0x614c
lri $WR1,    #0x6fa0
cw 0x15
call send_back  ; 42206 (0xa4de)

lri $AR1,    #0x3304
lri $IX1,    #0x6096
lri $WR1,    #0x3889
cw 0x15
call send_back  ; 42207 (0xa4df)

lri $AR1,    #0xdb7d
lri $IX1,    #0x0fb4
lri $WR1,    #0xa405
cw 0x15
call send_back  ; 42208 (0xa4e0)

lri $AR1,    #0xcb04
lri $IX1,    #0x06ea
lri $WR1,    #0x322c
cw 0x15
call send_back  ; 42209 (0xa4e1)

lri $AR1,    #0xc392
lri $IX1,    #0xe9cc
lri $WR1,    #0xc641
cw 0x15
call send_back  ; 42210 (0xa4e2)

lri $AR1,    #0xc4ae
lri $IX1,    #0x0546
lri $WR1,    #0x6134
cw 0x15
call send_back  ; 42211 (0xa4e3)

lri $AR1,    #0xc2b2
lri $IX1,    #0x49b8
lri $WR1,    #0x5c89
cw 0x15
call send_back  ; 42212 (0xa4e4)

lri $AR1,    #0x5b47
lri $IX1,    #0x11ee
lri $WR1,    #0x97bd
cw 0x15
call send_back  ; 42213 (0xa4e5)

lri $AR1,    #0x3f7b
lri $IX1,    #0x1c1c
lri $WR1,    #0xe7a1
cw 0x15
call send_back  ; 42214 (0xa4e6)

lri $AR1,    #0xaf28
lri $IX1,    #0x5a7a
lri $WR1,    #0x58d9
cw 0x15
call send_back  ; 42215 (0xa4e7)

lri $AR1,    #0x7913
lri $IX1,    #0xeddc
lri $WR1,    #0x5bfe
cw 0x15
call send_back  ; 42216 (0xa4e8)

lri $AR1,    #0x5e84
lri $IX1,    #0xd4c8
lri $WR1,    #0x9b70
cw 0x15
call send_back  ; 42217 (0xa4e9)

lri $AR1,    #0x58ad
lri $IX1,    #0xbe50
lri $WR1,    #0xe878
cw 0x15
call send_back  ; 42218 (0xa4ea)

lri $AR1,    #0x71b3
lri $IX1,    #0x2072
lri $WR1,    #0x3eb0
cw 0x15
call send_back  ; 42219 (0xa4eb)

lri $AR1,    #0x8a97
lri $IX1,    #0x4dfc
lri $WR1,    #0x326a
cw 0x15
call send_back  ; 42220 (0xa4ec)

lri $AR1,    #0xe2f6
lri $IX1,    #0xf0d4
lri $WR1,    #0x97ee
cw 0x15
call send_back  ; 42221 (0xa4ed)

lri $AR1,    #0x66bb
lri $IX1,    #0x21c4
lri $WR1,    #0xaf5c
cw 0x15
call send_back  ; 42222 (0xa4ee)

lri $AR1,    #0x89c5
lri $IX1,    #0x7772
lri $WR1,    #0x820e
cw 0x15
call send_back  ; 42223 (0xa4ef)

lri $AR1,    #0xb0ad
lri $IX1,    #0xf2b2
lri $WR1,    #0x442c
cw 0x15
call send_back  ; 42224 (0xa4f0)

lri $AR1,    #0x3192
lri $IX1,    #0xc6fe
lri $WR1,    #0xd670
cw 0x15
call send_back  ; 42225 (0xa4f1)

lri $AR1,    #0xb72f
lri $IX1,    #0xc21c
lri $WR1,    #0xd1b5
cw 0x15
call send_back  ; 42226 (0xa4f2)

lri $AR1,    #0x2410
lri $IX1,    #0xa6c8
lri $WR1,    #0xb757
cw 0x15
call send_back  ; 42227 (0xa4f3)

lri $AR1,    #0xdb39
lri $IX1,    #0x4a6a
lri $WR1,    #0x56fb
cw 0x15
call send_back  ; 42228 (0xa4f4)

lri $AR1,    #0x6f03
lri $IX1,    #0xceb8
lri $WR1,    #0x93cf
cw 0x15
call send_back  ; 42229 (0xa4f5)

lri $AR1,    #0x8689
lri $IX1,    #0x0444
lri $WR1,    #0xd0ca
cw 0x15
call send_back  ; 42230 (0xa4f6)

lri $AR1,    #0x2d7d
lri $IX1,    #0x03c8
lri $WR1,    #0x4d10
cw 0x15
call send_back  ; 42231 (0xa4f7)

lri $AR1,    #0x999d
lri $IX1,    #0x7852
lri $WR1,    #0x7ee8
cw 0x15
call send_back  ; 42232 (0xa4f8)

lri $AR1,    #0x9cae
lri $IX1,    #0x0cfc
lri $WR1,    #0xe575
cw 0x15
call send_back  ; 42233 (0xa4f9)

lri $AR1,    #0x5946
lri $IX1,    #0x156e
lri $WR1,    #0xb6b5
cw 0x15
call send_back  ; 42234 (0xa4fa)

lri $AR1,    #0x442a
lri $IX1,    #0xf8d4
lri $WR1,    #0x20d3
cw 0x15
call send_back  ; 42235 (0xa4fb)

lri $AR1,    #0x63ac
lri $IX1,    #0x4362
lri $WR1,    #0xeb59
cw 0x15
call send_back  ; 42236 (0xa4fc)

lri $AR1,    #0x79b0
lri $IX1,    #0xab4a
lri $WR1,    #0x7e6a
cw 0x15
call send_back  ; 42237 (0xa4fd)

lri $AR1,    #0xb4d6
lri $IX1,    #0xea18
lri $WR1,    #0x9369
cw 0x15
call send_back  ; 42238 (0xa4fe)

lri $AR1,    #0x8872
lri $IX1,    #0x2c4c
lri $WR1,    #0xf44d
cw 0x15
call send_back  ; 42239 (0xa4ff)

lri $AR1,    #0xc2b4
lri $IX1,    #0x255a
lri $WR1,    #0x940e
cw 0x15
call send_back  ; 42240 (0xa500)

lri $AR1,    #0x43dc
lri $IX1,    #0xaeae
lri $WR1,    #0xd449
cw 0x15
call send_back  ; 42241 (0xa501)

lri $AR1,    #0x38a5
lri $IX1,    #0x5d04
lri $WR1,    #0x59b0
cw 0x15
call send_back  ; 42242 (0xa502)

lri $AR1,    #0x4de2
lri $IX1,    #0xc7a4
lri $WR1,    #0xc24a
cw 0x15
call send_back  ; 42243 (0xa503)

lri $AR1,    #0x5a7e
lri $IX1,    #0x79c2
lri $WR1,    #0xc61c
cw 0x15
call send_back  ; 42244 (0xa504)

lri $AR1,    #0xd8bf
lri $IX1,    #0xceba
lri $WR1,    #0xa448
cw 0x15
call send_back  ; 42245 (0xa505)

lri $AR1,    #0x1715
lri $IX1,    #0x6e40
lri $WR1,    #0x9c2e
cw 0x15
call send_back  ; 42246 (0xa506)

lri $AR1,    #0xac45
lri $IX1,    #0xde4c
lri $WR1,    #0x73ab
cw 0x15
call send_back  ; 42247 (0xa507)

lri $AR1,    #0x5246
lri $IX1,    #0xcce8
lri $WR1,    #0x90f6
cw 0x15
call send_back  ; 42248 (0xa508)

lri $AR1,    #0xb69d
lri $IX1,    #0x6c84
lri $WR1,    #0xd836
cw 0x15
call send_back  ; 42249 (0xa509)

lri $AR1,    #0x6e7f
lri $IX1,    #0xa21c
lri $WR1,    #0x2a60
cw 0x15
call send_back  ; 42250 (0xa50a)

lri $AR1,    #0x709a
lri $IX1,    #0xf4c6
lri $WR1,    #0xf469
cw 0x15
call send_back  ; 42251 (0xa50b)

lri $AR1,    #0x9dc4
lri $IX1,    #0x4ae6
lri $WR1,    #0x9360
cw 0x15
call send_back  ; 42252 (0xa50c)

lri $AR1,    #0x5d73
lri $IX1,    #0xa9b2
lri $WR1,    #0xcb75
cw 0x15
call send_back  ; 42253 (0xa50d)

lri $AR1,    #0x8237
lri $IX1,    #0x8036
lri $WR1,    #0x8d97
cw 0x15
call send_back  ; 42254 (0xa50e)

lri $AR1,    #0x6e19
lri $IX1,    #0xa796
lri $WR1,    #0x2897
cw 0x15
call send_back  ; 42255 (0xa50f)

lri $AR1,    #0x2624
lri $IX1,    #0x4e9a
lri $WR1,    #0xa87b
cw 0x15
call send_back  ; 42256 (0xa510)

lri $AR1,    #0x8ff4
lri $IX1,    #0x9f6c
lri $WR1,    #0x7005
cw 0x15
call send_back  ; 42257 (0xa511)

lri $AR1,    #0x5386
lri $IX1,    #0x3274
lri $WR1,    #0xe5ff
cw 0x15
call send_back  ; 42258 (0xa512)

lri $AR1,    #0x2f32
lri $IX1,    #0x724a
lri $WR1,    #0x415b
cw 0x15
call send_back  ; 42259 (0xa513)

lri $AR1,    #0xd30e
lri $IX1,    #0x10ae
lri $WR1,    #0x74be
cw 0x15
call send_back  ; 42260 (0xa514)

lri $AR1,    #0x748d
lri $IX1,    #0xb562
lri $WR1,    #0x537a
cw 0x15
call send_back  ; 42261 (0xa515)

lri $AR1,    #0x1aaf
lri $IX1,    #0x43fe
lri $WR1,    #0x279b
cw 0x15
call send_back  ; 42262 (0xa516)

lri $AR1,    #0x8690
lri $IX1,    #0x9676
lri $WR1,    #0x71f8
cw 0x15
call send_back  ; 42263 (0xa517)

lri $AR1,    #0x73a0
lri $IX1,    #0x7690
lri $WR1,    #0xd2f7
cw 0x15
call send_back  ; 42264 (0xa518)

lri $AR1,    #0x9662
lri $IX1,    #0x18d2
lri $WR1,    #0x8402
cw 0x15
call send_back  ; 42265 (0xa519)

lri $AR1,    #0x9feb
lri $IX1,    #0x8048
lri $WR1,    #0x3748
cw 0x15
call send_back  ; 42266 (0xa51a)

lri $AR1,    #0x800f
lri $IX1,    #0x22bc
lri $WR1,    #0x84c8
cw 0x15
call send_back  ; 42267 (0xa51b)

lri $AR1,    #0x8770
lri $IX1,    #0x0178
lri $WR1,    #0xa14e
cw 0x15
call send_back  ; 42268 (0xa51c)

lri $AR1,    #0x464e
lri $IX1,    #0x537a
lri $WR1,    #0x5562
cw 0x15
call send_back  ; 42269 (0xa51d)

lri $AR1,    #0x746e
lri $IX1,    #0xf210
lri $WR1,    #0x67b7
cw 0x15
call send_back  ; 42270 (0xa51e)

lri $AR1,    #0xb1cb
lri $IX1,    #0x19be
lri $WR1,    #0xd03a
cw 0x15
call send_back  ; 42271 (0xa51f)

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