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

lri $AR1,    #0x4000
lri $IX1,    #0xc400
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50177 (0xc401)

lri $AR1,    #0x4000
lri $IX1,    #0xc401
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50178 (0xc402)

lri $AR1,    #0x4000
lri $IX1,    #0xc402
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50179 (0xc403)

lri $AR1,    #0x4000
lri $IX1,    #0xc403
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50180 (0xc404)

lri $AR1,    #0x4000
lri $IX1,    #0xc404
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50181 (0xc405)

lri $AR1,    #0x4000
lri $IX1,    #0xc405
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50182 (0xc406)

lri $AR1,    #0x4000
lri $IX1,    #0xc406
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50183 (0xc407)

lri $AR1,    #0x4000
lri $IX1,    #0xc407
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50184 (0xc408)

lri $AR1,    #0x4000
lri $IX1,    #0xc408
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50185 (0xc409)

lri $AR1,    #0x4000
lri $IX1,    #0xc409
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50186 (0xc40a)

lri $AR1,    #0x4000
lri $IX1,    #0xc40a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50187 (0xc40b)

lri $AR1,    #0x4000
lri $IX1,    #0xc40b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50188 (0xc40c)

lri $AR1,    #0x4000
lri $IX1,    #0xc40c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50189 (0xc40d)

lri $AR1,    #0x4000
lri $IX1,    #0xc40d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50190 (0xc40e)

lri $AR1,    #0x4000
lri $IX1,    #0xc40e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50191 (0xc40f)

lri $AR1,    #0x4000
lri $IX1,    #0xc40f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50192 (0xc410)

lri $AR1,    #0x4000
lri $IX1,    #0xc410
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50193 (0xc411)

lri $AR1,    #0x4000
lri $IX1,    #0xc411
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50194 (0xc412)

lri $AR1,    #0x4000
lri $IX1,    #0xc412
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50195 (0xc413)

lri $AR1,    #0x4000
lri $IX1,    #0xc413
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50196 (0xc414)

lri $AR1,    #0x4000
lri $IX1,    #0xc414
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50197 (0xc415)

lri $AR1,    #0x4000
lri $IX1,    #0xc415
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50198 (0xc416)

lri $AR1,    #0x4000
lri $IX1,    #0xc416
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50199 (0xc417)

lri $AR1,    #0x4000
lri $IX1,    #0xc417
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50200 (0xc418)

lri $AR1,    #0x4000
lri $IX1,    #0xc418
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50201 (0xc419)

lri $AR1,    #0x4000
lri $IX1,    #0xc419
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50202 (0xc41a)

lri $AR1,    #0x4000
lri $IX1,    #0xc41a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50203 (0xc41b)

lri $AR1,    #0x4000
lri $IX1,    #0xc41b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50204 (0xc41c)

lri $AR1,    #0x4000
lri $IX1,    #0xc41c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50205 (0xc41d)

lri $AR1,    #0x4000
lri $IX1,    #0xc41d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50206 (0xc41e)

lri $AR1,    #0x4000
lri $IX1,    #0xc41e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50207 (0xc41f)

lri $AR1,    #0x4000
lri $IX1,    #0xc41f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50208 (0xc420)

lri $AR1,    #0x4000
lri $IX1,    #0xc420
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50209 (0xc421)

lri $AR1,    #0x4000
lri $IX1,    #0xc421
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50210 (0xc422)

lri $AR1,    #0x4000
lri $IX1,    #0xc422
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50211 (0xc423)

lri $AR1,    #0x4000
lri $IX1,    #0xc423
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50212 (0xc424)

lri $AR1,    #0x4000
lri $IX1,    #0xc424
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50213 (0xc425)

lri $AR1,    #0x4000
lri $IX1,    #0xc425
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50214 (0xc426)

lri $AR1,    #0x4000
lri $IX1,    #0xc426
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50215 (0xc427)

lri $AR1,    #0x4000
lri $IX1,    #0xc427
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50216 (0xc428)

lri $AR1,    #0x4000
lri $IX1,    #0xc428
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50217 (0xc429)

lri $AR1,    #0x4000
lri $IX1,    #0xc429
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50218 (0xc42a)

lri $AR1,    #0x4000
lri $IX1,    #0xc42a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50219 (0xc42b)

lri $AR1,    #0x4000
lri $IX1,    #0xc42b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50220 (0xc42c)

lri $AR1,    #0x4000
lri $IX1,    #0xc42c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50221 (0xc42d)

lri $AR1,    #0x4000
lri $IX1,    #0xc42d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50222 (0xc42e)

lri $AR1,    #0x4000
lri $IX1,    #0xc42e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50223 (0xc42f)

lri $AR1,    #0x4000
lri $IX1,    #0xc42f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50224 (0xc430)

lri $AR1,    #0x4000
lri $IX1,    #0xc430
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50225 (0xc431)

lri $AR1,    #0x4000
lri $IX1,    #0xc431
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50226 (0xc432)

lri $AR1,    #0x4000
lri $IX1,    #0xc432
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50227 (0xc433)

lri $AR1,    #0x4000
lri $IX1,    #0xc433
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50228 (0xc434)

lri $AR1,    #0x4000
lri $IX1,    #0xc434
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50229 (0xc435)

lri $AR1,    #0x4000
lri $IX1,    #0xc435
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50230 (0xc436)

lri $AR1,    #0x4000
lri $IX1,    #0xc436
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50231 (0xc437)

lri $AR1,    #0x4000
lri $IX1,    #0xc437
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50232 (0xc438)

lri $AR1,    #0x4000
lri $IX1,    #0xc438
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50233 (0xc439)

lri $AR1,    #0x4000
lri $IX1,    #0xc439
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50234 (0xc43a)

lri $AR1,    #0x4000
lri $IX1,    #0xc43a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50235 (0xc43b)

lri $AR1,    #0x4000
lri $IX1,    #0xc43b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50236 (0xc43c)

lri $AR1,    #0x4000
lri $IX1,    #0xc43c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50237 (0xc43d)

lri $AR1,    #0x4000
lri $IX1,    #0xc43d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50238 (0xc43e)

lri $AR1,    #0x4000
lri $IX1,    #0xc43e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50239 (0xc43f)

lri $AR1,    #0x4000
lri $IX1,    #0xc43f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50240 (0xc440)

lri $AR1,    #0x4000
lri $IX1,    #0xc440
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50241 (0xc441)

lri $AR1,    #0x4000
lri $IX1,    #0xc441
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50242 (0xc442)

lri $AR1,    #0x4000
lri $IX1,    #0xc442
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50243 (0xc443)

lri $AR1,    #0x4000
lri $IX1,    #0xc443
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50244 (0xc444)

lri $AR1,    #0x4000
lri $IX1,    #0xc444
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50245 (0xc445)

lri $AR1,    #0x4000
lri $IX1,    #0xc445
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50246 (0xc446)

lri $AR1,    #0x4000
lri $IX1,    #0xc446
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50247 (0xc447)

lri $AR1,    #0x4000
lri $IX1,    #0xc447
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50248 (0xc448)

lri $AR1,    #0x4000
lri $IX1,    #0xc448
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50249 (0xc449)

lri $AR1,    #0x4000
lri $IX1,    #0xc449
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50250 (0xc44a)

lri $AR1,    #0x4000
lri $IX1,    #0xc44a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50251 (0xc44b)

lri $AR1,    #0x4000
lri $IX1,    #0xc44b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50252 (0xc44c)

lri $AR1,    #0x4000
lri $IX1,    #0xc44c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50253 (0xc44d)

lri $AR1,    #0x4000
lri $IX1,    #0xc44d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50254 (0xc44e)

lri $AR1,    #0x4000
lri $IX1,    #0xc44e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50255 (0xc44f)

lri $AR1,    #0x4000
lri $IX1,    #0xc44f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50256 (0xc450)

lri $AR1,    #0x4000
lri $IX1,    #0xc450
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50257 (0xc451)

lri $AR1,    #0x4000
lri $IX1,    #0xc451
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50258 (0xc452)

lri $AR1,    #0x4000
lri $IX1,    #0xc452
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50259 (0xc453)

lri $AR1,    #0x4000
lri $IX1,    #0xc453
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50260 (0xc454)

lri $AR1,    #0x4000
lri $IX1,    #0xc454
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50261 (0xc455)

lri $AR1,    #0x4000
lri $IX1,    #0xc455
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50262 (0xc456)

lri $AR1,    #0x4000
lri $IX1,    #0xc456
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50263 (0xc457)

lri $AR1,    #0x4000
lri $IX1,    #0xc457
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50264 (0xc458)

lri $AR1,    #0x4000
lri $IX1,    #0xc458
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50265 (0xc459)

lri $AR1,    #0x4000
lri $IX1,    #0xc459
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50266 (0xc45a)

lri $AR1,    #0x4000
lri $IX1,    #0xc45a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50267 (0xc45b)

lri $AR1,    #0x4000
lri $IX1,    #0xc45b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50268 (0xc45c)

lri $AR1,    #0x4000
lri $IX1,    #0xc45c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50269 (0xc45d)

lri $AR1,    #0x4000
lri $IX1,    #0xc45d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50270 (0xc45e)

lri $AR1,    #0x4000
lri $IX1,    #0xc45e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50271 (0xc45f)

lri $AR1,    #0x4000
lri $IX1,    #0xc45f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50272 (0xc460)

lri $AR1,    #0x4000
lri $IX1,    #0xc460
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50273 (0xc461)

lri $AR1,    #0x4000
lri $IX1,    #0xc461
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50274 (0xc462)

lri $AR1,    #0x4000
lri $IX1,    #0xc462
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50275 (0xc463)

lri $AR1,    #0x4000
lri $IX1,    #0xc463
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50276 (0xc464)

lri $AR1,    #0x4000
lri $IX1,    #0xc464
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50277 (0xc465)

lri $AR1,    #0x4000
lri $IX1,    #0xc465
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50278 (0xc466)

lri $AR1,    #0x4000
lri $IX1,    #0xc466
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50279 (0xc467)

lri $AR1,    #0x4000
lri $IX1,    #0xc467
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50280 (0xc468)

lri $AR1,    #0x4000
lri $IX1,    #0xc468
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50281 (0xc469)

lri $AR1,    #0x4000
lri $IX1,    #0xc469
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50282 (0xc46a)

lri $AR1,    #0x4000
lri $IX1,    #0xc46a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50283 (0xc46b)

lri $AR1,    #0x4000
lri $IX1,    #0xc46b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50284 (0xc46c)

lri $AR1,    #0x4000
lri $IX1,    #0xc46c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50285 (0xc46d)

lri $AR1,    #0x4000
lri $IX1,    #0xc46d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50286 (0xc46e)

lri $AR1,    #0x4000
lri $IX1,    #0xc46e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50287 (0xc46f)

lri $AR1,    #0x4000
lri $IX1,    #0xc46f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50288 (0xc470)

lri $AR1,    #0x4000
lri $IX1,    #0xc470
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50289 (0xc471)

lri $AR1,    #0x4000
lri $IX1,    #0xc471
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50290 (0xc472)

lri $AR1,    #0x4000
lri $IX1,    #0xc472
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50291 (0xc473)

lri $AR1,    #0x4000
lri $IX1,    #0xc473
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50292 (0xc474)

lri $AR1,    #0x4000
lri $IX1,    #0xc474
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50293 (0xc475)

lri $AR1,    #0x4000
lri $IX1,    #0xc475
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50294 (0xc476)

lri $AR1,    #0x4000
lri $IX1,    #0xc476
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50295 (0xc477)

lri $AR1,    #0x4000
lri $IX1,    #0xc477
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50296 (0xc478)

lri $AR1,    #0x4000
lri $IX1,    #0xc478
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50297 (0xc479)

lri $AR1,    #0x4000
lri $IX1,    #0xc479
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50298 (0xc47a)

lri $AR1,    #0x4000
lri $IX1,    #0xc47a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50299 (0xc47b)

lri $AR1,    #0x4000
lri $IX1,    #0xc47b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50300 (0xc47c)

lri $AR1,    #0x4000
lri $IX1,    #0xc47c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50301 (0xc47d)

lri $AR1,    #0x4000
lri $IX1,    #0xc47d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50302 (0xc47e)

lri $AR1,    #0x4000
lri $IX1,    #0xc47e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50303 (0xc47f)

lri $AR1,    #0x4000
lri $IX1,    #0xc47f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 50304 (0xc480)

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

