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

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd00
cw 0x9
call send_back  ; 48385 (0xbd01)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd01
cw 0x9
call send_back  ; 48386 (0xbd02)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd02
cw 0x9
call send_back  ; 48387 (0xbd03)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd03
cw 0x9
call send_back  ; 48388 (0xbd04)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd04
cw 0x9
call send_back  ; 48389 (0xbd05)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd05
cw 0x9
call send_back  ; 48390 (0xbd06)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd06
cw 0x9
call send_back  ; 48391 (0xbd07)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd07
cw 0x9
call send_back  ; 48392 (0xbd08)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd08
cw 0x9
call send_back  ; 48393 (0xbd09)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd09
cw 0x9
call send_back  ; 48394 (0xbd0a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd0a
cw 0x9
call send_back  ; 48395 (0xbd0b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd0b
cw 0x9
call send_back  ; 48396 (0xbd0c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd0c
cw 0x9
call send_back  ; 48397 (0xbd0d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd0d
cw 0x9
call send_back  ; 48398 (0xbd0e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd0e
cw 0x9
call send_back  ; 48399 (0xbd0f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd0f
cw 0x9
call send_back  ; 48400 (0xbd10)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd10
cw 0x9
call send_back  ; 48401 (0xbd11)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd11
cw 0x9
call send_back  ; 48402 (0xbd12)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd12
cw 0x9
call send_back  ; 48403 (0xbd13)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd13
cw 0x9
call send_back  ; 48404 (0xbd14)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd14
cw 0x9
call send_back  ; 48405 (0xbd15)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd15
cw 0x9
call send_back  ; 48406 (0xbd16)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd16
cw 0x9
call send_back  ; 48407 (0xbd17)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd17
cw 0x9
call send_back  ; 48408 (0xbd18)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd18
cw 0x9
call send_back  ; 48409 (0xbd19)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd19
cw 0x9
call send_back  ; 48410 (0xbd1a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd1a
cw 0x9
call send_back  ; 48411 (0xbd1b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd1b
cw 0x9
call send_back  ; 48412 (0xbd1c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd1c
cw 0x9
call send_back  ; 48413 (0xbd1d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd1d
cw 0x9
call send_back  ; 48414 (0xbd1e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd1e
cw 0x9
call send_back  ; 48415 (0xbd1f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd1f
cw 0x9
call send_back  ; 48416 (0xbd20)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd20
cw 0x9
call send_back  ; 48417 (0xbd21)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd21
cw 0x9
call send_back  ; 48418 (0xbd22)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd22
cw 0x9
call send_back  ; 48419 (0xbd23)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd23
cw 0x9
call send_back  ; 48420 (0xbd24)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd24
cw 0x9
call send_back  ; 48421 (0xbd25)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd25
cw 0x9
call send_back  ; 48422 (0xbd26)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd26
cw 0x9
call send_back  ; 48423 (0xbd27)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd27
cw 0x9
call send_back  ; 48424 (0xbd28)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd28
cw 0x9
call send_back  ; 48425 (0xbd29)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd29
cw 0x9
call send_back  ; 48426 (0xbd2a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd2a
cw 0x9
call send_back  ; 48427 (0xbd2b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd2b
cw 0x9
call send_back  ; 48428 (0xbd2c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd2c
cw 0x9
call send_back  ; 48429 (0xbd2d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd2d
cw 0x9
call send_back  ; 48430 (0xbd2e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd2e
cw 0x9
call send_back  ; 48431 (0xbd2f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd2f
cw 0x9
call send_back  ; 48432 (0xbd30)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd30
cw 0x9
call send_back  ; 48433 (0xbd31)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd31
cw 0x9
call send_back  ; 48434 (0xbd32)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd32
cw 0x9
call send_back  ; 48435 (0xbd33)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd33
cw 0x9
call send_back  ; 48436 (0xbd34)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd34
cw 0x9
call send_back  ; 48437 (0xbd35)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd35
cw 0x9
call send_back  ; 48438 (0xbd36)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd36
cw 0x9
call send_back  ; 48439 (0xbd37)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd37
cw 0x9
call send_back  ; 48440 (0xbd38)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd38
cw 0x9
call send_back  ; 48441 (0xbd39)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd39
cw 0x9
call send_back  ; 48442 (0xbd3a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd3a
cw 0x9
call send_back  ; 48443 (0xbd3b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd3b
cw 0x9
call send_back  ; 48444 (0xbd3c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd3c
cw 0x9
call send_back  ; 48445 (0xbd3d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd3d
cw 0x9
call send_back  ; 48446 (0xbd3e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd3e
cw 0x9
call send_back  ; 48447 (0xbd3f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd3f
cw 0x9
call send_back  ; 48448 (0xbd40)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd40
cw 0x9
call send_back  ; 48449 (0xbd41)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd41
cw 0x9
call send_back  ; 48450 (0xbd42)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd42
cw 0x9
call send_back  ; 48451 (0xbd43)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd43
cw 0x9
call send_back  ; 48452 (0xbd44)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd44
cw 0x9
call send_back  ; 48453 (0xbd45)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd45
cw 0x9
call send_back  ; 48454 (0xbd46)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd46
cw 0x9
call send_back  ; 48455 (0xbd47)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd47
cw 0x9
call send_back  ; 48456 (0xbd48)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd48
cw 0x9
call send_back  ; 48457 (0xbd49)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd49
cw 0x9
call send_back  ; 48458 (0xbd4a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd4a
cw 0x9
call send_back  ; 48459 (0xbd4b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd4b
cw 0x9
call send_back  ; 48460 (0xbd4c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd4c
cw 0x9
call send_back  ; 48461 (0xbd4d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd4d
cw 0x9
call send_back  ; 48462 (0xbd4e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd4e
cw 0x9
call send_back  ; 48463 (0xbd4f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd4f
cw 0x9
call send_back  ; 48464 (0xbd50)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd50
cw 0x9
call send_back  ; 48465 (0xbd51)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd51
cw 0x9
call send_back  ; 48466 (0xbd52)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd52
cw 0x9
call send_back  ; 48467 (0xbd53)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd53
cw 0x9
call send_back  ; 48468 (0xbd54)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd54
cw 0x9
call send_back  ; 48469 (0xbd55)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd55
cw 0x9
call send_back  ; 48470 (0xbd56)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd56
cw 0x9
call send_back  ; 48471 (0xbd57)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd57
cw 0x9
call send_back  ; 48472 (0xbd58)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd58
cw 0x9
call send_back  ; 48473 (0xbd59)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd59
cw 0x9
call send_back  ; 48474 (0xbd5a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd5a
cw 0x9
call send_back  ; 48475 (0xbd5b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd5b
cw 0x9
call send_back  ; 48476 (0xbd5c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd5c
cw 0x9
call send_back  ; 48477 (0xbd5d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd5d
cw 0x9
call send_back  ; 48478 (0xbd5e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd5e
cw 0x9
call send_back  ; 48479 (0xbd5f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd5f
cw 0x9
call send_back  ; 48480 (0xbd60)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd60
cw 0x9
call send_back  ; 48481 (0xbd61)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd61
cw 0x9
call send_back  ; 48482 (0xbd62)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd62
cw 0x9
call send_back  ; 48483 (0xbd63)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd63
cw 0x9
call send_back  ; 48484 (0xbd64)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd64
cw 0x9
call send_back  ; 48485 (0xbd65)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd65
cw 0x9
call send_back  ; 48486 (0xbd66)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd66
cw 0x9
call send_back  ; 48487 (0xbd67)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd67
cw 0x9
call send_back  ; 48488 (0xbd68)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd68
cw 0x9
call send_back  ; 48489 (0xbd69)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd69
cw 0x9
call send_back  ; 48490 (0xbd6a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd6a
cw 0x9
call send_back  ; 48491 (0xbd6b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd6b
cw 0x9
call send_back  ; 48492 (0xbd6c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd6c
cw 0x9
call send_back  ; 48493 (0xbd6d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd6d
cw 0x9
call send_back  ; 48494 (0xbd6e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd6e
cw 0x9
call send_back  ; 48495 (0xbd6f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd6f
cw 0x9
call send_back  ; 48496 (0xbd70)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd70
cw 0x9
call send_back  ; 48497 (0xbd71)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd71
cw 0x9
call send_back  ; 48498 (0xbd72)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd72
cw 0x9
call send_back  ; 48499 (0xbd73)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd73
cw 0x9
call send_back  ; 48500 (0xbd74)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd74
cw 0x9
call send_back  ; 48501 (0xbd75)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd75
cw 0x9
call send_back  ; 48502 (0xbd76)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd76
cw 0x9
call send_back  ; 48503 (0xbd77)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd77
cw 0x9
call send_back  ; 48504 (0xbd78)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd78
cw 0x9
call send_back  ; 48505 (0xbd79)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd79
cw 0x9
call send_back  ; 48506 (0xbd7a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd7a
cw 0x9
call send_back  ; 48507 (0xbd7b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd7b
cw 0x9
call send_back  ; 48508 (0xbd7c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd7c
cw 0x9
call send_back  ; 48509 (0xbd7d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd7d
cw 0x9
call send_back  ; 48510 (0xbd7e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd7e
cw 0x9
call send_back  ; 48511 (0xbd7f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xbd7f
cw 0x9
call send_back  ; 48512 (0xbd80)

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

