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

lri $AR1,    #0x4000
lri $IX1,    #0xd100
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53505 (0xd101)

lri $AR1,    #0x4000
lri $IX1,    #0xd101
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53506 (0xd102)

lri $AR1,    #0x4000
lri $IX1,    #0xd102
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53507 (0xd103)

lri $AR1,    #0x4000
lri $IX1,    #0xd103
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53508 (0xd104)

lri $AR1,    #0x4000
lri $IX1,    #0xd104
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53509 (0xd105)

lri $AR1,    #0x4000
lri $IX1,    #0xd105
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53510 (0xd106)

lri $AR1,    #0x4000
lri $IX1,    #0xd106
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53511 (0xd107)

lri $AR1,    #0x4000
lri $IX1,    #0xd107
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53512 (0xd108)

lri $AR1,    #0x4000
lri $IX1,    #0xd108
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53513 (0xd109)

lri $AR1,    #0x4000
lri $IX1,    #0xd109
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53514 (0xd10a)

lri $AR1,    #0x4000
lri $IX1,    #0xd10a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53515 (0xd10b)

lri $AR1,    #0x4000
lri $IX1,    #0xd10b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53516 (0xd10c)

lri $AR1,    #0x4000
lri $IX1,    #0xd10c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53517 (0xd10d)

lri $AR1,    #0x4000
lri $IX1,    #0xd10d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53518 (0xd10e)

lri $AR1,    #0x4000
lri $IX1,    #0xd10e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53519 (0xd10f)

lri $AR1,    #0x4000
lri $IX1,    #0xd10f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53520 (0xd110)

lri $AR1,    #0x4000
lri $IX1,    #0xd110
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53521 (0xd111)

lri $AR1,    #0x4000
lri $IX1,    #0xd111
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53522 (0xd112)

lri $AR1,    #0x4000
lri $IX1,    #0xd112
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53523 (0xd113)

lri $AR1,    #0x4000
lri $IX1,    #0xd113
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53524 (0xd114)

lri $AR1,    #0x4000
lri $IX1,    #0xd114
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53525 (0xd115)

lri $AR1,    #0x4000
lri $IX1,    #0xd115
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53526 (0xd116)

lri $AR1,    #0x4000
lri $IX1,    #0xd116
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53527 (0xd117)

lri $AR1,    #0x4000
lri $IX1,    #0xd117
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53528 (0xd118)

lri $AR1,    #0x4000
lri $IX1,    #0xd118
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53529 (0xd119)

lri $AR1,    #0x4000
lri $IX1,    #0xd119
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53530 (0xd11a)

lri $AR1,    #0x4000
lri $IX1,    #0xd11a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53531 (0xd11b)

lri $AR1,    #0x4000
lri $IX1,    #0xd11b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53532 (0xd11c)

lri $AR1,    #0x4000
lri $IX1,    #0xd11c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53533 (0xd11d)

lri $AR1,    #0x4000
lri $IX1,    #0xd11d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53534 (0xd11e)

lri $AR1,    #0x4000
lri $IX1,    #0xd11e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53535 (0xd11f)

lri $AR1,    #0x4000
lri $IX1,    #0xd11f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53536 (0xd120)

lri $AR1,    #0x4000
lri $IX1,    #0xd120
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53537 (0xd121)

lri $AR1,    #0x4000
lri $IX1,    #0xd121
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53538 (0xd122)

lri $AR1,    #0x4000
lri $IX1,    #0xd122
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53539 (0xd123)

lri $AR1,    #0x4000
lri $IX1,    #0xd123
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53540 (0xd124)

lri $AR1,    #0x4000
lri $IX1,    #0xd124
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53541 (0xd125)

lri $AR1,    #0x4000
lri $IX1,    #0xd125
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53542 (0xd126)

lri $AR1,    #0x4000
lri $IX1,    #0xd126
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53543 (0xd127)

lri $AR1,    #0x4000
lri $IX1,    #0xd127
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53544 (0xd128)

lri $AR1,    #0x4000
lri $IX1,    #0xd128
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53545 (0xd129)

lri $AR1,    #0x4000
lri $IX1,    #0xd129
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53546 (0xd12a)

lri $AR1,    #0x4000
lri $IX1,    #0xd12a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53547 (0xd12b)

lri $AR1,    #0x4000
lri $IX1,    #0xd12b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53548 (0xd12c)

lri $AR1,    #0x4000
lri $IX1,    #0xd12c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53549 (0xd12d)

lri $AR1,    #0x4000
lri $IX1,    #0xd12d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53550 (0xd12e)

lri $AR1,    #0x4000
lri $IX1,    #0xd12e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53551 (0xd12f)

lri $AR1,    #0x4000
lri $IX1,    #0xd12f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53552 (0xd130)

lri $AR1,    #0x4000
lri $IX1,    #0xd130
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53553 (0xd131)

lri $AR1,    #0x4000
lri $IX1,    #0xd131
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53554 (0xd132)

lri $AR1,    #0x4000
lri $IX1,    #0xd132
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53555 (0xd133)

lri $AR1,    #0x4000
lri $IX1,    #0xd133
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53556 (0xd134)

lri $AR1,    #0x4000
lri $IX1,    #0xd134
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53557 (0xd135)

lri $AR1,    #0x4000
lri $IX1,    #0xd135
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53558 (0xd136)

lri $AR1,    #0x4000
lri $IX1,    #0xd136
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53559 (0xd137)

lri $AR1,    #0x4000
lri $IX1,    #0xd137
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53560 (0xd138)

lri $AR1,    #0x4000
lri $IX1,    #0xd138
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53561 (0xd139)

lri $AR1,    #0x4000
lri $IX1,    #0xd139
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53562 (0xd13a)

lri $AR1,    #0x4000
lri $IX1,    #0xd13a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53563 (0xd13b)

lri $AR1,    #0x4000
lri $IX1,    #0xd13b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53564 (0xd13c)

lri $AR1,    #0x4000
lri $IX1,    #0xd13c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53565 (0xd13d)

lri $AR1,    #0x4000
lri $IX1,    #0xd13d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53566 (0xd13e)

lri $AR1,    #0x4000
lri $IX1,    #0xd13e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53567 (0xd13f)

lri $AR1,    #0x4000
lri $IX1,    #0xd13f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53568 (0xd140)

lri $AR1,    #0x4000
lri $IX1,    #0xd140
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53569 (0xd141)

lri $AR1,    #0x4000
lri $IX1,    #0xd141
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53570 (0xd142)

lri $AR1,    #0x4000
lri $IX1,    #0xd142
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53571 (0xd143)

lri $AR1,    #0x4000
lri $IX1,    #0xd143
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53572 (0xd144)

lri $AR1,    #0x4000
lri $IX1,    #0xd144
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53573 (0xd145)

lri $AR1,    #0x4000
lri $IX1,    #0xd145
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53574 (0xd146)

lri $AR1,    #0x4000
lri $IX1,    #0xd146
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53575 (0xd147)

lri $AR1,    #0x4000
lri $IX1,    #0xd147
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53576 (0xd148)

lri $AR1,    #0x4000
lri $IX1,    #0xd148
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53577 (0xd149)

lri $AR1,    #0x4000
lri $IX1,    #0xd149
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53578 (0xd14a)

lri $AR1,    #0x4000
lri $IX1,    #0xd14a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53579 (0xd14b)

lri $AR1,    #0x4000
lri $IX1,    #0xd14b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53580 (0xd14c)

lri $AR1,    #0x4000
lri $IX1,    #0xd14c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53581 (0xd14d)

lri $AR1,    #0x4000
lri $IX1,    #0xd14d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53582 (0xd14e)

lri $AR1,    #0x4000
lri $IX1,    #0xd14e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53583 (0xd14f)

lri $AR1,    #0x4000
lri $IX1,    #0xd14f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53584 (0xd150)

lri $AR1,    #0x4000
lri $IX1,    #0xd150
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53585 (0xd151)

lri $AR1,    #0x4000
lri $IX1,    #0xd151
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53586 (0xd152)

lri $AR1,    #0x4000
lri $IX1,    #0xd152
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53587 (0xd153)

lri $AR1,    #0x4000
lri $IX1,    #0xd153
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53588 (0xd154)

lri $AR1,    #0x4000
lri $IX1,    #0xd154
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53589 (0xd155)

lri $AR1,    #0x4000
lri $IX1,    #0xd155
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53590 (0xd156)

lri $AR1,    #0x4000
lri $IX1,    #0xd156
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53591 (0xd157)

lri $AR1,    #0x4000
lri $IX1,    #0xd157
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53592 (0xd158)

lri $AR1,    #0x4000
lri $IX1,    #0xd158
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53593 (0xd159)

lri $AR1,    #0x4000
lri $IX1,    #0xd159
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53594 (0xd15a)

lri $AR1,    #0x4000
lri $IX1,    #0xd15a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53595 (0xd15b)

lri $AR1,    #0x4000
lri $IX1,    #0xd15b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53596 (0xd15c)

lri $AR1,    #0x4000
lri $IX1,    #0xd15c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53597 (0xd15d)

lri $AR1,    #0x4000
lri $IX1,    #0xd15d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53598 (0xd15e)

lri $AR1,    #0x4000
lri $IX1,    #0xd15e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53599 (0xd15f)

lri $AR1,    #0x4000
lri $IX1,    #0xd15f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53600 (0xd160)

lri $AR1,    #0x4000
lri $IX1,    #0xd160
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53601 (0xd161)

lri $AR1,    #0x4000
lri $IX1,    #0xd161
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53602 (0xd162)

lri $AR1,    #0x4000
lri $IX1,    #0xd162
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53603 (0xd163)

lri $AR1,    #0x4000
lri $IX1,    #0xd163
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53604 (0xd164)

lri $AR1,    #0x4000
lri $IX1,    #0xd164
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53605 (0xd165)

lri $AR1,    #0x4000
lri $IX1,    #0xd165
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53606 (0xd166)

lri $AR1,    #0x4000
lri $IX1,    #0xd166
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53607 (0xd167)

lri $AR1,    #0x4000
lri $IX1,    #0xd167
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53608 (0xd168)

lri $AR1,    #0x4000
lri $IX1,    #0xd168
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53609 (0xd169)

lri $AR1,    #0x4000
lri $IX1,    #0xd169
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53610 (0xd16a)

lri $AR1,    #0x4000
lri $IX1,    #0xd16a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53611 (0xd16b)

lri $AR1,    #0x4000
lri $IX1,    #0xd16b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53612 (0xd16c)

lri $AR1,    #0x4000
lri $IX1,    #0xd16c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53613 (0xd16d)

lri $AR1,    #0x4000
lri $IX1,    #0xd16d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53614 (0xd16e)

lri $AR1,    #0x4000
lri $IX1,    #0xd16e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53615 (0xd16f)

lri $AR1,    #0x4000
lri $IX1,    #0xd16f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53616 (0xd170)

lri $AR1,    #0x4000
lri $IX1,    #0xd170
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53617 (0xd171)

lri $AR1,    #0x4000
lri $IX1,    #0xd171
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53618 (0xd172)

lri $AR1,    #0x4000
lri $IX1,    #0xd172
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53619 (0xd173)

lri $AR1,    #0x4000
lri $IX1,    #0xd173
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53620 (0xd174)

lri $AR1,    #0x4000
lri $IX1,    #0xd174
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53621 (0xd175)

lri $AR1,    #0x4000
lri $IX1,    #0xd175
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53622 (0xd176)

lri $AR1,    #0x4000
lri $IX1,    #0xd176
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53623 (0xd177)

lri $AR1,    #0x4000
lri $IX1,    #0xd177
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53624 (0xd178)

lri $AR1,    #0x4000
lri $IX1,    #0xd178
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53625 (0xd179)

lri $AR1,    #0x4000
lri $IX1,    #0xd179
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53626 (0xd17a)

lri $AR1,    #0x4000
lri $IX1,    #0xd17a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53627 (0xd17b)

lri $AR1,    #0x4000
lri $IX1,    #0xd17b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53628 (0xd17c)

lri $AR1,    #0x4000
lri $IX1,    #0xd17c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53629 (0xd17d)

lri $AR1,    #0x4000
lri $IX1,    #0xd17d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53630 (0xd17e)

lri $AR1,    #0x4000
lri $IX1,    #0xd17e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53631 (0xd17f)

lri $AR1,    #0x4000
lri $IX1,    #0xd17f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 53632 (0xd180)

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

