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

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc00
cw 0x5
call send_back  ; 64513 (0xfc01)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc01
cw 0x5
call send_back  ; 64514 (0xfc02)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc02
cw 0x5
call send_back  ; 64515 (0xfc03)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc03
cw 0x5
call send_back  ; 64516 (0xfc04)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc04
cw 0x5
call send_back  ; 64517 (0xfc05)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc05
cw 0x5
call send_back  ; 64518 (0xfc06)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc06
cw 0x5
call send_back  ; 64519 (0xfc07)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc07
cw 0x5
call send_back  ; 64520 (0xfc08)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc08
cw 0x5
call send_back  ; 64521 (0xfc09)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc09
cw 0x5
call send_back  ; 64522 (0xfc0a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc0a
cw 0x5
call send_back  ; 64523 (0xfc0b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc0b
cw 0x5
call send_back  ; 64524 (0xfc0c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc0c
cw 0x5
call send_back  ; 64525 (0xfc0d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc0d
cw 0x5
call send_back  ; 64526 (0xfc0e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc0e
cw 0x5
call send_back  ; 64527 (0xfc0f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc0f
cw 0x5
call send_back  ; 64528 (0xfc10)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc10
cw 0x5
call send_back  ; 64529 (0xfc11)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc11
cw 0x5
call send_back  ; 64530 (0xfc12)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc12
cw 0x5
call send_back  ; 64531 (0xfc13)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc13
cw 0x5
call send_back  ; 64532 (0xfc14)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc14
cw 0x5
call send_back  ; 64533 (0xfc15)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc15
cw 0x5
call send_back  ; 64534 (0xfc16)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc16
cw 0x5
call send_back  ; 64535 (0xfc17)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc17
cw 0x5
call send_back  ; 64536 (0xfc18)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc18
cw 0x5
call send_back  ; 64537 (0xfc19)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc19
cw 0x5
call send_back  ; 64538 (0xfc1a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc1a
cw 0x5
call send_back  ; 64539 (0xfc1b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc1b
cw 0x5
call send_back  ; 64540 (0xfc1c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc1c
cw 0x5
call send_back  ; 64541 (0xfc1d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc1d
cw 0x5
call send_back  ; 64542 (0xfc1e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc1e
cw 0x5
call send_back  ; 64543 (0xfc1f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc1f
cw 0x5
call send_back  ; 64544 (0xfc20)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc20
cw 0x5
call send_back  ; 64545 (0xfc21)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc21
cw 0x5
call send_back  ; 64546 (0xfc22)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc22
cw 0x5
call send_back  ; 64547 (0xfc23)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc23
cw 0x5
call send_back  ; 64548 (0xfc24)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc24
cw 0x5
call send_back  ; 64549 (0xfc25)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc25
cw 0x5
call send_back  ; 64550 (0xfc26)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc26
cw 0x5
call send_back  ; 64551 (0xfc27)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc27
cw 0x5
call send_back  ; 64552 (0xfc28)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc28
cw 0x5
call send_back  ; 64553 (0xfc29)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc29
cw 0x5
call send_back  ; 64554 (0xfc2a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc2a
cw 0x5
call send_back  ; 64555 (0xfc2b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc2b
cw 0x5
call send_back  ; 64556 (0xfc2c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc2c
cw 0x5
call send_back  ; 64557 (0xfc2d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc2d
cw 0x5
call send_back  ; 64558 (0xfc2e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc2e
cw 0x5
call send_back  ; 64559 (0xfc2f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc2f
cw 0x5
call send_back  ; 64560 (0xfc30)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc30
cw 0x5
call send_back  ; 64561 (0xfc31)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc31
cw 0x5
call send_back  ; 64562 (0xfc32)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc32
cw 0x5
call send_back  ; 64563 (0xfc33)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc33
cw 0x5
call send_back  ; 64564 (0xfc34)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc34
cw 0x5
call send_back  ; 64565 (0xfc35)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc35
cw 0x5
call send_back  ; 64566 (0xfc36)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc36
cw 0x5
call send_back  ; 64567 (0xfc37)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc37
cw 0x5
call send_back  ; 64568 (0xfc38)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc38
cw 0x5
call send_back  ; 64569 (0xfc39)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc39
cw 0x5
call send_back  ; 64570 (0xfc3a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc3a
cw 0x5
call send_back  ; 64571 (0xfc3b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc3b
cw 0x5
call send_back  ; 64572 (0xfc3c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc3c
cw 0x5
call send_back  ; 64573 (0xfc3d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc3d
cw 0x5
call send_back  ; 64574 (0xfc3e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc3e
cw 0x5
call send_back  ; 64575 (0xfc3f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc3f
cw 0x5
call send_back  ; 64576 (0xfc40)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc40
cw 0x5
call send_back  ; 64577 (0xfc41)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc41
cw 0x5
call send_back  ; 64578 (0xfc42)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc42
cw 0x5
call send_back  ; 64579 (0xfc43)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc43
cw 0x5
call send_back  ; 64580 (0xfc44)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc44
cw 0x5
call send_back  ; 64581 (0xfc45)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc45
cw 0x5
call send_back  ; 64582 (0xfc46)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc46
cw 0x5
call send_back  ; 64583 (0xfc47)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc47
cw 0x5
call send_back  ; 64584 (0xfc48)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc48
cw 0x5
call send_back  ; 64585 (0xfc49)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc49
cw 0x5
call send_back  ; 64586 (0xfc4a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc4a
cw 0x5
call send_back  ; 64587 (0xfc4b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc4b
cw 0x5
call send_back  ; 64588 (0xfc4c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc4c
cw 0x5
call send_back  ; 64589 (0xfc4d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc4d
cw 0x5
call send_back  ; 64590 (0xfc4e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc4e
cw 0x5
call send_back  ; 64591 (0xfc4f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc4f
cw 0x5
call send_back  ; 64592 (0xfc50)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc50
cw 0x5
call send_back  ; 64593 (0xfc51)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc51
cw 0x5
call send_back  ; 64594 (0xfc52)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc52
cw 0x5
call send_back  ; 64595 (0xfc53)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc53
cw 0x5
call send_back  ; 64596 (0xfc54)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc54
cw 0x5
call send_back  ; 64597 (0xfc55)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc55
cw 0x5
call send_back  ; 64598 (0xfc56)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc56
cw 0x5
call send_back  ; 64599 (0xfc57)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc57
cw 0x5
call send_back  ; 64600 (0xfc58)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc58
cw 0x5
call send_back  ; 64601 (0xfc59)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc59
cw 0x5
call send_back  ; 64602 (0xfc5a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc5a
cw 0x5
call send_back  ; 64603 (0xfc5b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc5b
cw 0x5
call send_back  ; 64604 (0xfc5c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc5c
cw 0x5
call send_back  ; 64605 (0xfc5d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc5d
cw 0x5
call send_back  ; 64606 (0xfc5e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc5e
cw 0x5
call send_back  ; 64607 (0xfc5f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc5f
cw 0x5
call send_back  ; 64608 (0xfc60)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc60
cw 0x5
call send_back  ; 64609 (0xfc61)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc61
cw 0x5
call send_back  ; 64610 (0xfc62)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc62
cw 0x5
call send_back  ; 64611 (0xfc63)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc63
cw 0x5
call send_back  ; 64612 (0xfc64)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc64
cw 0x5
call send_back  ; 64613 (0xfc65)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc65
cw 0x5
call send_back  ; 64614 (0xfc66)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc66
cw 0x5
call send_back  ; 64615 (0xfc67)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc67
cw 0x5
call send_back  ; 64616 (0xfc68)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc68
cw 0x5
call send_back  ; 64617 (0xfc69)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc69
cw 0x5
call send_back  ; 64618 (0xfc6a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc6a
cw 0x5
call send_back  ; 64619 (0xfc6b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc6b
cw 0x5
call send_back  ; 64620 (0xfc6c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc6c
cw 0x5
call send_back  ; 64621 (0xfc6d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc6d
cw 0x5
call send_back  ; 64622 (0xfc6e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc6e
cw 0x5
call send_back  ; 64623 (0xfc6f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc6f
cw 0x5
call send_back  ; 64624 (0xfc70)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc70
cw 0x5
call send_back  ; 64625 (0xfc71)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc71
cw 0x5
call send_back  ; 64626 (0xfc72)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc72
cw 0x5
call send_back  ; 64627 (0xfc73)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc73
cw 0x5
call send_back  ; 64628 (0xfc74)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc74
cw 0x5
call send_back  ; 64629 (0xfc75)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc75
cw 0x5
call send_back  ; 64630 (0xfc76)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc76
cw 0x5
call send_back  ; 64631 (0xfc77)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc77
cw 0x5
call send_back  ; 64632 (0xfc78)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc78
cw 0x5
call send_back  ; 64633 (0xfc79)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc79
cw 0x5
call send_back  ; 64634 (0xfc7a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc7a
cw 0x5
call send_back  ; 64635 (0xfc7b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc7b
cw 0x5
call send_back  ; 64636 (0xfc7c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc7c
cw 0x5
call send_back  ; 64637 (0xfc7d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc7d
cw 0x5
call send_back  ; 64638 (0xfc7e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc7e
cw 0x5
call send_back  ; 64639 (0xfc7f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xfc7f
cw 0x5
call send_back  ; 64640 (0xfc80)

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

