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

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec80
cw 0x9
call send_back  ; 60545 (0xec81)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec81
cw 0x9
call send_back  ; 60546 (0xec82)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec82
cw 0x9
call send_back  ; 60547 (0xec83)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec83
cw 0x9
call send_back  ; 60548 (0xec84)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec84
cw 0x9
call send_back  ; 60549 (0xec85)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec85
cw 0x9
call send_back  ; 60550 (0xec86)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec86
cw 0x9
call send_back  ; 60551 (0xec87)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec87
cw 0x9
call send_back  ; 60552 (0xec88)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec88
cw 0x9
call send_back  ; 60553 (0xec89)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec89
cw 0x9
call send_back  ; 60554 (0xec8a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec8a
cw 0x9
call send_back  ; 60555 (0xec8b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec8b
cw 0x9
call send_back  ; 60556 (0xec8c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec8c
cw 0x9
call send_back  ; 60557 (0xec8d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec8d
cw 0x9
call send_back  ; 60558 (0xec8e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec8e
cw 0x9
call send_back  ; 60559 (0xec8f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec8f
cw 0x9
call send_back  ; 60560 (0xec90)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec90
cw 0x9
call send_back  ; 60561 (0xec91)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec91
cw 0x9
call send_back  ; 60562 (0xec92)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec92
cw 0x9
call send_back  ; 60563 (0xec93)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec93
cw 0x9
call send_back  ; 60564 (0xec94)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec94
cw 0x9
call send_back  ; 60565 (0xec95)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec95
cw 0x9
call send_back  ; 60566 (0xec96)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec96
cw 0x9
call send_back  ; 60567 (0xec97)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec97
cw 0x9
call send_back  ; 60568 (0xec98)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec98
cw 0x9
call send_back  ; 60569 (0xec99)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec99
cw 0x9
call send_back  ; 60570 (0xec9a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec9a
cw 0x9
call send_back  ; 60571 (0xec9b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec9b
cw 0x9
call send_back  ; 60572 (0xec9c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec9c
cw 0x9
call send_back  ; 60573 (0xec9d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec9d
cw 0x9
call send_back  ; 60574 (0xec9e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec9e
cw 0x9
call send_back  ; 60575 (0xec9f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xec9f
cw 0x9
call send_back  ; 60576 (0xeca0)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeca0
cw 0x9
call send_back  ; 60577 (0xeca1)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeca1
cw 0x9
call send_back  ; 60578 (0xeca2)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeca2
cw 0x9
call send_back  ; 60579 (0xeca3)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeca3
cw 0x9
call send_back  ; 60580 (0xeca4)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeca4
cw 0x9
call send_back  ; 60581 (0xeca5)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeca5
cw 0x9
call send_back  ; 60582 (0xeca6)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeca6
cw 0x9
call send_back  ; 60583 (0xeca7)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeca7
cw 0x9
call send_back  ; 60584 (0xeca8)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeca8
cw 0x9
call send_back  ; 60585 (0xeca9)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeca9
cw 0x9
call send_back  ; 60586 (0xecaa)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecaa
cw 0x9
call send_back  ; 60587 (0xecab)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecab
cw 0x9
call send_back  ; 60588 (0xecac)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecac
cw 0x9
call send_back  ; 60589 (0xecad)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecad
cw 0x9
call send_back  ; 60590 (0xecae)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecae
cw 0x9
call send_back  ; 60591 (0xecaf)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecaf
cw 0x9
call send_back  ; 60592 (0xecb0)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecb0
cw 0x9
call send_back  ; 60593 (0xecb1)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecb1
cw 0x9
call send_back  ; 60594 (0xecb2)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecb2
cw 0x9
call send_back  ; 60595 (0xecb3)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecb3
cw 0x9
call send_back  ; 60596 (0xecb4)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecb4
cw 0x9
call send_back  ; 60597 (0xecb5)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecb5
cw 0x9
call send_back  ; 60598 (0xecb6)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecb6
cw 0x9
call send_back  ; 60599 (0xecb7)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecb7
cw 0x9
call send_back  ; 60600 (0xecb8)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecb8
cw 0x9
call send_back  ; 60601 (0xecb9)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecb9
cw 0x9
call send_back  ; 60602 (0xecba)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecba
cw 0x9
call send_back  ; 60603 (0xecbb)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecbb
cw 0x9
call send_back  ; 60604 (0xecbc)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecbc
cw 0x9
call send_back  ; 60605 (0xecbd)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecbd
cw 0x9
call send_back  ; 60606 (0xecbe)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecbe
cw 0x9
call send_back  ; 60607 (0xecbf)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecbf
cw 0x9
call send_back  ; 60608 (0xecc0)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecc0
cw 0x9
call send_back  ; 60609 (0xecc1)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecc1
cw 0x9
call send_back  ; 60610 (0xecc2)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecc2
cw 0x9
call send_back  ; 60611 (0xecc3)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecc3
cw 0x9
call send_back  ; 60612 (0xecc4)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecc4
cw 0x9
call send_back  ; 60613 (0xecc5)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecc5
cw 0x9
call send_back  ; 60614 (0xecc6)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecc6
cw 0x9
call send_back  ; 60615 (0xecc7)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecc7
cw 0x9
call send_back  ; 60616 (0xecc8)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecc8
cw 0x9
call send_back  ; 60617 (0xecc9)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecc9
cw 0x9
call send_back  ; 60618 (0xecca)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecca
cw 0x9
call send_back  ; 60619 (0xeccb)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeccb
cw 0x9
call send_back  ; 60620 (0xeccc)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeccc
cw 0x9
call send_back  ; 60621 (0xeccd)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeccd
cw 0x9
call send_back  ; 60622 (0xecce)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecce
cw 0x9
call send_back  ; 60623 (0xeccf)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeccf
cw 0x9
call send_back  ; 60624 (0xecd0)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecd0
cw 0x9
call send_back  ; 60625 (0xecd1)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecd1
cw 0x9
call send_back  ; 60626 (0xecd2)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecd2
cw 0x9
call send_back  ; 60627 (0xecd3)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecd3
cw 0x9
call send_back  ; 60628 (0xecd4)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecd4
cw 0x9
call send_back  ; 60629 (0xecd5)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecd5
cw 0x9
call send_back  ; 60630 (0xecd6)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecd6
cw 0x9
call send_back  ; 60631 (0xecd7)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecd7
cw 0x9
call send_back  ; 60632 (0xecd8)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecd8
cw 0x9
call send_back  ; 60633 (0xecd9)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecd9
cw 0x9
call send_back  ; 60634 (0xecda)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecda
cw 0x9
call send_back  ; 60635 (0xecdb)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecdb
cw 0x9
call send_back  ; 60636 (0xecdc)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecdc
cw 0x9
call send_back  ; 60637 (0xecdd)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecdd
cw 0x9
call send_back  ; 60638 (0xecde)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecde
cw 0x9
call send_back  ; 60639 (0xecdf)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecdf
cw 0x9
call send_back  ; 60640 (0xece0)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xece0
cw 0x9
call send_back  ; 60641 (0xece1)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xece1
cw 0x9
call send_back  ; 60642 (0xece2)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xece2
cw 0x9
call send_back  ; 60643 (0xece3)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xece3
cw 0x9
call send_back  ; 60644 (0xece4)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xece4
cw 0x9
call send_back  ; 60645 (0xece5)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xece5
cw 0x9
call send_back  ; 60646 (0xece6)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xece6
cw 0x9
call send_back  ; 60647 (0xece7)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xece7
cw 0x9
call send_back  ; 60648 (0xece8)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xece8
cw 0x9
call send_back  ; 60649 (0xece9)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xece9
cw 0x9
call send_back  ; 60650 (0xecea)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecea
cw 0x9
call send_back  ; 60651 (0xeceb)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeceb
cw 0x9
call send_back  ; 60652 (0xecec)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecec
cw 0x9
call send_back  ; 60653 (0xeced)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xeced
cw 0x9
call send_back  ; 60654 (0xecee)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecee
cw 0x9
call send_back  ; 60655 (0xecef)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecef
cw 0x9
call send_back  ; 60656 (0xecf0)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecf0
cw 0x9
call send_back  ; 60657 (0xecf1)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecf1
cw 0x9
call send_back  ; 60658 (0xecf2)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecf2
cw 0x9
call send_back  ; 60659 (0xecf3)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecf3
cw 0x9
call send_back  ; 60660 (0xecf4)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecf4
cw 0x9
call send_back  ; 60661 (0xecf5)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecf5
cw 0x9
call send_back  ; 60662 (0xecf6)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecf6
cw 0x9
call send_back  ; 60663 (0xecf7)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecf7
cw 0x9
call send_back  ; 60664 (0xecf8)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecf8
cw 0x9
call send_back  ; 60665 (0xecf9)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecf9
cw 0x9
call send_back  ; 60666 (0xecfa)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecfa
cw 0x9
call send_back  ; 60667 (0xecfb)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecfb
cw 0x9
call send_back  ; 60668 (0xecfc)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecfc
cw 0x9
call send_back  ; 60669 (0xecfd)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecfd
cw 0x9
call send_back  ; 60670 (0xecfe)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecfe
cw 0x9
call send_back  ; 60671 (0xecff)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xecff
cw 0x9
call send_back  ; 60672 (0xed00)

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

