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

lri $AR1,    #0x7d85
lri $IX1,    #0xba00
lri $WR1,    #0x4736
cw 0x15
call send_back  ; 40306 (0x9d72)

lri $AR1,    #0xaf75
lri $IX1,    #0x704c
lri $WR1,    #0x549a
cw 0x15
call send_back  ; 40307 (0x9d73)

lri $AR1,    #0x5e85
lri $IX1,    #0x1ef2
lri $WR1,    #0x7528
cw 0x15
call send_back  ; 40308 (0x9d74)

lri $AR1,    #0x50b9
lri $IX1,    #0x9e9c
lri $WR1,    #0xa8ed
cw 0x15
call send_back  ; 40309 (0x9d75)

lri $AR1,    #0x71fb
lri $IX1,    #0x1cae
lri $WR1,    #0x215e
cw 0x15
call send_back  ; 40310 (0x9d76)

lri $AR1,    #0x56e7
lri $IX1,    #0x699a
lri $WR1,    #0x3cb7
cw 0x15
call send_back  ; 40311 (0x9d77)

lri $AR1,    #0x3d47
lri $IX1,    #0xaffc
lri $WR1,    #0x27fc
cw 0x15
call send_back  ; 40312 (0x9d78)

lri $AR1,    #0x810e
lri $IX1,    #0x4768
lri $WR1,    #0x5fad
cw 0x15
call send_back  ; 40313 (0x9d79)

lri $AR1,    #0xdc1b
lri $IX1,    #0xf9d8
lri $WR1,    #0x34c3
cw 0x15
call send_back  ; 40314 (0x9d7a)

lri $AR1,    #0xbaa2
lri $IX1,    #0x83a8
lri $WR1,    #0x4d05
cw 0x15
call send_back  ; 40315 (0x9d7b)

lri $AR1,    #0x557e
lri $IX1,    #0x7226
lri $WR1,    #0x2b3b
cw 0x15
call send_back  ; 40316 (0x9d7c)

lri $AR1,    #0x7f41
lri $IX1,    #0xed76
lri $WR1,    #0x8561
cw 0x15
call send_back  ; 40317 (0x9d7d)

lri $AR1,    #0x8057
lri $IX1,    #0x8ef8
lri $WR1,    #0x6c59
cw 0x15
call send_back  ; 40318 (0x9d7e)

lri $AR1,    #0x61ff
lri $IX1,    #0x45de
lri $WR1,    #0x6a35
cw 0x15
call send_back  ; 40319 (0x9d7f)

lri $AR1,    #0x7f77
lri $IX1,    #0x9832
lri $WR1,    #0x21a7
cw 0x15
call send_back  ; 40320 (0x9d80)

lri $AR1,    #0x8028
lri $IX1,    #0x66d2
lri $WR1,    #0x82aa
cw 0x15
call send_back  ; 40321 (0x9d81)

lri $AR1,    #0x5d1b
lri $IX1,    #0xdfd2
lri $WR1,    #0xb5eb
cw 0x15
call send_back  ; 40322 (0x9d82)

lri $AR1,    #0xa78e
lri $IX1,    #0x9aaa
lri $WR1,    #0x520f
cw 0x15
call send_back  ; 40323 (0x9d83)

lri $AR1,    #0x4df8
lri $IX1,    #0x16a2
lri $WR1,    #0x2355
cw 0x15
call send_back  ; 40324 (0x9d84)

lri $AR1,    #0x784d
lri $IX1,    #0x1c0e
lri $WR1,    #0xa7ba
cw 0x15
call send_back  ; 40325 (0x9d85)

lri $AR1,    #0xa3c6
lri $IX1,    #0xf572
lri $WR1,    #0x3f1d
cw 0x15
call send_back  ; 40326 (0x9d86)

lri $AR1,    #0xca15
lri $IX1,    #0x367e
lri $WR1,    #0xd074
cw 0x15
call send_back  ; 40327 (0x9d87)

lri $AR1,    #0x7741
lri $IX1,    #0xf2cc
lri $WR1,    #0xaab4
cw 0x15
call send_back  ; 40328 (0x9d88)

lri $AR1,    #0x1cf5
lri $IX1,    #0xff42
lri $WR1,    #0x9160
cw 0x15
call send_back  ; 40329 (0x9d89)

lri $AR1,    #0x91b5
lri $IX1,    #0x3d2e
lri $WR1,    #0x9269
cw 0x15
call send_back  ; 40330 (0x9d8a)

lri $AR1,    #0x5d98
lri $IX1,    #0x1edc
lri $WR1,    #0x5460
cw 0x15
call send_back  ; 40331 (0x9d8b)

lri $AR1,    #0x9e05
lri $IX1,    #0xb1c4
lri $WR1,    #0x618e
cw 0x15
call send_back  ; 40332 (0x9d8c)

lri $AR1,    #0x451c
lri $IX1,    #0xa30e
lri $WR1,    #0xee00
cw 0x15
call send_back  ; 40333 (0x9d8d)

lri $AR1,    #0xa937
lri $IX1,    #0x079e
lri $WR1,    #0x9423
cw 0x15
call send_back  ; 40334 (0x9d8e)

lri $AR1,    #0x9c4e
lri $IX1,    #0x5148
lri $WR1,    #0x64e1
cw 0x15
call send_back  ; 40335 (0x9d8f)

lri $AR1,    #0x7a76
lri $IX1,    #0xe76c
lri $WR1,    #0x4dff
cw 0x15
call send_back  ; 40336 (0x9d90)

lri $AR1,    #0xaa77
lri $IX1,    #0x71a0
lri $WR1,    #0xa29a
cw 0x15
call send_back  ; 40337 (0x9d91)

lri $AR1,    #0xca9a
lri $IX1,    #0x27aa
lri $WR1,    #0x5f76
cw 0x15
call send_back  ; 40338 (0x9d92)

lri $AR1,    #0x97a5
lri $IX1,    #0x8a50
lri $WR1,    #0x7622
cw 0x15
call send_back  ; 40339 (0x9d93)

lri $AR1,    #0x6337
lri $IX1,    #0xe568
lri $WR1,    #0x5f80
cw 0x15
call send_back  ; 40340 (0x9d94)

lri $AR1,    #0x8a71
lri $IX1,    #0x03a8
lri $WR1,    #0xcfc0
cw 0x15
call send_back  ; 40341 (0x9d95)

lri $AR1,    #0x2d1f
lri $IX1,    #0xb17a
lri $WR1,    #0x8365
cw 0x15
call send_back  ; 40342 (0x9d96)

lri $AR1,    #0xc947
lri $IX1,    #0x2c8a
lri $WR1,    #0x9e65
cw 0x15
call send_back  ; 40343 (0x9d97)

lri $AR1,    #0xb669
lri $IX1,    #0x8a2c
lri $WR1,    #0xdbe0
cw 0x15
call send_back  ; 40344 (0x9d98)

lri $AR1,    #0x2730
lri $IX1,    #0x975e
lri $WR1,    #0xb6a0
cw 0x15
call send_back  ; 40345 (0x9d99)

lri $AR1,    #0x37ff
lri $IX1,    #0xd984
lri $WR1,    #0x9fcc
cw 0x15
call send_back  ; 40346 (0x9d9a)

lri $AR1,    #0x8416
lri $IX1,    #0x4792
lri $WR1,    #0xab01
cw 0x15
call send_back  ; 40347 (0x9d9b)

lri $AR1,    #0xa2a1
lri $IX1,    #0x2fee
lri $WR1,    #0x2c47
cw 0x15
call send_back  ; 40348 (0x9d9c)

lri $AR1,    #0xa88f
lri $IX1,    #0xa788
lri $WR1,    #0x7e01
cw 0x15
call send_back  ; 40349 (0x9d9d)

lri $AR1,    #0xbb6d
lri $IX1,    #0xf382
lri $WR1,    #0x625e
cw 0x15
call send_back  ; 40350 (0x9d9e)

lri $AR1,    #0xc526
lri $IX1,    #0xbf10
lri $WR1,    #0x9568
cw 0x15
call send_back  ; 40351 (0x9d9f)

lri $AR1,    #0xcfec
lri $IX1,    #0xbbae
lri $WR1,    #0x8a32
cw 0x15
call send_back  ; 40352 (0x9da0)

lri $AR1,    #0x5d22
lri $IX1,    #0xa26a
lri $WR1,    #0xd73e
cw 0x15
call send_back  ; 40353 (0x9da1)

lri $AR1,    #0x0993
lri $IX1,    #0x9178
lri $WR1,    #0x63a6
cw 0x15
call send_back  ; 40354 (0x9da2)

lri $AR1,    #0xe4cb
lri $IX1,    #0x91b2
lri $WR1,    #0xd825
cw 0x15
call send_back  ; 40355 (0x9da3)

lri $AR1,    #0x68d3
lri $IX1,    #0xcc34
lri $WR1,    #0x0c7b
cw 0x15
call send_back  ; 40356 (0x9da4)

lri $AR1,    #0xdb37
lri $IX1,    #0xc0da
lri $WR1,    #0x834d
cw 0x15
call send_back  ; 40357 (0x9da5)

lri $AR1,    #0x6f95
lri $IX1,    #0xc2b4
lri $WR1,    #0xe406
cw 0x15
call send_back  ; 40358 (0x9da6)

lri $AR1,    #0xa78c
lri $IX1,    #0x402a
lri $WR1,    #0xa3d7
cw 0x15
call send_back  ; 40359 (0x9da7)

lri $AR1,    #0x8352
lri $IX1,    #0x090e
lri $WR1,    #0x9450
cw 0x15
call send_back  ; 40360 (0x9da8)

lri $AR1,    #0x81d0
lri $IX1,    #0xfd30
lri $WR1,    #0x37bd
cw 0x15
call send_back  ; 40361 (0x9da9)

lri $AR1,    #0x8e8b
lri $IX1,    #0x72c8
lri $WR1,    #0x68bd
cw 0x15
call send_back  ; 40362 (0x9daa)

lri $AR1,    #0x2f28
lri $IX1,    #0x543a
lri $WR1,    #0x7439
cw 0x15
call send_back  ; 40363 (0x9dab)

lri $AR1,    #0x69df
lri $IX1,    #0x9196
lri $WR1,    #0x9a37
cw 0x15
call send_back  ; 40364 (0x9dac)

lri $AR1,    #0xd9aa
lri $IX1,    #0x2a50
lri $WR1,    #0xe3b0
cw 0x15
call send_back  ; 40365 (0x9dad)

lri $AR1,    #0x9488
lri $IX1,    #0xe890
lri $WR1,    #0xb8da
cw 0x15
call send_back  ; 40366 (0x9dae)

lri $AR1,    #0x4b9a
lri $IX1,    #0x07a6
lri $WR1,    #0x851a
cw 0x15
call send_back  ; 40367 (0x9daf)

lri $AR1,    #0xc46b
lri $IX1,    #0x8bea
lri $WR1,    #0xdb12
cw 0x15
call send_back  ; 40368 (0x9db0)

lri $AR1,    #0x563a
lri $IX1,    #0x2aa0
lri $WR1,    #0x54e6
cw 0x15
call send_back  ; 40369 (0x9db1)

lri $AR1,    #0x5597
lri $IX1,    #0x6530
lri $WR1,    #0xba4b
cw 0x15
call send_back  ; 40370 (0x9db2)

lri $AR1,    #0x2c11
lri $IX1,    #0x0b3c
lri $WR1,    #0xa765
cw 0x15
call send_back  ; 40371 (0x9db3)

lri $AR1,    #0x2159
lri $IX1,    #0xd3f4
lri $WR1,    #0xe516
cw 0x15
call send_back  ; 40372 (0x9db4)

lri $AR1,    #0x76ac
lri $IX1,    #0x4714
lri $WR1,    #0xbcb3
cw 0x15
call send_back  ; 40373 (0x9db5)

lri $AR1,    #0xc4ba
lri $IX1,    #0xe312
lri $WR1,    #0xaed2
cw 0x15
call send_back  ; 40374 (0x9db6)

lri $AR1,    #0x6ff3
lri $IX1,    #0x6dd2
lri $WR1,    #0x761c
cw 0x15
call send_back  ; 40375 (0x9db7)

lri $AR1,    #0x5e89
lri $IX1,    #0xca60
lri $WR1,    #0x84d3
cw 0x15
call send_back  ; 40376 (0x9db8)

lri $AR1,    #0xc6e4
lri $IX1,    #0xa626
lri $WR1,    #0x9505
cw 0x15
call send_back  ; 40377 (0x9db9)

lri $AR1,    #0x4cea
lri $IX1,    #0xf4ec
lri $WR1,    #0x510b
cw 0x15
call send_back  ; 40378 (0x9dba)

lri $AR1,    #0x17e3
lri $IX1,    #0xa346
lri $WR1,    #0x6b57
cw 0x15
call send_back  ; 40379 (0x9dbb)

lri $AR1,    #0x7252
lri $IX1,    #0x43aa
lri $WR1,    #0x9230
cw 0x15
call send_back  ; 40380 (0x9dbc)

lri $AR1,    #0xc07f
lri $IX1,    #0xe2d8
lri $WR1,    #0x6560
cw 0x15
call send_back  ; 40381 (0x9dbd)

lri $AR1,    #0x8a1a
lri $IX1,    #0xc4b8
lri $WR1,    #0x5168
cw 0x15
call send_back  ; 40382 (0x9dbe)

lri $AR1,    #0x56b9
lri $IX1,    #0xab7c
lri $WR1,    #0xd546
cw 0x15
call send_back  ; 40383 (0x9dbf)

lri $AR1,    #0x9480
lri $IX1,    #0x9710
lri $WR1,    #0x9d6c
cw 0x15
call send_back  ; 40384 (0x9dc0)

lri $AR1,    #0x8bcf
lri $IX1,    #0xc3b2
lri $WR1,    #0xe7e2
cw 0x15
call send_back  ; 40385 (0x9dc1)

lri $AR1,    #0x6234
lri $IX1,    #0x32bc
lri $WR1,    #0xb335
cw 0x15
call send_back  ; 40386 (0x9dc2)

lri $AR1,    #0x4284
lri $IX1,    #0x5962
lri $WR1,    #0x2b35
cw 0x15
call send_back  ; 40387 (0x9dc3)

lri $AR1,    #0xc75c
lri $IX1,    #0xcd98
lri $WR1,    #0x7c20
cw 0x15
call send_back  ; 40388 (0x9dc4)

lri $AR1,    #0xa0e3
lri $IX1,    #0x11c8
lri $WR1,    #0x8e42
cw 0x15
call send_back  ; 40389 (0x9dc5)

lri $AR1,    #0x7e1c
lri $IX1,    #0x1482
lri $WR1,    #0x8996
cw 0x15
call send_back  ; 40390 (0x9dc6)

lri $AR1,    #0xe58e
lri $IX1,    #0xb9f0
lri $WR1,    #0x4283
cw 0x15
call send_back  ; 40391 (0x9dc7)

lri $AR1,    #0xc0a2
lri $IX1,    #0xf114
lri $WR1,    #0x3639
cw 0x15
call send_back  ; 40392 (0x9dc8)

lri $AR1,    #0xc87e
lri $IX1,    #0x8fb2
lri $WR1,    #0xe6ca
cw 0x15
call send_back  ; 40393 (0x9dc9)

lri $AR1,    #0xa2aa
lri $IX1,    #0x93de
lri $WR1,    #0x9486
cw 0x15
call send_back  ; 40394 (0x9dca)

lri $AR1,    #0xaf55
lri $IX1,    #0x9b22
lri $WR1,    #0xe3aa
cw 0x15
call send_back  ; 40395 (0x9dcb)

lri $AR1,    #0xb289
lri $IX1,    #0x7b1c
lri $WR1,    #0x52ff
cw 0x15
call send_back  ; 40396 (0x9dcc)

lri $AR1,    #0x7d1c
lri $IX1,    #0x1090
lri $WR1,    #0x6160
cw 0x15
call send_back  ; 40397 (0x9dcd)

lri $AR1,    #0x69b1
lri $IX1,    #0xadec
lri $WR1,    #0xbdd6
cw 0x15
call send_back  ; 40398 (0x9dce)

lri $AR1,    #0x4593
lri $IX1,    #0x32fe
lri $WR1,    #0xbf3c
cw 0x15
call send_back  ; 40399 (0x9dcf)

lri $AR1,    #0x74bf
lri $IX1,    #0xe40e
lri $WR1,    #0x8612
cw 0x15
call send_back  ; 40400 (0x9dd0)

lri $AR1,    #0xabf2
lri $IX1,    #0xaf10
lri $WR1,    #0x7484
cw 0x15
call send_back  ; 40401 (0x9dd1)

lri $AR1,    #0x5afc
lri $IX1,    #0xd210
lri $WR1,    #0x7635
cw 0x15
call send_back  ; 40402 (0x9dd2)

lri $AR1,    #0x3537
lri $IX1,    #0xe692
lri $WR1,    #0xc2e2
cw 0x15
call send_back  ; 40403 (0x9dd3)

lri $AR1,    #0x0d6b
lri $IX1,    #0x5212
lri $WR1,    #0xbc69
cw 0x15
call send_back  ; 40404 (0x9dd4)

lri $AR1,    #0x55eb
lri $IX1,    #0x2462
lri $WR1,    #0xa248
cw 0x15
call send_back  ; 40405 (0x9dd5)

lri $AR1,    #0x654c
lri $IX1,    #0xa0f6
lri $WR1,    #0x7224
cw 0x15
call send_back  ; 40406 (0x9dd6)

lri $AR1,    #0x836b
lri $IX1,    #0x30f4
lri $WR1,    #0xce5c
cw 0x15
call send_back  ; 40407 (0x9dd7)

lri $AR1,    #0x9a2a
lri $IX1,    #0x681a
lri $WR1,    #0x8952
cw 0x15
call send_back  ; 40408 (0x9dd8)

lri $AR1,    #0x90ac
lri $IX1,    #0x3f40
lri $WR1,    #0x5d5b
cw 0x15
call send_back  ; 40409 (0x9dd9)

lri $AR1,    #0xb75c
lri $IX1,    #0xcb90
lri $WR1,    #0x46fe
cw 0x15
call send_back  ; 40410 (0x9dda)

lri $AR1,    #0x9e8e
lri $IX1,    #0xaa40
lri $WR1,    #0xc885
cw 0x15
call send_back  ; 40411 (0x9ddb)

lri $AR1,    #0x1913
lri $IX1,    #0x34da
lri $WR1,    #0x7376
cw 0x15
call send_back  ; 40412 (0x9ddc)

lri $AR1,    #0x6793
lri $IX1,    #0x7aea
lri $WR1,    #0x4e02
cw 0x15
call send_back  ; 40413 (0x9ddd)

lri $AR1,    #0x78df
lri $IX1,    #0x121c
lri $WR1,    #0x67f7
cw 0x15
call send_back  ; 40414 (0x9dde)

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