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

lri $AR1,    #0x0080
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60545 (0xec81)

lri $AR1,    #0x0081
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60546 (0xec82)

lri $AR1,    #0x0082
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60547 (0xec83)

lri $AR1,    #0x0083
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60548 (0xec84)

lri $AR1,    #0x0084
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60549 (0xec85)

lri $AR1,    #0x0085
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60550 (0xec86)

lri $AR1,    #0x0086
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60551 (0xec87)

lri $AR1,    #0x0087
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60552 (0xec88)

lri $AR1,    #0x0088
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60553 (0xec89)

lri $AR1,    #0x0089
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60554 (0xec8a)

lri $AR1,    #0x008a
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60555 (0xec8b)

lri $AR1,    #0x008b
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60556 (0xec8c)

lri $AR1,    #0x008c
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60557 (0xec8d)

lri $AR1,    #0x008d
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60558 (0xec8e)

lri $AR1,    #0x008e
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60559 (0xec8f)

lri $AR1,    #0x008f
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60560 (0xec90)

lri $AR1,    #0x0090
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60561 (0xec91)

lri $AR1,    #0x0091
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60562 (0xec92)

lri $AR1,    #0x0092
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60563 (0xec93)

lri $AR1,    #0x0093
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60564 (0xec94)

lri $AR1,    #0x0094
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60565 (0xec95)

lri $AR1,    #0x0095
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60566 (0xec96)

lri $AR1,    #0x0096
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60567 (0xec97)

lri $AR1,    #0x0097
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60568 (0xec98)

lri $AR1,    #0x0098
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60569 (0xec99)

lri $AR1,    #0x0099
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60570 (0xec9a)

lri $AR1,    #0x009a
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60571 (0xec9b)

lri $AR1,    #0x009b
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60572 (0xec9c)

lri $AR1,    #0x009c
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60573 (0xec9d)

lri $AR1,    #0x009d
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60574 (0xec9e)

lri $AR1,    #0x009e
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60575 (0xec9f)

lri $AR1,    #0x009f
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60576 (0xeca0)

lri $AR1,    #0x00a0
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60577 (0xeca1)

lri $AR1,    #0x00a1
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60578 (0xeca2)

lri $AR1,    #0x00a2
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60579 (0xeca3)

lri $AR1,    #0x00a3
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60580 (0xeca4)

lri $AR1,    #0x00a4
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60581 (0xeca5)

lri $AR1,    #0x00a5
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60582 (0xeca6)

lri $AR1,    #0x00a6
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60583 (0xeca7)

lri $AR1,    #0x00a7
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60584 (0xeca8)

lri $AR1,    #0x00a8
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60585 (0xeca9)

lri $AR1,    #0x00a9
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60586 (0xecaa)

lri $AR1,    #0x00aa
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60587 (0xecab)

lri $AR1,    #0x00ab
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60588 (0xecac)

lri $AR1,    #0x00ac
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60589 (0xecad)

lri $AR1,    #0x00ad
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60590 (0xecae)

lri $AR1,    #0x00ae
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60591 (0xecaf)

lri $AR1,    #0x00af
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60592 (0xecb0)

lri $AR1,    #0x00b0
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60593 (0xecb1)

lri $AR1,    #0x00b1
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60594 (0xecb2)

lri $AR1,    #0x00b2
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60595 (0xecb3)

lri $AR1,    #0x00b3
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60596 (0xecb4)

lri $AR1,    #0x00b4
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60597 (0xecb5)

lri $AR1,    #0x00b5
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60598 (0xecb6)

lri $AR1,    #0x00b6
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60599 (0xecb7)

lri $AR1,    #0x00b7
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60600 (0xecb8)

lri $AR1,    #0x00b8
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60601 (0xecb9)

lri $AR1,    #0x00b9
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60602 (0xecba)

lri $AR1,    #0x00ba
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60603 (0xecbb)

lri $AR1,    #0x00bb
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60604 (0xecbc)

lri $AR1,    #0x00bc
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60605 (0xecbd)

lri $AR1,    #0x00bd
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60606 (0xecbe)

lri $AR1,    #0x00be
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60607 (0xecbf)

lri $AR1,    #0x00bf
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60608 (0xecc0)

lri $AR1,    #0x00c0
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60609 (0xecc1)

lri $AR1,    #0x00c1
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60610 (0xecc2)

lri $AR1,    #0x00c2
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60611 (0xecc3)

lri $AR1,    #0x00c3
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60612 (0xecc4)

lri $AR1,    #0x00c4
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60613 (0xecc5)

lri $AR1,    #0x00c5
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60614 (0xecc6)

lri $AR1,    #0x00c6
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60615 (0xecc7)

lri $AR1,    #0x00c7
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60616 (0xecc8)

lri $AR1,    #0x00c8
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60617 (0xecc9)

lri $AR1,    #0x00c9
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60618 (0xecca)

lri $AR1,    #0x00ca
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60619 (0xeccb)

lri $AR1,    #0x00cb
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60620 (0xeccc)

lri $AR1,    #0x00cc
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60621 (0xeccd)

lri $AR1,    #0x00cd
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60622 (0xecce)

lri $AR1,    #0x00ce
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60623 (0xeccf)

lri $AR1,    #0x00cf
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60624 (0xecd0)

lri $AR1,    #0x00d0
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60625 (0xecd1)

lri $AR1,    #0x00d1
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60626 (0xecd2)

lri $AR1,    #0x00d2
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60627 (0xecd3)

lri $AR1,    #0x00d3
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60628 (0xecd4)

lri $AR1,    #0x00d4
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60629 (0xecd5)

lri $AR1,    #0x00d5
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60630 (0xecd6)

lri $AR1,    #0x00d6
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60631 (0xecd7)

lri $AR1,    #0x00d7
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60632 (0xecd8)

lri $AR1,    #0x00d8
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60633 (0xecd9)

lri $AR1,    #0x00d9
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60634 (0xecda)

lri $AR1,    #0x00da
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60635 (0xecdb)

lri $AR1,    #0x00db
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60636 (0xecdc)

lri $AR1,    #0x00dc
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60637 (0xecdd)

lri $AR1,    #0x00dd
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60638 (0xecde)

lri $AR1,    #0x00de
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60639 (0xecdf)

lri $AR1,    #0x00df
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60640 (0xece0)

lri $AR1,    #0x00e0
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60641 (0xece1)

lri $AR1,    #0x00e1
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60642 (0xece2)

lri $AR1,    #0x00e2
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60643 (0xece3)

lri $AR1,    #0x00e3
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60644 (0xece4)

lri $AR1,    #0x00e4
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60645 (0xece5)

lri $AR1,    #0x00e5
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60646 (0xece6)

lri $AR1,    #0x00e6
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60647 (0xece7)

lri $AR1,    #0x00e7
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60648 (0xece8)

lri $AR1,    #0x00e8
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60649 (0xece9)

lri $AR1,    #0x00e9
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60650 (0xecea)

lri $AR1,    #0x00ea
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60651 (0xeceb)

lri $AR1,    #0x00eb
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60652 (0xecec)

lri $AR1,    #0x00ec
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60653 (0xeced)

lri $AR1,    #0x00ed
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60654 (0xecee)

lri $AR1,    #0x00ee
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60655 (0xecef)

lri $AR1,    #0x00ef
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60656 (0xecf0)

lri $AR1,    #0x00f0
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60657 (0xecf1)

lri $AR1,    #0x00f1
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60658 (0xecf2)

lri $AR1,    #0x00f2
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60659 (0xecf3)

lri $AR1,    #0x00f3
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60660 (0xecf4)

lri $AR1,    #0x00f4
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60661 (0xecf5)

lri $AR1,    #0x00f5
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60662 (0xecf6)

lri $AR1,    #0x00f6
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60663 (0xecf7)

lri $AR1,    #0x00f7
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60664 (0xecf8)

lri $AR1,    #0x00f8
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60665 (0xecf9)

lri $AR1,    #0x00f9
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60666 (0xecfa)

lri $AR1,    #0x00fa
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60667 (0xecfb)

lri $AR1,    #0x00fb
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60668 (0xecfc)

lri $AR1,    #0x00fc
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60669 (0xecfd)

lri $AR1,    #0x00fd
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60670 (0xecfe)

lri $AR1,    #0x00fe
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60671 (0xecff)

lri $AR1,    #0x00ff
lri $IX1,    #0x0000
lri $WR1,    #0x00ec
cw 0x5
call send_back  ; 60672 (0xed00)

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