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

lri $AR1,    #0xadf8
lri $IX1,    #0x3584
lri $WR1,    #0x4318
cw 0xd
call send_back  ; 20208 (0x4ef0)

lri $AR1,    #0x200d
lri $IX1,    #0x7566
lri $WR1,    #0x9a53
cw 0xd
call send_back  ; 20209 (0x4ef1)

lri $AR1,    #0xc8a3
lri $IX1,    #0x5290
lri $WR1,    #0xd242
cw 0xd
call send_back  ; 20210 (0x4ef2)

lri $AR1,    #0xd0b9
lri $IX1,    #0x6436
lri $WR1,    #0xbe6e
cw 0xd
call send_back  ; 20211 (0x4ef3)

lri $AR1,    #0x3040
lri $IX1,    #0x7160
lri $WR1,    #0x392f
cw 0xd
call send_back  ; 20212 (0x4ef4)

lri $AR1,    #0x9901
lri $IX1,    #0x5348
lri $WR1,    #0x94e0
cw 0xd
call send_back  ; 20213 (0x4ef5)

lri $AR1,    #0x3809
lri $IX1,    #0x4ecc
lri $WR1,    #0x542d
cw 0xd
call send_back  ; 20214 (0x4ef6)

lri $AR1,    #0x8178
lri $IX1,    #0xd720
lri $WR1,    #0x7266
cw 0xd
call send_back  ; 20215 (0x4ef7)

lri $AR1,    #0x91fe
lri $IX1,    #0x3faa
lri $WR1,    #0xca82
cw 0xd
call send_back  ; 20216 (0x4ef8)

lri $AR1,    #0x5cd0
lri $IX1,    #0xea3e
lri $WR1,    #0x94d6
cw 0xd
call send_back  ; 20217 (0x4ef9)

lri $AR1,    #0xbc71
lri $IX1,    #0xdaa4
lri $WR1,    #0x610e
cw 0xd
call send_back  ; 20218 (0x4efa)

lri $AR1,    #0x7019
lri $IX1,    #0x27a0
lri $WR1,    #0x4386
cw 0xd
call send_back  ; 20219 (0x4efb)

lri $AR1,    #0x7708
lri $IX1,    #0x656e
lri $WR1,    #0x827a
cw 0xd
call send_back  ; 20220 (0x4efc)

lri $AR1,    #0x7694
lri $IX1,    #0xbcca
lri $WR1,    #0xc939
cw 0xd
call send_back  ; 20221 (0x4efd)

lri $AR1,    #0x474c
lri $IX1,    #0xcd9c
lri $WR1,    #0xa4d8
cw 0xd
call send_back  ; 20222 (0x4efe)

lri $AR1,    #0xc8f3
lri $IX1,    #0x9b52
lri $WR1,    #0xaf80
cw 0xd
call send_back  ; 20223 (0x4eff)

lri $AR1,    #0x94ac
lri $IX1,    #0x74e8
lri $WR1,    #0x34d6
cw 0xd
call send_back  ; 20224 (0x4f00)

lri $AR1,    #0x7023
lri $IX1,    #0xf1e2
lri $WR1,    #0x23a7
cw 0xd
call send_back  ; 20225 (0x4f01)

lri $AR1,    #0x6407
lri $IX1,    #0x98f4
lri $WR1,    #0xae57
cw 0xd
call send_back  ; 20226 (0x4f02)

lri $AR1,    #0x6b97
lri $IX1,    #0x74c6
lri $WR1,    #0x6d1d
cw 0xd
call send_back  ; 20227 (0x4f03)

lri $AR1,    #0x3ab1
lri $IX1,    #0x9e94
lri $WR1,    #0x8aac
cw 0xd
call send_back  ; 20228 (0x4f04)

lri $AR1,    #0x7309
lri $IX1,    #0x7df2
lri $WR1,    #0x5d56
cw 0xd
call send_back  ; 20229 (0x4f05)

lri $AR1,    #0xb101
lri $IX1,    #0x089c
lri $WR1,    #0x2c2d
cw 0xd
call send_back  ; 20230 (0x4f06)

lri $AR1,    #0x7bcc
lri $IX1,    #0x8c88
lri $WR1,    #0x213c
cw 0xd
call send_back  ; 20231 (0x4f07)

lri $AR1,    #0x3c54
lri $IX1,    #0x6220
lri $WR1,    #0x6f6c
cw 0xd
call send_back  ; 20232 (0x4f08)

lri $AR1,    #0xc98b
lri $IX1,    #0x2be2
lri $WR1,    #0x5c12
cw 0xd
call send_back  ; 20233 (0x4f09)

lri $AR1,    #0xb896
lri $IX1,    #0xe442
lri $WR1,    #0x89d5
cw 0xd
call send_back  ; 20234 (0x4f0a)

lri $AR1,    #0x5294
lri $IX1,    #0xca1a
lri $WR1,    #0xf3da
cw 0xd
call send_back  ; 20235 (0x4f0b)

lri $AR1,    #0xb94c
lri $IX1,    #0x1f76
lri $WR1,    #0x5ddd
cw 0xd
call send_back  ; 20236 (0x4f0c)

lri $AR1,    #0xbfa3
lri $IX1,    #0x8610
lri $WR1,    #0x7741
cw 0xd
call send_back  ; 20237 (0x4f0d)

lri $AR1,    #0xaa19
lri $IX1,    #0x704a
lri $WR1,    #0x6ca4
cw 0xd
call send_back  ; 20238 (0x4f0e)

lri $AR1,    #0xcf26
lri $IX1,    #0x7cf4
lri $WR1,    #0x8506
cw 0xd
call send_back  ; 20239 (0x4f0f)

lri $AR1,    #0x46c8
lri $IX1,    #0x87b4
lri $WR1,    #0x8d1f
cw 0xd
call send_back  ; 20240 (0x4f10)

lri $AR1,    #0x6407
lri $IX1,    #0x9f52
lri $WR1,    #0x9ce0
cw 0xd
call send_back  ; 20241 (0x4f11)

lri $AR1,    #0x72d3
lri $IX1,    #0xced0
lri $WR1,    #0x90c3
cw 0xd
call send_back  ; 20242 (0x4f12)

lri $AR1,    #0x87f3
lri $IX1,    #0x958c
lri $WR1,    #0xc1e9
cw 0xd
call send_back  ; 20243 (0x4f13)

lri $AR1,    #0x786d
lri $IX1,    #0xee34
lri $WR1,    #0x7da8
cw 0xd
call send_back  ; 20244 (0x4f14)

lri $AR1,    #0xa922
lri $IX1,    #0xbbf6
lri $WR1,    #0x5684
cw 0xd
call send_back  ; 20245 (0x4f15)

lri $AR1,    #0xb707
lri $IX1,    #0x40aa
lri $WR1,    #0x8636
cw 0xd
call send_back  ; 20246 (0x4f16)

lri $AR1,    #0xdba3
lri $IX1,    #0xbe4a
lri $WR1,    #0x99c6
cw 0xd
call send_back  ; 20247 (0x4f17)

lri $AR1,    #0x495a
lri $IX1,    #0x7984
lri $WR1,    #0x6649
cw 0xd
call send_back  ; 20248 (0x4f18)

lri $AR1,    #0xe61a
lri $IX1,    #0xdac2
lri $WR1,    #0xae5b
cw 0xd
call send_back  ; 20249 (0x4f19)

lri $AR1,    #0x2aee
lri $IX1,    #0x4662
lri $WR1,    #0xcdda
cw 0xd
call send_back  ; 20250 (0x4f1a)

lri $AR1,    #0x6216
lri $IX1,    #0x5490
lri $WR1,    #0x92f4
cw 0xd
call send_back  ; 20251 (0x4f1b)

lri $AR1,    #0x6524
lri $IX1,    #0x3470
lri $WR1,    #0x8127
cw 0xd
call send_back  ; 20252 (0x4f1c)

lri $AR1,    #0xb7cb
lri $IX1,    #0x1df4
lri $WR1,    #0x742a
cw 0xd
call send_back  ; 20253 (0x4f1d)

lri $AR1,    #0x4bbc
lri $IX1,    #0xa13c
lri $WR1,    #0xd660
cw 0xd
call send_back  ; 20254 (0x4f1e)

lri $AR1,    #0x3d64
lri $IX1,    #0x41ba
lri $WR1,    #0xbfe6
cw 0xd
call send_back  ; 20255 (0x4f1f)

lri $AR1,    #0x50db
lri $IX1,    #0xfef6
lri $WR1,    #0x38c3
cw 0xd
call send_back  ; 20256 (0x4f20)

lri $AR1,    #0xc1c8
lri $IX1,    #0x1444
lri $WR1,    #0x624d
cw 0xd
call send_back  ; 20257 (0x4f21)

lri $AR1,    #0x789a
lri $IX1,    #0x3436
lri $WR1,    #0x5953
cw 0xd
call send_back  ; 20258 (0x4f22)

lri $AR1,    #0xcadf
lri $IX1,    #0xb418
lri $WR1,    #0x9424
cw 0xd
call send_back  ; 20259 (0x4f23)

lri $AR1,    #0x7404
lri $IX1,    #0x5f4e
lri $WR1,    #0x34f4
cw 0xd
call send_back  ; 20260 (0x4f24)

lri $AR1,    #0xcf5d
lri $IX1,    #0xe1e0
lri $WR1,    #0xa2bb
cw 0xd
call send_back  ; 20261 (0x4f25)

lri $AR1,    #0x6baa
lri $IX1,    #0xc504
lri $WR1,    #0x9818
cw 0xd
call send_back  ; 20262 (0x4f26)

lri $AR1,    #0xb40d
lri $IX1,    #0xb7f6
lri $WR1,    #0x9951
cw 0xd
call send_back  ; 20263 (0x4f27)

lri $AR1,    #0x819f
lri $IX1,    #0x32e8
lri $WR1,    #0xc7e9
cw 0xd
call send_back  ; 20264 (0x4f28)

lri $AR1,    #0x5490
lri $IX1,    #0x496c
lri $WR1,    #0x3401
cw 0xd
call send_back  ; 20265 (0x4f29)

lri $AR1,    #0x9307
lri $IX1,    #0x9d12
lri $WR1,    #0x78eb
cw 0xd
call send_back  ; 20266 (0x4f2a)

lri $AR1,    #0xdfaf
lri $IX1,    #0xb096
lri $WR1,    #0x8425
cw 0xd
call send_back  ; 20267 (0x4f2b)

lri $AR1,    #0xc121
lri $IX1,    #0x3f6e
lri $WR1,    #0xbb29
cw 0xd
call send_back  ; 20268 (0x4f2c)

lri $AR1,    #0x4f1c
lri $IX1,    #0x9508
lri $WR1,    #0xae42
cw 0xd
call send_back  ; 20269 (0x4f2d)

lri $AR1,    #0x49c5
lri $IX1,    #0x0a84
lri $WR1,    #0x83dd
cw 0xd
call send_back  ; 20270 (0x4f2e)

lri $AR1,    #0x42bd
lri $IX1,    #0xb130
lri $WR1,    #0xa970
cw 0xd
call send_back  ; 20271 (0x4f2f)

lri $AR1,    #0x3777
lri $IX1,    #0xa3be
lri $WR1,    #0x7c94
cw 0xd
call send_back  ; 20272 (0x4f30)

lri $AR1,    #0x0775
lri $IX1,    #0x5f4c
lri $WR1,    #0x683f
cw 0xd
call send_back  ; 20273 (0x4f31)

lri $AR1,    #0x70ea
lri $IX1,    #0xc136
lri $WR1,    #0x3fda
cw 0xd
call send_back  ; 20274 (0x4f32)

lri $AR1,    #0x1168
lri $IX1,    #0xb5fa
lri $WR1,    #0x531e
cw 0xd
call send_back  ; 20275 (0x4f33)

lri $AR1,    #0xb008
lri $IX1,    #0x28f2
lri $WR1,    #0xab60
cw 0xd
call send_back  ; 20276 (0x4f34)

lri $AR1,    #0xb1c8
lri $IX1,    #0x3c42
lri $WR1,    #0x7c4a
cw 0xd
call send_back  ; 20277 (0x4f35)

lri $AR1,    #0xe87c
lri $IX1,    #0x1bbc
lri $WR1,    #0x6fa5
cw 0xd
call send_back  ; 20278 (0x4f36)

lri $AR1,    #0xd018
lri $IX1,    #0xbd1c
lri $WR1,    #0x752f
cw 0xd
call send_back  ; 20279 (0x4f37)

lri $AR1,    #0xa5b4
lri $IX1,    #0x735a
lri $WR1,    #0x851c
cw 0xd
call send_back  ; 20280 (0x4f38)

lri $AR1,    #0x6efa
lri $IX1,    #0x4274
lri $WR1,    #0x2d52
cw 0xd
call send_back  ; 20281 (0x4f39)

lri $AR1,    #0xe873
lri $IX1,    #0x3c64
lri $WR1,    #0xaeda
cw 0xd
call send_back  ; 20282 (0x4f3a)

lri $AR1,    #0xc46e
lri $IX1,    #0xbfb8
lri $WR1,    #0xc2bb
cw 0xd
call send_back  ; 20283 (0x4f3b)

lri $AR1,    #0x8bcf
lri $IX1,    #0x137e
lri $WR1,    #0xb2b2
cw 0xd
call send_back  ; 20284 (0x4f3c)

lri $AR1,    #0xada5
lri $IX1,    #0x73de
lri $WR1,    #0xabdb
cw 0xd
call send_back  ; 20285 (0x4f3d)

lri $AR1,    #0x39c2
lri $IX1,    #0x0e30
lri $WR1,    #0x6eeb
cw 0xd
call send_back  ; 20286 (0x4f3e)

lri $AR1,    #0xc641
lri $IX1,    #0x8ae8
lri $WR1,    #0xa2f6
cw 0xd
call send_back  ; 20287 (0x4f3f)

lri $AR1,    #0x772a
lri $IX1,    #0x771e
lri $WR1,    #0x755f
cw 0xd
call send_back  ; 20288 (0x4f40)

lri $AR1,    #0x6b20
lri $IX1,    #0x06f6
lri $WR1,    #0xbb05
cw 0xd
call send_back  ; 20289 (0x4f41)

lri $AR1,    #0xcf55
lri $IX1,    #0x25de
lri $WR1,    #0xd425
cw 0xd
call send_back  ; 20290 (0x4f42)

lri $AR1,    #0xf0a2
lri $IX1,    #0x78c2
lri $WR1,    #0x8626
cw 0xd
call send_back  ; 20291 (0x4f43)

lri $AR1,    #0xa708
lri $IX1,    #0xba32
lri $WR1,    #0xb3ba
cw 0xd
call send_back  ; 20292 (0x4f44)

lri $AR1,    #0x5474
lri $IX1,    #0x8fac
lri $WR1,    #0xb581
cw 0xd
call send_back  ; 20293 (0x4f45)

lri $AR1,    #0x3f0b
lri $IX1,    #0x82e0
lri $WR1,    #0x72aa
cw 0xd
call send_back  ; 20294 (0x4f46)

lri $AR1,    #0xb2d8
lri $IX1,    #0x094a
lri $WR1,    #0x9aae
cw 0xd
call send_back  ; 20295 (0x4f47)

lri $AR1,    #0x6e29
lri $IX1,    #0x57ec
lri $WR1,    #0x66b4
cw 0xd
call send_back  ; 20296 (0x4f48)

lri $AR1,    #0xc768
lri $IX1,    #0x0866
lri $WR1,    #0x72a0
cw 0xd
call send_back  ; 20297 (0x4f49)

lri $AR1,    #0x9ac1
lri $IX1,    #0x3066
lri $WR1,    #0x6b76
cw 0xd
call send_back  ; 20298 (0x4f4a)

lri $AR1,    #0x4165
lri $IX1,    #0x5b88
lri $WR1,    #0x6208
cw 0xd
call send_back  ; 20299 (0x4f4b)

lri $AR1,    #0x7bc3
lri $IX1,    #0xbbb2
lri $WR1,    #0x6692
cw 0xd
call send_back  ; 20300 (0x4f4c)

lri $AR1,    #0xb377
lri $IX1,    #0xbb02
lri $WR1,    #0x0b45
cw 0xd
call send_back  ; 20301 (0x4f4d)

lri $AR1,    #0x2947
lri $IX1,    #0xc650
lri $WR1,    #0x695b
cw 0xd
call send_back  ; 20302 (0x4f4e)

lri $AR1,    #0x66ff
lri $IX1,    #0x8674
lri $WR1,    #0xa5c5
cw 0xd
call send_back  ; 20303 (0x4f4f)

lri $AR1,    #0x8485
lri $IX1,    #0xb224
lri $WR1,    #0x97f6
cw 0xd
call send_back  ; 20304 (0x4f50)

lri $AR1,    #0xdad7
lri $IX1,    #0x09d6
lri $WR1,    #0x7eee
cw 0xd
call send_back  ; 20305 (0x4f51)

lri $AR1,    #0x7f68
lri $IX1,    #0xca3e
lri $WR1,    #0x7e06
cw 0xd
call send_back  ; 20306 (0x4f52)

lri $AR1,    #0xb59a
lri $IX1,    #0xd1fe
lri $WR1,    #0x4c8d
cw 0xd
call send_back  ; 20307 (0x4f53)

lri $AR1,    #0xcb94
lri $IX1,    #0xba1e
lri $WR1,    #0x78d5
cw 0xd
call send_back  ; 20308 (0x4f54)

lri $AR1,    #0x7371
lri $IX1,    #0x18ae
lri $WR1,    #0xb8b1
cw 0xd
call send_back  ; 20309 (0x4f55)

lri $AR1,    #0x78e8
lri $IX1,    #0xf082
lri $WR1,    #0x5ef9
cw 0xd
call send_back  ; 20310 (0x4f56)

lri $AR1,    #0x975a
lri $IX1,    #0xd014
lri $WR1,    #0x8f21
cw 0xd
call send_back  ; 20311 (0x4f57)

lri $AR1,    #0x8b8e
lri $IX1,    #0x35ac
lri $WR1,    #0x8d7e
cw 0xd
call send_back  ; 20312 (0x4f58)

lri $AR1,    #0x27ec
lri $IX1,    #0x55d4
lri $WR1,    #0x743a
cw 0xd
call send_back  ; 20313 (0x4f59)

lri $AR1,    #0x9180
lri $IX1,    #0x3d28
lri $WR1,    #0x8290
cw 0xd
call send_back  ; 20314 (0x4f5a)

lri $AR1,    #0xbfa2
lri $IX1,    #0x5596
lri $WR1,    #0x8d5c
cw 0xd
call send_back  ; 20315 (0x4f5b)

lri $AR1,    #0xbf8b
lri $IX1,    #0x7b18
lri $WR1,    #0x2d9a
cw 0xd
call send_back  ; 20316 (0x4f5c)

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