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

lri $AR1,    #0x48b1
lri $IX1,    #0xf13a
lri $WR1,    #0x7294
cw 0xd
call send_back  ; 22502 (0x57e6)

lri $AR1,    #0xe733
lri $IX1,    #0xdd9a
lri $WR1,    #0x94d3
cw 0xd
call send_back  ; 22503 (0x57e7)

lri $AR1,    #0x7d05
lri $IX1,    #0x68a2
lri $WR1,    #0x7bfc
cw 0xd
call send_back  ; 22504 (0x57e8)

lri $AR1,    #0x217a
lri $IX1,    #0x6a12
lri $WR1,    #0x9f9b
cw 0xd
call send_back  ; 22505 (0x57e9)

lri $AR1,    #0x8a89
lri $IX1,    #0x25e0
lri $WR1,    #0x47dd
cw 0xd
call send_back  ; 22506 (0x57ea)

lri $AR1,    #0x97df
lri $IX1,    #0xf7d8
lri $WR1,    #0xcb07
cw 0xd
call send_back  ; 22507 (0x57eb)

lri $AR1,    #0x7ac8
lri $IX1,    #0xafb6
lri $WR1,    #0xa5d0
cw 0xd
call send_back  ; 22508 (0x57ec)

lri $AR1,    #0xcfe6
lri $IX1,    #0xb8d4
lri $WR1,    #0xbcac
cw 0xd
call send_back  ; 22509 (0x57ed)

lri $AR1,    #0x2eee
lri $IX1,    #0x5476
lri $WR1,    #0x91a1
cw 0xd
call send_back  ; 22510 (0x57ee)

lri $AR1,    #0x7845
lri $IX1,    #0x0cc0
lri $WR1,    #0x9bb0
cw 0xd
call send_back  ; 22511 (0x57ef)

lri $AR1,    #0x5fcc
lri $IX1,    #0xfa60
lri $WR1,    #0x926b
cw 0xd
call send_back  ; 22512 (0x57f0)

lri $AR1,    #0x3fac
lri $IX1,    #0x5e2a
lri $WR1,    #0x49b3
cw 0xd
call send_back  ; 22513 (0x57f1)

lri $AR1,    #0x7d67
lri $IX1,    #0x4b5a
lri $WR1,    #0x874c
cw 0xd
call send_back  ; 22514 (0x57f2)

lri $AR1,    #0x1f13
lri $IX1,    #0x8f00
lri $WR1,    #0x6d37
cw 0xd
call send_back  ; 22515 (0x57f3)

lri $AR1,    #0x75f8
lri $IX1,    #0x843c
lri $WR1,    #0x0983
cw 0xd
call send_back  ; 22516 (0x57f4)

lri $AR1,    #0xdf78
lri $IX1,    #0xfc9e
lri $WR1,    #0x3586
cw 0xd
call send_back  ; 22517 (0x57f5)

lri $AR1,    #0x6c78
lri $IX1,    #0xaf9c
lri $WR1,    #0x8c21
cw 0xd
call send_back  ; 22518 (0x57f6)

lri $AR1,    #0xa331
lri $IX1,    #0xa346
lri $WR1,    #0xc01c
cw 0xd
call send_back  ; 22519 (0x57f7)

lri $AR1,    #0xe6a9
lri $IX1,    #0x9416
lri $WR1,    #0xe129
cw 0xd
call send_back  ; 22520 (0x57f8)

lri $AR1,    #0x3aad
lri $IX1,    #0x6938
lri $WR1,    #0x8791
cw 0xd
call send_back  ; 22521 (0x57f9)

lri $AR1,    #0xfa9b
lri $IX1,    #0x1e0c
lri $WR1,    #0x4c3c
cw 0xd
call send_back  ; 22522 (0x57fa)

lri $AR1,    #0x8cc1
lri $IX1,    #0x1932
lri $WR1,    #0x43fa
cw 0xd
call send_back  ; 22523 (0x57fb)

lri $AR1,    #0x83b6
lri $IX1,    #0x8cf8
lri $WR1,    #0x4ac2
cw 0xd
call send_back  ; 22524 (0x57fc)

lri $AR1,    #0x5a6a
lri $IX1,    #0x1478
lri $WR1,    #0xa4da
cw 0xd
call send_back  ; 22525 (0x57fd)

lri $AR1,    #0x6742
lri $IX1,    #0x2c2e
lri $WR1,    #0x3990
cw 0xd
call send_back  ; 22526 (0x57fe)

lri $AR1,    #0xa61b
lri $IX1,    #0x445e
lri $WR1,    #0xcc81
cw 0xd
call send_back  ; 22527 (0x57ff)

lri $AR1,    #0x706e
lri $IX1,    #0xdf22
lri $WR1,    #0x800f
cw 0xd
call send_back  ; 22528 (0x5800)

lri $AR1,    #0x8681
lri $IX1,    #0x5352
lri $WR1,    #0x74fe
cw 0xd
call send_back  ; 22529 (0x5801)

lri $AR1,    #0x4bd8
lri $IX1,    #0x493c
lri $WR1,    #0xe8e7
cw 0xd
call send_back  ; 22530 (0x5802)

lri $AR1,    #0xacce
lri $IX1,    #0xb55e
lri $WR1,    #0x267b
cw 0xd
call send_back  ; 22531 (0x5803)

lri $AR1,    #0xaa96
lri $IX1,    #0xd90e
lri $WR1,    #0xd027
cw 0xd
call send_back  ; 22532 (0x5804)

lri $AR1,    #0x667f
lri $IX1,    #0x8836
lri $WR1,    #0x6732
cw 0xd
call send_back  ; 22533 (0x5805)

lri $AR1,    #0x94be
lri $IX1,    #0x7f2c
lri $WR1,    #0x4ee7
cw 0xd
call send_back  ; 22534 (0x5806)

lri $AR1,    #0x62a3
lri $IX1,    #0xd2bc
lri $WR1,    #0xccc9
cw 0xd
call send_back  ; 22535 (0x5807)

lri $AR1,    #0x736d
lri $IX1,    #0x586a
lri $WR1,    #0x0c78
cw 0xd
call send_back  ; 22536 (0x5808)

lri $AR1,    #0x82a8
lri $IX1,    #0x2c0a
lri $WR1,    #0x5743
cw 0xd
call send_back  ; 22537 (0x5809)

lri $AR1,    #0xda4f
lri $IX1,    #0x13a8
lri $WR1,    #0xdd08
cw 0xd
call send_back  ; 22538 (0x580a)

lri $AR1,    #0x7e9a
lri $IX1,    #0x51f8
lri $WR1,    #0x7d64
cw 0xd
call send_back  ; 22539 (0x580b)

lri $AR1,    #0x98a9
lri $IX1,    #0x5b1e
lri $WR1,    #0x55cb
cw 0xd
call send_back  ; 22540 (0x580c)

lri $AR1,    #0xa4f8
lri $IX1,    #0xb72a
lri $WR1,    #0xd298
cw 0xd
call send_back  ; 22541 (0x580d)

lri $AR1,    #0x99dd
lri $IX1,    #0x0918
lri $WR1,    #0x7ea1
cw 0xd
call send_back  ; 22542 (0x580e)

lri $AR1,    #0x7dec
lri $IX1,    #0x9090
lri $WR1,    #0xae5d
cw 0xd
call send_back  ; 22543 (0x580f)

lri $AR1,    #0x9d78
lri $IX1,    #0x704c
lri $WR1,    #0x493f
cw 0xd
call send_back  ; 22544 (0x5810)

lri $AR1,    #0x9a23
lri $IX1,    #0x6a70
lri $WR1,    #0xbd2c
cw 0xd
call send_back  ; 22545 (0x5811)

lri $AR1,    #0x4eb3
lri $IX1,    #0x7f96
lri $WR1,    #0x75d9
cw 0xd
call send_back  ; 22546 (0x5812)

lri $AR1,    #0x5508
lri $IX1,    #0xccf2
lri $WR1,    #0x62de
cw 0xd
call send_back  ; 22547 (0x5813)

lri $AR1,    #0x4380
lri $IX1,    #0x094c
lri $WR1,    #0x8d4a
cw 0xd
call send_back  ; 22548 (0x5814)

lri $AR1,    #0xd296
lri $IX1,    #0xf828
lri $WR1,    #0x5696
cw 0xd
call send_back  ; 22549 (0x5815)

lri $AR1,    #0x6b12
lri $IX1,    #0xf5f8
lri $WR1,    #0x98b6
cw 0xd
call send_back  ; 22550 (0x5816)

lri $AR1,    #0x8097
lri $IX1,    #0x3f8c
lri $WR1,    #0x6028
cw 0xd
call send_back  ; 22551 (0x5817)

lri $AR1,    #0x73e0
lri $IX1,    #0xaaac
lri $WR1,    #0xbebc
cw 0xd
call send_back  ; 22552 (0x5818)

lri $AR1,    #0x6375
lri $IX1,    #0x0d16
lri $WR1,    #0x9f03
cw 0xd
call send_back  ; 22553 (0x5819)

lri $AR1,    #0x3135
lri $IX1,    #0x6ac6
lri $WR1,    #0x6e13
cw 0xd
call send_back  ; 22554 (0x581a)

lri $AR1,    #0x767a
lri $IX1,    #0x13be
lri $WR1,    #0x4294
cw 0xd
call send_back  ; 22555 (0x581b)

lri $AR1,    #0x882f
lri $IX1,    #0xfd36
lri $WR1,    #0x3dbc
cw 0xd
call send_back  ; 22556 (0x581c)

lri $AR1,    #0x679c
lri $IX1,    #0xb97e
lri $WR1,    #0x9c36
cw 0xd
call send_back  ; 22557 (0x581d)

lri $AR1,    #0x6c4e
lri $IX1,    #0x5d48
lri $WR1,    #0xaaa2
cw 0xd
call send_back  ; 22558 (0x581e)

lri $AR1,    #0x76c8
lri $IX1,    #0x40e2
lri $WR1,    #0x7294
cw 0xd
call send_back  ; 22559 (0x581f)

lri $AR1,    #0xf379
lri $IX1,    #0xbeec
lri $WR1,    #0x5ac9
cw 0xd
call send_back  ; 22560 (0x5820)

lri $AR1,    #0x40a1
lri $IX1,    #0xba10
lri $WR1,    #0x7e90
cw 0xd
call send_back  ; 22561 (0x5821)

lri $AR1,    #0x8988
lri $IX1,    #0xae7a
lri $WR1,    #0x8df0
cw 0xd
call send_back  ; 22562 (0x5822)

lri $AR1,    #0xbcd1
lri $IX1,    #0x434c
lri $WR1,    #0x79b0
cw 0xd
call send_back  ; 22563 (0x5823)

lri $AR1,    #0x4b47
lri $IX1,    #0x9404
lri $WR1,    #0x63bb
cw 0xd
call send_back  ; 22564 (0x5824)

lri $AR1,    #0xb7ce
lri $IX1,    #0xa100
lri $WR1,    #0x2603
cw 0xd
call send_back  ; 22565 (0x5825)

lri $AR1,    #0x9103
lri $IX1,    #0x6210
lri $WR1,    #0x1f5e
cw 0xd
call send_back  ; 22566 (0x5826)

lri $AR1,    #0x901f
lri $IX1,    #0xb546
lri $WR1,    #0x3789
cw 0xd
call send_back  ; 22567 (0x5827)

lri $AR1,    #0xb094
lri $IX1,    #0xb7ee
lri $WR1,    #0x90c1
cw 0xd
call send_back  ; 22568 (0x5828)

lri $AR1,    #0x7f29
lri $IX1,    #0xdef0
lri $WR1,    #0x871e
cw 0xd
call send_back  ; 22569 (0x5829)

lri $AR1,    #0x7edc
lri $IX1,    #0x3f74
lri $WR1,    #0xcb2a
cw 0xd
call send_back  ; 22570 (0x582a)

lri $AR1,    #0x3570
lri $IX1,    #0xc810
lri $WR1,    #0x76da
cw 0xd
call send_back  ; 22571 (0x582b)

lri $AR1,    #0x18d8
lri $IX1,    #0x8e52
lri $WR1,    #0x5163
cw 0xd
call send_back  ; 22572 (0x582c)

lri $AR1,    #0x926c
lri $IX1,    #0xac00
lri $WR1,    #0x7006
cw 0xd
call send_back  ; 22573 (0x582d)

lri $AR1,    #0x7c24
lri $IX1,    #0x52ce
lri $WR1,    #0x5f65
cw 0xd
call send_back  ; 22574 (0x582e)

lri $AR1,    #0xbfbe
lri $IX1,    #0x9ce8
lri $WR1,    #0x6274
cw 0xd
call send_back  ; 22575 (0x582f)

lri $AR1,    #0x7703
lri $IX1,    #0x1412
lri $WR1,    #0x797f
cw 0xd
call send_back  ; 22576 (0x5830)

lri $AR1,    #0x780c
lri $IX1,    #0xd0c6
lri $WR1,    #0x2d77
cw 0xd
call send_back  ; 22577 (0x5831)

lri $AR1,    #0x77e6
lri $IX1,    #0x4df8
lri $WR1,    #0x68fb
cw 0xd
call send_back  ; 22578 (0x5832)

lri $AR1,    #0xc13a
lri $IX1,    #0x7dfc
lri $WR1,    #0xda40
cw 0xd
call send_back  ; 22579 (0x5833)

lri $AR1,    #0xc478
lri $IX1,    #0x3046
lri $WR1,    #0x4e4c
cw 0xd
call send_back  ; 22580 (0x5834)

lri $AR1,    #0x6237
lri $IX1,    #0x4f50
lri $WR1,    #0x8fc8
cw 0xd
call send_back  ; 22581 (0x5835)

lri $AR1,    #0xa023
lri $IX1,    #0xc986
lri $WR1,    #0x70b0
cw 0xd
call send_back  ; 22582 (0x5836)

lri $AR1,    #0x5c49
lri $IX1,    #0xf77a
lri $WR1,    #0xa83d
cw 0xd
call send_back  ; 22583 (0x5837)

lri $AR1,    #0x6a17
lri $IX1,    #0xe53e
lri $WR1,    #0xf35b
cw 0xd
call send_back  ; 22584 (0x5838)

lri $AR1,    #0xafd0
lri $IX1,    #0xec24
lri $WR1,    #0x4fe6
cw 0xd
call send_back  ; 22585 (0x5839)

lri $AR1,    #0x3ad6
lri $IX1,    #0x65c4
lri $WR1,    #0x981f
cw 0xd
call send_back  ; 22586 (0x583a)

lri $AR1,    #0x348e
lri $IX1,    #0xd080
lri $WR1,    #0x9588
cw 0xd
call send_back  ; 22587 (0x583b)

lri $AR1,    #0x8936
lri $IX1,    #0x6180
lri $WR1,    #0xb792
cw 0xd
call send_back  ; 22588 (0x583c)

lri $AR1,    #0xcd73
lri $IX1,    #0x9742
lri $WR1,    #0x5455
cw 0xd
call send_back  ; 22589 (0x583d)

lri $AR1,    #0x5ef1
lri $IX1,    #0xcbb8
lri $WR1,    #0x96ba
cw 0xd
call send_back  ; 22590 (0x583e)

lri $AR1,    #0xbfe0
lri $IX1,    #0xe42e
lri $WR1,    #0xdf4f
cw 0xd
call send_back  ; 22591 (0x583f)

lri $AR1,    #0xa4a4
lri $IX1,    #0xf0d0
lri $WR1,    #0x4231
cw 0xd
call send_back  ; 22592 (0x5840)

lri $AR1,    #0x7675
lri $IX1,    #0xb51e
lri $WR1,    #0xd632
cw 0xd
call send_back  ; 22593 (0x5841)

lri $AR1,    #0x8d5e
lri $IX1,    #0x8e1c
lri $WR1,    #0x96cd
cw 0xd
call send_back  ; 22594 (0x5842)

lri $AR1,    #0x7750
lri $IX1,    #0xda92
lri $WR1,    #0x8bdd
cw 0xd
call send_back  ; 22595 (0x5843)

lri $AR1,    #0xa9a5
lri $IX1,    #0xcd24
lri $WR1,    #0x9fce
cw 0xd
call send_back  ; 22596 (0x5844)

lri $AR1,    #0x55e2
lri $IX1,    #0x47a8
lri $WR1,    #0x6635
cw 0xd
call send_back  ; 22597 (0x5845)

lri $AR1,    #0x2a00
lri $IX1,    #0xea68
lri $WR1,    #0x727c
cw 0xd
call send_back  ; 22598 (0x5846)

lri $AR1,    #0x6826
lri $IX1,    #0xc1b6
lri $WR1,    #0x1f93
cw 0xd
call send_back  ; 22599 (0x5847)

lri $AR1,    #0x58fa
lri $IX1,    #0xcfac
lri $WR1,    #0xaf58
cw 0xd
call send_back  ; 22600 (0x5848)

lri $AR1,    #0x877d
lri $IX1,    #0xf746
lri $WR1,    #0x51aa
cw 0xd
call send_back  ; 22601 (0x5849)

lri $AR1,    #0xd4b1
lri $IX1,    #0x69c4
lri $WR1,    #0x50c1
cw 0xd
call send_back  ; 22602 (0x584a)

lri $AR1,    #0xa4e3
lri $IX1,    #0x86a0
lri $WR1,    #0x31eb
cw 0xd
call send_back  ; 22603 (0x584b)

lri $AR1,    #0x8fd8
lri $IX1,    #0x01d2
lri $WR1,    #0x6f18
cw 0xd
call send_back  ; 22604 (0x584c)

lri $AR1,    #0x78c3
lri $IX1,    #0xfbd4
lri $WR1,    #0x6774
cw 0xd
call send_back  ; 22605 (0x584d)

lri $AR1,    #0xa243
lri $IX1,    #0x6216
lri $WR1,    #0xa270
cw 0xd
call send_back  ; 22606 (0x584e)

lri $AR1,    #0x963e
lri $IX1,    #0x4e46
lri $WR1,    #0x6274
cw 0xd
call send_back  ; 22607 (0x584f)

lri $AR1,    #0x70ed
lri $IX1,    #0x0e34
lri $WR1,    #0xa9ad
cw 0xd
call send_back  ; 22608 (0x5850)

lri $AR1,    #0xa9ea
lri $IX1,    #0xe5ac
lri $WR1,    #0x9d13
cw 0xd
call send_back  ; 22609 (0x5851)

lri $AR1,    #0xb580
lri $IX1,    #0x56fc
lri $WR1,    #0x7f34
cw 0xd
call send_back  ; 22610 (0x5852)

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