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

lri $AR1,    #0x0080
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43649 (0xaa81)

lri $AR1,    #0x0081
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43650 (0xaa82)

lri $AR1,    #0x0082
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43651 (0xaa83)

lri $AR1,    #0x0083
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43652 (0xaa84)

lri $AR1,    #0x0084
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43653 (0xaa85)

lri $AR1,    #0x0085
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43654 (0xaa86)

lri $AR1,    #0x0086
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43655 (0xaa87)

lri $AR1,    #0x0087
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43656 (0xaa88)

lri $AR1,    #0x0088
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43657 (0xaa89)

lri $AR1,    #0x0089
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43658 (0xaa8a)

lri $AR1,    #0x008a
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43659 (0xaa8b)

lri $AR1,    #0x008b
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43660 (0xaa8c)

lri $AR1,    #0x008c
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43661 (0xaa8d)

lri $AR1,    #0x008d
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43662 (0xaa8e)

lri $AR1,    #0x008e
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43663 (0xaa8f)

lri $AR1,    #0x008f
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43664 (0xaa90)

lri $AR1,    #0x0090
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43665 (0xaa91)

lri $AR1,    #0x0091
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43666 (0xaa92)

lri $AR1,    #0x0092
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43667 (0xaa93)

lri $AR1,    #0x0093
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43668 (0xaa94)

lri $AR1,    #0x0094
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43669 (0xaa95)

lri $AR1,    #0x0095
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43670 (0xaa96)

lri $AR1,    #0x0096
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43671 (0xaa97)

lri $AR1,    #0x0097
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43672 (0xaa98)

lri $AR1,    #0x0098
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43673 (0xaa99)

lri $AR1,    #0x0099
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43674 (0xaa9a)

lri $AR1,    #0x009a
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43675 (0xaa9b)

lri $AR1,    #0x009b
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43676 (0xaa9c)

lri $AR1,    #0x009c
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43677 (0xaa9d)

lri $AR1,    #0x009d
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43678 (0xaa9e)

lri $AR1,    #0x009e
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43679 (0xaa9f)

lri $AR1,    #0x009f
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43680 (0xaaa0)

lri $AR1,    #0x00a0
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43681 (0xaaa1)

lri $AR1,    #0x00a1
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43682 (0xaaa2)

lri $AR1,    #0x00a2
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43683 (0xaaa3)

lri $AR1,    #0x00a3
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43684 (0xaaa4)

lri $AR1,    #0x00a4
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43685 (0xaaa5)

lri $AR1,    #0x00a5
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43686 (0xaaa6)

lri $AR1,    #0x00a6
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43687 (0xaaa7)

lri $AR1,    #0x00a7
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43688 (0xaaa8)

lri $AR1,    #0x00a8
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43689 (0xaaa9)

lri $AR1,    #0x00a9
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43690 (0xaaaa)

lri $AR1,    #0x00aa
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43691 (0xaaab)

lri $AR1,    #0x00ab
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43692 (0xaaac)

lri $AR1,    #0x00ac
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43693 (0xaaad)

lri $AR1,    #0x00ad
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43694 (0xaaae)

lri $AR1,    #0x00ae
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43695 (0xaaaf)

lri $AR1,    #0x00af
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43696 (0xaab0)

lri $AR1,    #0x00b0
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43697 (0xaab1)

lri $AR1,    #0x00b1
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43698 (0xaab2)

lri $AR1,    #0x00b2
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43699 (0xaab3)

lri $AR1,    #0x00b3
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43700 (0xaab4)

lri $AR1,    #0x00b4
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43701 (0xaab5)

lri $AR1,    #0x00b5
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43702 (0xaab6)

lri $AR1,    #0x00b6
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43703 (0xaab7)

lri $AR1,    #0x00b7
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43704 (0xaab8)

lri $AR1,    #0x00b8
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43705 (0xaab9)

lri $AR1,    #0x00b9
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43706 (0xaaba)

lri $AR1,    #0x00ba
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43707 (0xaabb)

lri $AR1,    #0x00bb
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43708 (0xaabc)

lri $AR1,    #0x00bc
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43709 (0xaabd)

lri $AR1,    #0x00bd
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43710 (0xaabe)

lri $AR1,    #0x00be
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43711 (0xaabf)

lri $AR1,    #0x00bf
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43712 (0xaac0)

lri $AR1,    #0x00c0
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43713 (0xaac1)

lri $AR1,    #0x00c1
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43714 (0xaac2)

lri $AR1,    #0x00c2
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43715 (0xaac3)

lri $AR1,    #0x00c3
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43716 (0xaac4)

lri $AR1,    #0x00c4
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43717 (0xaac5)

lri $AR1,    #0x00c5
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43718 (0xaac6)

lri $AR1,    #0x00c6
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43719 (0xaac7)

lri $AR1,    #0x00c7
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43720 (0xaac8)

lri $AR1,    #0x00c8
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43721 (0xaac9)

lri $AR1,    #0x00c9
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43722 (0xaaca)

lri $AR1,    #0x00ca
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43723 (0xaacb)

lri $AR1,    #0x00cb
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43724 (0xaacc)

lri $AR1,    #0x00cc
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43725 (0xaacd)

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

lri $AR1,    #0x00ce
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43727 (0xaacf)

lri $AR1,    #0x00cf
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43728 (0xaad0)

lri $AR1,    #0x00d0
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43729 (0xaad1)

lri $AR1,    #0x00d1
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43730 (0xaad2)

lri $AR1,    #0x00d2
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43731 (0xaad3)

lri $AR1,    #0x00d3
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43732 (0xaad4)

lri $AR1,    #0x00d4
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43733 (0xaad5)

lri $AR1,    #0x00d5
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43734 (0xaad6)

lri $AR1,    #0x00d6
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43735 (0xaad7)

lri $AR1,    #0x00d7
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43736 (0xaad8)

lri $AR1,    #0x00d8
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43737 (0xaad9)

lri $AR1,    #0x00d9
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43738 (0xaada)

lri $AR1,    #0x00da
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43739 (0xaadb)

lri $AR1,    #0x00db
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43740 (0xaadc)

lri $AR1,    #0x00dc
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43741 (0xaadd)

lri $AR1,    #0x00dd
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43742 (0xaade)

lri $AR1,    #0x00de
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43743 (0xaadf)

lri $AR1,    #0x00df
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43744 (0xaae0)

lri $AR1,    #0x00e0
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43745 (0xaae1)

lri $AR1,    #0x00e1
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43746 (0xaae2)

lri $AR1,    #0x00e2
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43747 (0xaae3)

lri $AR1,    #0x00e3
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43748 (0xaae4)

lri $AR1,    #0x00e4
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43749 (0xaae5)

lri $AR1,    #0x00e5
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43750 (0xaae6)

lri $AR1,    #0x00e6
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43751 (0xaae7)

lri $AR1,    #0x00e7
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43752 (0xaae8)

lri $AR1,    #0x00e8
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43753 (0xaae9)

lri $AR1,    #0x00e9
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43754 (0xaaea)

lri $AR1,    #0x00ea
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43755 (0xaaeb)

lri $AR1,    #0x00eb
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43756 (0xaaec)

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

lri $AR1,    #0x00ed
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43758 (0xaaee)

lri $AR1,    #0x00ee
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43759 (0xaaef)

lri $AR1,    #0x00ef
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43760 (0xaaf0)

lri $AR1,    #0x00f0
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43761 (0xaaf1)

lri $AR1,    #0x00f1
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43762 (0xaaf2)

lri $AR1,    #0x00f2
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43763 (0xaaf3)

lri $AR1,    #0x00f3
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43764 (0xaaf4)

lri $AR1,    #0x00f4
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43765 (0xaaf5)

lri $AR1,    #0x00f5
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43766 (0xaaf6)

lri $AR1,    #0x00f6
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43767 (0xaaf7)

lri $AR1,    #0x00f7
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43768 (0xaaf8)

lri $AR1,    #0x00f8
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43769 (0xaaf9)

lri $AR1,    #0x00f9
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43770 (0xaafa)

lri $AR1,    #0x00fa
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43771 (0xaafb)

lri $AR1,    #0x00fb
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43772 (0xaafc)

lri $AR1,    #0x00fc
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43773 (0xaafd)

lri $AR1,    #0x00fd
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43774 (0xaafe)

lri $AR1,    #0x00fe
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43775 (0xaaff)

lri $AR1,    #0x00ff
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43776 (0xab00)

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