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

lri $AR1,    #0x95a8
lri $IX1,    #0xd196
lri $WR1,    #0x411d
cw 0x15
call send_back  ; 60403 (0xebf3)

lri $AR1,    #0x9182
lri $IX1,    #0x54cc
lri $WR1,    #0x51ba
cw 0x15
call send_back  ; 60404 (0xebf4)

lri $AR1,    #0x386a
lri $IX1,    #0xb0c6
lri $WR1,    #0x4dd2
cw 0x15
call send_back  ; 60405 (0xebf5)

lri $AR1,    #0x8525
lri $IX1,    #0x3530
lri $WR1,    #0xa5a7
cw 0x15
call send_back  ; 60406 (0xebf6)

lri $AR1,    #0x7cce
lri $IX1,    #0x261c
lri $WR1,    #0xaa61
cw 0x15
call send_back  ; 60407 (0xebf7)

lri $AR1,    #0xce49
lri $IX1,    #0xdc2c
lri $WR1,    #0x6b0e
cw 0x15
call send_back  ; 60408 (0xebf8)

lri $AR1,    #0x8e45
lri $IX1,    #0x9856
lri $WR1,    #0xb85c
cw 0x15
call send_back  ; 60409 (0xebf9)

lri $AR1,    #0xa5fe
lri $IX1,    #0xa25a
lri $WR1,    #0xb490
cw 0x15
call send_back  ; 60410 (0xebfa)

lri $AR1,    #0x7ea4
lri $IX1,    #0xb9ba
lri $WR1,    #0x26dd
cw 0x15
call send_back  ; 60411 (0xebfb)

lri $AR1,    #0x5aac
lri $IX1,    #0x3d44
lri $WR1,    #0x5e95
cw 0x15
call send_back  ; 60412 (0xebfc)

lri $AR1,    #0x89e8
lri $IX1,    #0xd600
lri $WR1,    #0xac63
cw 0x15
call send_back  ; 60413 (0xebfd)

lri $AR1,    #0x949c
lri $IX1,    #0x0694
lri $WR1,    #0xb4f2
cw 0x15
call send_back  ; 60414 (0xebfe)

lri $AR1,    #0x7d83
lri $IX1,    #0xe0d6
lri $WR1,    #0x8242
cw 0x15
call send_back  ; 60415 (0xebff)

lri $AR1,    #0xb1fa
lri $IX1,    #0x6fd2
lri $WR1,    #0x9e10
cw 0x15
call send_back  ; 60416 (0xec00)

lri $AR1,    #0x8b24
lri $IX1,    #0x3cd0
lri $WR1,    #0x8985
cw 0x15
call send_back  ; 60417 (0xec01)

lri $AR1,    #0x4266
lri $IX1,    #0xdaa0
lri $WR1,    #0x7397
cw 0x15
call send_back  ; 60418 (0xec02)

lri $AR1,    #0xcefc
lri $IX1,    #0xb2e0
lri $WR1,    #0x8159
cw 0x15
call send_back  ; 60419 (0xec03)

lri $AR1,    #0x29f8
lri $IX1,    #0x8d62
lri $WR1,    #0xb096
cw 0x15
call send_back  ; 60420 (0xec04)

lri $AR1,    #0xd187
lri $IX1,    #0x9256
lri $WR1,    #0xb6f6
cw 0x15
call send_back  ; 60421 (0xec05)

lri $AR1,    #0x73c3
lri $IX1,    #0xfc8a
lri $WR1,    #0x1d25
cw 0x15
call send_back  ; 60422 (0xec06)

lri $AR1,    #0x4cd7
lri $IX1,    #0x714e
lri $WR1,    #0x1705
cw 0x15
call send_back  ; 60423 (0xec07)

lri $AR1,    #0xdbe4
lri $IX1,    #0x2040
lri $WR1,    #0x9f95
cw 0x15
call send_back  ; 60424 (0xec08)

lri $AR1,    #0x7d57
lri $IX1,    #0x85ac
lri $WR1,    #0x8886
cw 0x15
call send_back  ; 60425 (0xec09)

lri $AR1,    #0x990a
lri $IX1,    #0x0ea6
lri $WR1,    #0x5b15
cw 0x15
call send_back  ; 60426 (0xec0a)

lri $AR1,    #0xc614
lri $IX1,    #0x0e9a
lri $WR1,    #0x793d
cw 0x15
call send_back  ; 60427 (0xec0b)

lri $AR1,    #0x6d77
lri $IX1,    #0x9286
lri $WR1,    #0x43d6
cw 0x15
call send_back  ; 60428 (0xec0c)

lri $AR1,    #0x708c
lri $IX1,    #0xc676
lri $WR1,    #0x8399
cw 0x15
call send_back  ; 60429 (0xec0d)

lri $AR1,    #0x878e
lri $IX1,    #0xf690
lri $WR1,    #0x50ba
cw 0x15
call send_back  ; 60430 (0xec0e)

lri $AR1,    #0x4fec
lri $IX1,    #0xd54e
lri $WR1,    #0x9615
cw 0x15
call send_back  ; 60431 (0xec0f)

lri $AR1,    #0x39dc
lri $IX1,    #0xbd12
lri $WR1,    #0x7277
cw 0x15
call send_back  ; 60432 (0xec10)

lri $AR1,    #0x8fde
lri $IX1,    #0x3bda
lri $WR1,    #0x842b
cw 0x15
call send_back  ; 60433 (0xec11)

lri $AR1,    #0x129a
lri $IX1,    #0x7c2c
lri $WR1,    #0x7841
cw 0x15
call send_back  ; 60434 (0xec12)

lri $AR1,    #0x76cf
lri $IX1,    #0x2ef4
lri $WR1,    #0x68b4
cw 0x15
call send_back  ; 60435 (0xec13)

lri $AR1,    #0x5aba
lri $IX1,    #0x968c
lri $WR1,    #0x89f0
cw 0x15
call send_back  ; 60436 (0xec14)

lri $AR1,    #0xe3b7
lri $IX1,    #0x5b8e
lri $WR1,    #0x41d3
cw 0x15
call send_back  ; 60437 (0xec15)

lri $AR1,    #0x846f
lri $IX1,    #0x08a6
lri $WR1,    #0x5fac
cw 0x15
call send_back  ; 60438 (0xec16)

lri $AR1,    #0x4f64
lri $IX1,    #0x8b26
lri $WR1,    #0xae5b
cw 0x15
call send_back  ; 60439 (0xec17)

lri $AR1,    #0x9130
lri $IX1,    #0x0266
lri $WR1,    #0x5f10
cw 0x15
call send_back  ; 60440 (0xec18)

lri $AR1,    #0x993d
lri $IX1,    #0xa0c8
lri $WR1,    #0x34bd
cw 0x15
call send_back  ; 60441 (0xec19)

lri $AR1,    #0x7748
lri $IX1,    #0x8570
lri $WR1,    #0x45d7
cw 0x15
call send_back  ; 60442 (0xec1a)

lri $AR1,    #0x678c
lri $IX1,    #0x667e
lri $WR1,    #0x7b66
cw 0x15
call send_back  ; 60443 (0xec1b)

lri $AR1,    #0x8ed5
lri $IX1,    #0xbfd4
lri $WR1,    #0x89fe
cw 0x15
call send_back  ; 60444 (0xec1c)

lri $AR1,    #0x634a
lri $IX1,    #0x234a
lri $WR1,    #0x5aaf
cw 0x15
call send_back  ; 60445 (0xec1d)

lri $AR1,    #0x8e56
lri $IX1,    #0x5b48
lri $WR1,    #0x1774
cw 0x15
call send_back  ; 60446 (0xec1e)

lri $AR1,    #0x9760
lri $IX1,    #0x71a2
lri $WR1,    #0x3043
cw 0x15
call send_back  ; 60447 (0xec1f)

lri $AR1,    #0x9eb5
lri $IX1,    #0x78da
lri $WR1,    #0x933a
cw 0x15
call send_back  ; 60448 (0xec20)

lri $AR1,    #0xbb75
lri $IX1,    #0x4e62
lri $WR1,    #0x5c06
cw 0x15
call send_back  ; 60449 (0xec21)

lri $AR1,    #0x8ec6
lri $IX1,    #0x9130
lri $WR1,    #0x4c10
cw 0x15
call send_back  ; 60450 (0xec22)

lri $AR1,    #0xb230
lri $IX1,    #0xd842
lri $WR1,    #0x4e7d
cw 0x15
call send_back  ; 60451 (0xec23)

lri $AR1,    #0x2e58
lri $IX1,    #0xf13c
lri $WR1,    #0x809b
cw 0x15
call send_back  ; 60452 (0xec24)

lri $AR1,    #0x8307
lri $IX1,    #0xb7dc
lri $WR1,    #0x90b7
cw 0x15
call send_back  ; 60453 (0xec25)

lri $AR1,    #0x58b9
lri $IX1,    #0x0b74
lri $WR1,    #0x230c
cw 0x15
call send_back  ; 60454 (0xec26)

lri $AR1,    #0x9783
lri $IX1,    #0xa814
lri $WR1,    #0xadb6
cw 0x15
call send_back  ; 60455 (0xec27)

lri $AR1,    #0xb6bb
lri $IX1,    #0x558c
lri $WR1,    #0xc24f
cw 0x15
call send_back  ; 60456 (0xec28)

lri $AR1,    #0x8408
lri $IX1,    #0x1716
lri $WR1,    #0x6551
cw 0x15
call send_back  ; 60457 (0xec29)

lri $AR1,    #0x4048
lri $IX1,    #0xeaaa
lri $WR1,    #0x40a6
cw 0x15
call send_back  ; 60458 (0xec2a)

lri $AR1,    #0xa41b
lri $IX1,    #0x57d2
lri $WR1,    #0x90a5
cw 0x15
call send_back  ; 60459 (0xec2b)

lri $AR1,    #0x8556
lri $IX1,    #0xaa22
lri $WR1,    #0x7fde
cw 0x15
call send_back  ; 60460 (0xec2c)

lri $AR1,    #0xd231
lri $IX1,    #0x5bf0
lri $WR1,    #0x9ff5
cw 0x15
call send_back  ; 60461 (0xec2d)

lri $AR1,    #0x4685
lri $IX1,    #0x0aaa
lri $WR1,    #0x2aef
cw 0x15
call send_back  ; 60462 (0xec2e)

lri $AR1,    #0x82ef
lri $IX1,    #0x6e46
lri $WR1,    #0x9a1c
cw 0x15
call send_back  ; 60463 (0xec2f)

lri $AR1,    #0xe516
lri $IX1,    #0x5a1c
lri $WR1,    #0xc528
cw 0x15
call send_back  ; 60464 (0xec30)

lri $AR1,    #0x8bf8
lri $IX1,    #0xe5d4
lri $WR1,    #0x8565
cw 0x15
call send_back  ; 60465 (0xec31)

lri $AR1,    #0x327d
lri $IX1,    #0xa19c
lri $WR1,    #0xa6d3
cw 0x15
call send_back  ; 60466 (0xec32)

lri $AR1,    #0xde30
lri $IX1,    #0x493c
lri $WR1,    #0xa205
cw 0x15
call send_back  ; 60467 (0xec33)

lri $AR1,    #0xa762
lri $IX1,    #0xe662
lri $WR1,    #0x8f64
cw 0x15
call send_back  ; 60468 (0xec34)

lri $AR1,    #0x7b88
lri $IX1,    #0xdab4
lri $WR1,    #0x5df5
cw 0x15
call send_back  ; 60469 (0xec35)

lri $AR1,    #0x8a30
lri $IX1,    #0xfee8
lri $WR1,    #0x7516
cw 0x15
call send_back  ; 60470 (0xec36)

lri $AR1,    #0x7046
lri $IX1,    #0x0488
lri $WR1,    #0x6a60
cw 0x15
call send_back  ; 60471 (0xec37)

lri $AR1,    #0x8d17
lri $IX1,    #0xb4a4
lri $WR1,    #0x3a21
cw 0x15
call send_back  ; 60472 (0xec38)

lri $AR1,    #0x97c8
lri $IX1,    #0x9e0a
lri $WR1,    #0xda90
cw 0x15
call send_back  ; 60473 (0xec39)

lri $AR1,    #0x6b99
lri $IX1,    #0x6a42
lri $WR1,    #0x6f53
cw 0x15
call send_back  ; 60474 (0xec3a)

lri $AR1,    #0x74d0
lri $IX1,    #0x810a
lri $WR1,    #0x3449
cw 0x15
call send_back  ; 60475 (0xec3b)

lri $AR1,    #0x8f8c
lri $IX1,    #0xfe5a
lri $WR1,    #0x4c45
cw 0x15
call send_back  ; 60476 (0xec3c)

lri $AR1,    #0x6550
lri $IX1,    #0x67d6
lri $WR1,    #0x59bd
cw 0x15
call send_back  ; 60477 (0xec3d)

lri $AR1,    #0x45aa
lri $IX1,    #0x22a8
lri $WR1,    #0x84fc
cw 0x15
call send_back  ; 60478 (0xec3e)

lri $AR1,    #0x79a9
lri $IX1,    #0x8ba8
lri $WR1,    #0xb4ef
cw 0x15
call send_back  ; 60479 (0xec3f)

lri $AR1,    #0x8990
lri $IX1,    #0xdfc6
lri $WR1,    #0xa511
cw 0x15
call send_back  ; 60480 (0xec40)

lri $AR1,    #0xb778
lri $IX1,    #0xfba4
lri $WR1,    #0x8c99
cw 0x15
call send_back  ; 60481 (0xec41)

lri $AR1,    #0x714d
lri $IX1,    #0x7d5e
lri $WR1,    #0x985d
cw 0x15
call send_back  ; 60482 (0xec42)

lri $AR1,    #0x8fdf
lri $IX1,    #0x244e
lri $WR1,    #0x6a9b
cw 0x15
call send_back  ; 60483 (0xec43)

lri $AR1,    #0xc067
lri $IX1,    #0x86ec
lri $WR1,    #0x891c
cw 0x15
call send_back  ; 60484 (0xec44)

lri $AR1,    #0x514b
lri $IX1,    #0x7f84
lri $WR1,    #0x7bda
cw 0x15
call send_back  ; 60485 (0xec45)

lri $AR1,    #0xaa65
lri $IX1,    #0x24ee
lri $WR1,    #0x3b9a
cw 0x15
call send_back  ; 60486 (0xec46)

lri $AR1,    #0xdcbb
lri $IX1,    #0xe4f2
lri $WR1,    #0xd1af
cw 0x15
call send_back  ; 60487 (0xec47)

lri $AR1,    #0xccd3
lri $IX1,    #0x829e
lri $WR1,    #0x8f56
cw 0x15
call send_back  ; 60488 (0xec48)

lri $AR1,    #0x668c
lri $IX1,    #0x7310
lri $WR1,    #0x6ccc
cw 0x15
call send_back  ; 60489 (0xec49)

lri $AR1,    #0x68cc
lri $IX1,    #0x782a
lri $WR1,    #0xcdad
cw 0x15
call send_back  ; 60490 (0xec4a)

lri $AR1,    #0x8abd
lri $IX1,    #0x8894
lri $WR1,    #0x79a4
cw 0x15
call send_back  ; 60491 (0xec4b)

lri $AR1,    #0x6406
lri $IX1,    #0x3172
lri $WR1,    #0x6e04
cw 0x15
call send_back  ; 60492 (0xec4c)

lri $AR1,    #0x7cb9
lri $IX1,    #0xc66c
lri $WR1,    #0x2655
cw 0x15
call send_back  ; 60493 (0xec4d)

lri $AR1,    #0x1954
lri $IX1,    #0x0932
lri $WR1,    #0x776b
cw 0x15
call send_back  ; 60494 (0xec4e)

lri $AR1,    #0x9a9d
lri $IX1,    #0x9238
lri $WR1,    #0x7a0c
cw 0x15
call send_back  ; 60495 (0xec4f)

lri $AR1,    #0x80b1
lri $IX1,    #0x50c8
lri $WR1,    #0xa7c7
cw 0x15
call send_back  ; 60496 (0xec50)

lri $AR1,    #0xac05
lri $IX1,    #0x113e
lri $WR1,    #0x95f2
cw 0x15
call send_back  ; 60497 (0xec51)

lri $AR1,    #0xb6c7
lri $IX1,    #0x3c68
lri $WR1,    #0x887c
cw 0x15
call send_back  ; 60498 (0xec52)

lri $AR1,    #0x944d
lri $IX1,    #0x13ea
lri $WR1,    #0x478f
cw 0x15
call send_back  ; 60499 (0xec53)

lri $AR1,    #0x6bf9
lri $IX1,    #0xabca
lri $WR1,    #0x9895
cw 0x15
call send_back  ; 60500 (0xec54)

lri $AR1,    #0xc05d
lri $IX1,    #0xe9bc
lri $WR1,    #0x54b7
cw 0x15
call send_back  ; 60501 (0xec55)

lri $AR1,    #0xc2e8
lri $IX1,    #0x0776
lri $WR1,    #0xb467
cw 0x15
call send_back  ; 60502 (0xec56)

lri $AR1,    #0x97f3
lri $IX1,    #0x95c4
lri $WR1,    #0xe8f0
cw 0x15
call send_back  ; 60503 (0xec57)

lri $AR1,    #0xa67d
lri $IX1,    #0xea68
lri $WR1,    #0xe2be
cw 0x15
call send_back  ; 60504 (0xec58)

lri $AR1,    #0xba65
lri $IX1,    #0x5b9c
lri $WR1,    #0x8c54
cw 0x15
call send_back  ; 60505 (0xec59)

lri $AR1,    #0x9f71
lri $IX1,    #0xd052
lri $WR1,    #0x2f85
cw 0x15
call send_back  ; 60506 (0xec5a)

lri $AR1,    #0x4ef0
lri $IX1,    #0x1ce0
lri $WR1,    #0x8c05
cw 0x15
call send_back  ; 60507 (0xec5b)

lri $AR1,    #0x3153
lri $IX1,    #0x8056
lri $WR1,    #0x3bea
cw 0x15
call send_back  ; 60508 (0xec5c)

lri $AR1,    #0x307a
lri $IX1,    #0x7f22
lri $WR1,    #0xbc0c
cw 0x15
call send_back  ; 60509 (0xec5d)

lri $AR1,    #0xc714
lri $IX1,    #0x6c36
lri $WR1,    #0xac0a
cw 0x15
call send_back  ; 60510 (0xec5e)

lri $AR1,    #0xbcdd
lri $IX1,    #0x5264
lri $WR1,    #0x7ac3
cw 0x15
call send_back  ; 60511 (0xec5f)

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