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

lri $AR1,    #0x0080
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52609 (0xcd81)

lri $AR1,    #0x0081
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52610 (0xcd82)

lri $AR1,    #0x0082
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52611 (0xcd83)

lri $AR1,    #0x0083
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52612 (0xcd84)

lri $AR1,    #0x0084
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52613 (0xcd85)

lri $AR1,    #0x0085
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52614 (0xcd86)

lri $AR1,    #0x0086
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52615 (0xcd87)

lri $AR1,    #0x0087
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52616 (0xcd88)

lri $AR1,    #0x0088
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52617 (0xcd89)

lri $AR1,    #0x0089
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52618 (0xcd8a)

lri $AR1,    #0x008a
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52619 (0xcd8b)

lri $AR1,    #0x008b
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52620 (0xcd8c)

lri $AR1,    #0x008c
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52621 (0xcd8d)

lri $AR1,    #0x008d
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52622 (0xcd8e)

lri $AR1,    #0x008e
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52623 (0xcd8f)

lri $AR1,    #0x008f
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52624 (0xcd90)

lri $AR1,    #0x0090
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52625 (0xcd91)

lri $AR1,    #0x0091
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52626 (0xcd92)

lri $AR1,    #0x0092
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52627 (0xcd93)

lri $AR1,    #0x0093
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52628 (0xcd94)

lri $AR1,    #0x0094
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52629 (0xcd95)

lri $AR1,    #0x0095
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52630 (0xcd96)

lri $AR1,    #0x0096
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52631 (0xcd97)

lri $AR1,    #0x0097
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52632 (0xcd98)

lri $AR1,    #0x0098
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52633 (0xcd99)

lri $AR1,    #0x0099
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52634 (0xcd9a)

lri $AR1,    #0x009a
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52635 (0xcd9b)

lri $AR1,    #0x009b
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52636 (0xcd9c)

lri $AR1,    #0x009c
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52637 (0xcd9d)

lri $AR1,    #0x009d
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52638 (0xcd9e)

lri $AR1,    #0x009e
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52639 (0xcd9f)

lri $AR1,    #0x009f
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52640 (0xcda0)

lri $AR1,    #0x00a0
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52641 (0xcda1)

lri $AR1,    #0x00a1
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52642 (0xcda2)

lri $AR1,    #0x00a2
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52643 (0xcda3)

lri $AR1,    #0x00a3
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52644 (0xcda4)

lri $AR1,    #0x00a4
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52645 (0xcda5)

lri $AR1,    #0x00a5
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52646 (0xcda6)

lri $AR1,    #0x00a6
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52647 (0xcda7)

lri $AR1,    #0x00a7
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52648 (0xcda8)

lri $AR1,    #0x00a8
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52649 (0xcda9)

lri $AR1,    #0x00a9
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52650 (0xcdaa)

lri $AR1,    #0x00aa
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52651 (0xcdab)

lri $AR1,    #0x00ab
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52652 (0xcdac)

lri $AR1,    #0x00ac
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52653 (0xcdad)

lri $AR1,    #0x00ad
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52654 (0xcdae)

lri $AR1,    #0x00ae
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52655 (0xcdaf)

lri $AR1,    #0x00af
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52656 (0xcdb0)

lri $AR1,    #0x00b0
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52657 (0xcdb1)

lri $AR1,    #0x00b1
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52658 (0xcdb2)

lri $AR1,    #0x00b2
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52659 (0xcdb3)

lri $AR1,    #0x00b3
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52660 (0xcdb4)

lri $AR1,    #0x00b4
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52661 (0xcdb5)

lri $AR1,    #0x00b5
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52662 (0xcdb6)

lri $AR1,    #0x00b6
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52663 (0xcdb7)

lri $AR1,    #0x00b7
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52664 (0xcdb8)

lri $AR1,    #0x00b8
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52665 (0xcdb9)

lri $AR1,    #0x00b9
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52666 (0xcdba)

lri $AR1,    #0x00ba
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52667 (0xcdbb)

lri $AR1,    #0x00bb
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52668 (0xcdbc)

lri $AR1,    #0x00bc
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52669 (0xcdbd)

lri $AR1,    #0x00bd
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52670 (0xcdbe)

lri $AR1,    #0x00be
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52671 (0xcdbf)

lri $AR1,    #0x00bf
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52672 (0xcdc0)

lri $AR1,    #0x00c0
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52673 (0xcdc1)

lri $AR1,    #0x00c1
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52674 (0xcdc2)

lri $AR1,    #0x00c2
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52675 (0xcdc3)

lri $AR1,    #0x00c3
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52676 (0xcdc4)

lri $AR1,    #0x00c4
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52677 (0xcdc5)

lri $AR1,    #0x00c5
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52678 (0xcdc6)

lri $AR1,    #0x00c6
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52679 (0xcdc7)

lri $AR1,    #0x00c7
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52680 (0xcdc8)

lri $AR1,    #0x00c8
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52681 (0xcdc9)

lri $AR1,    #0x00c9
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52682 (0xcdca)

lri $AR1,    #0x00ca
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52683 (0xcdcb)

lri $AR1,    #0x00cb
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52684 (0xcdcc)

lri $AR1,    #0x00cc
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52685 (0xcdcd)

lri $AR1,    #0x00cd
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52686 (0xcdce)

lri $AR1,    #0x00ce
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52687 (0xcdcf)

lri $AR1,    #0x00cf
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52688 (0xcdd0)

lri $AR1,    #0x00d0
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52689 (0xcdd1)

lri $AR1,    #0x00d1
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52690 (0xcdd2)

lri $AR1,    #0x00d2
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52691 (0xcdd3)

lri $AR1,    #0x00d3
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52692 (0xcdd4)

lri $AR1,    #0x00d4
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52693 (0xcdd5)

lri $AR1,    #0x00d5
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52694 (0xcdd6)

lri $AR1,    #0x00d6
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52695 (0xcdd7)

lri $AR1,    #0x00d7
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52696 (0xcdd8)

lri $AR1,    #0x00d8
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52697 (0xcdd9)

lri $AR1,    #0x00d9
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52698 (0xcdda)

lri $AR1,    #0x00da
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52699 (0xcddb)

lri $AR1,    #0x00db
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52700 (0xcddc)

lri $AR1,    #0x00dc
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52701 (0xcddd)

lri $AR1,    #0x00dd
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52702 (0xcdde)

lri $AR1,    #0x00de
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52703 (0xcddf)

lri $AR1,    #0x00df
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52704 (0xcde0)

lri $AR1,    #0x00e0
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52705 (0xcde1)

lri $AR1,    #0x00e1
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52706 (0xcde2)

lri $AR1,    #0x00e2
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52707 (0xcde3)

lri $AR1,    #0x00e3
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52708 (0xcde4)

lri $AR1,    #0x00e4
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52709 (0xcde5)

lri $AR1,    #0x00e5
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52710 (0xcde6)

lri $AR1,    #0x00e6
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52711 (0xcde7)

lri $AR1,    #0x00e7
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52712 (0xcde8)

lri $AR1,    #0x00e8
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52713 (0xcde9)

lri $AR1,    #0x00e9
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52714 (0xcdea)

lri $AR1,    #0x00ea
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52715 (0xcdeb)

lri $AR1,    #0x00eb
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52716 (0xcdec)

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

lri $AR1,    #0x00ed
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52718 (0xcdee)

lri $AR1,    #0x00ee
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52719 (0xcdef)

lri $AR1,    #0x00ef
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52720 (0xcdf0)

lri $AR1,    #0x00f0
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52721 (0xcdf1)

lri $AR1,    #0x00f1
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52722 (0xcdf2)

lri $AR1,    #0x00f2
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52723 (0xcdf3)

lri $AR1,    #0x00f3
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52724 (0xcdf4)

lri $AR1,    #0x00f4
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52725 (0xcdf5)

lri $AR1,    #0x00f5
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52726 (0xcdf6)

lri $AR1,    #0x00f6
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52727 (0xcdf7)

lri $AR1,    #0x00f7
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52728 (0xcdf8)

lri $AR1,    #0x00f8
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52729 (0xcdf9)

lri $AR1,    #0x00f9
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52730 (0xcdfa)

lri $AR1,    #0x00fa
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52731 (0xcdfb)

lri $AR1,    #0x00fb
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52732 (0xcdfc)

lri $AR1,    #0x00fc
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52733 (0xcdfd)

lri $AR1,    #0x00fd
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52734 (0xcdfe)

lri $AR1,    #0x00fe
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52735 (0xcdff)

lri $AR1,    #0x00ff
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52736 (0xce00)

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