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

lri $AR1,    #0x0080
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60801 (0xed81)

lri $AR1,    #0x0081
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60802 (0xed82)

lri $AR1,    #0x0082
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60803 (0xed83)

lri $AR1,    #0x0083
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60804 (0xed84)

lri $AR1,    #0x0084
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60805 (0xed85)

lri $AR1,    #0x0085
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60806 (0xed86)

lri $AR1,    #0x0086
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60807 (0xed87)

lri $AR1,    #0x0087
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60808 (0xed88)

lri $AR1,    #0x0088
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60809 (0xed89)

lri $AR1,    #0x0089
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60810 (0xed8a)

lri $AR1,    #0x008a
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60811 (0xed8b)

lri $AR1,    #0x008b
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60812 (0xed8c)

lri $AR1,    #0x008c
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60813 (0xed8d)

lri $AR1,    #0x008d
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60814 (0xed8e)

lri $AR1,    #0x008e
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60815 (0xed8f)

lri $AR1,    #0x008f
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60816 (0xed90)

lri $AR1,    #0x0090
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60817 (0xed91)

lri $AR1,    #0x0091
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60818 (0xed92)

lri $AR1,    #0x0092
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60819 (0xed93)

lri $AR1,    #0x0093
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60820 (0xed94)

lri $AR1,    #0x0094
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60821 (0xed95)

lri $AR1,    #0x0095
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60822 (0xed96)

lri $AR1,    #0x0096
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60823 (0xed97)

lri $AR1,    #0x0097
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60824 (0xed98)

lri $AR1,    #0x0098
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60825 (0xed99)

lri $AR1,    #0x0099
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60826 (0xed9a)

lri $AR1,    #0x009a
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60827 (0xed9b)

lri $AR1,    #0x009b
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60828 (0xed9c)

lri $AR1,    #0x009c
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60829 (0xed9d)

lri $AR1,    #0x009d
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60830 (0xed9e)

lri $AR1,    #0x009e
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60831 (0xed9f)

lri $AR1,    #0x009f
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60832 (0xeda0)

lri $AR1,    #0x00a0
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60833 (0xeda1)

lri $AR1,    #0x00a1
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60834 (0xeda2)

lri $AR1,    #0x00a2
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60835 (0xeda3)

lri $AR1,    #0x00a3
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60836 (0xeda4)

lri $AR1,    #0x00a4
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60837 (0xeda5)

lri $AR1,    #0x00a5
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60838 (0xeda6)

lri $AR1,    #0x00a6
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60839 (0xeda7)

lri $AR1,    #0x00a7
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60840 (0xeda8)

lri $AR1,    #0x00a8
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60841 (0xeda9)

lri $AR1,    #0x00a9
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60842 (0xedaa)

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

lri $AR1,    #0x00ab
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60844 (0xedac)

lri $AR1,    #0x00ac
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60845 (0xedad)

lri $AR1,    #0x00ad
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60846 (0xedae)

lri $AR1,    #0x00ae
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60847 (0xedaf)

lri $AR1,    #0x00af
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60848 (0xedb0)

lri $AR1,    #0x00b0
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60849 (0xedb1)

lri $AR1,    #0x00b1
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60850 (0xedb2)

lri $AR1,    #0x00b2
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60851 (0xedb3)

lri $AR1,    #0x00b3
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60852 (0xedb4)

lri $AR1,    #0x00b4
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60853 (0xedb5)

lri $AR1,    #0x00b5
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60854 (0xedb6)

lri $AR1,    #0x00b6
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60855 (0xedb7)

lri $AR1,    #0x00b7
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60856 (0xedb8)

lri $AR1,    #0x00b8
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60857 (0xedb9)

lri $AR1,    #0x00b9
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60858 (0xedba)

lri $AR1,    #0x00ba
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60859 (0xedbb)

lri $AR1,    #0x00bb
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60860 (0xedbc)

lri $AR1,    #0x00bc
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60861 (0xedbd)

lri $AR1,    #0x00bd
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60862 (0xedbe)

lri $AR1,    #0x00be
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60863 (0xedbf)

lri $AR1,    #0x00bf
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60864 (0xedc0)

lri $AR1,    #0x00c0
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60865 (0xedc1)

lri $AR1,    #0x00c1
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60866 (0xedc2)

lri $AR1,    #0x00c2
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60867 (0xedc3)

lri $AR1,    #0x00c3
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60868 (0xedc4)

lri $AR1,    #0x00c4
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60869 (0xedc5)

lri $AR1,    #0x00c5
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60870 (0xedc6)

lri $AR1,    #0x00c6
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60871 (0xedc7)

lri $AR1,    #0x00c7
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60872 (0xedc8)

lri $AR1,    #0x00c8
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60873 (0xedc9)

lri $AR1,    #0x00c9
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60874 (0xedca)

lri $AR1,    #0x00ca
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60875 (0xedcb)

lri $AR1,    #0x00cb
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60876 (0xedcc)

lri $AR1,    #0x00cc
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60877 (0xedcd)

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

lri $AR1,    #0x00ce
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60879 (0xedcf)

lri $AR1,    #0x00cf
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60880 (0xedd0)

lri $AR1,    #0x00d0
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60881 (0xedd1)

lri $AR1,    #0x00d1
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60882 (0xedd2)

lri $AR1,    #0x00d2
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60883 (0xedd3)

lri $AR1,    #0x00d3
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60884 (0xedd4)

lri $AR1,    #0x00d4
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60885 (0xedd5)

lri $AR1,    #0x00d5
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60886 (0xedd6)

lri $AR1,    #0x00d6
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60887 (0xedd7)

lri $AR1,    #0x00d7
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60888 (0xedd8)

lri $AR1,    #0x00d8
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60889 (0xedd9)

lri $AR1,    #0x00d9
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60890 (0xedda)

lri $AR1,    #0x00da
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60891 (0xeddb)

lri $AR1,    #0x00db
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60892 (0xeddc)

lri $AR1,    #0x00dc
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60893 (0xeddd)

lri $AR1,    #0x00dd
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60894 (0xedde)

lri $AR1,    #0x00de
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60895 (0xeddf)

lri $AR1,    #0x00df
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60896 (0xede0)

lri $AR1,    #0x00e0
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60897 (0xede1)

lri $AR1,    #0x00e1
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60898 (0xede2)

lri $AR1,    #0x00e2
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60899 (0xede3)

lri $AR1,    #0x00e3
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60900 (0xede4)

lri $AR1,    #0x00e4
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60901 (0xede5)

lri $AR1,    #0x00e5
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60902 (0xede6)

lri $AR1,    #0x00e6
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60903 (0xede7)

lri $AR1,    #0x00e7
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60904 (0xede8)

lri $AR1,    #0x00e8
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60905 (0xede9)

lri $AR1,    #0x00e9
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60906 (0xedea)

lri $AR1,    #0x00ea
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60907 (0xedeb)

lri $AR1,    #0x00eb
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60908 (0xedec)

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

lri $AR1,    #0x00ed
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60910 (0xedee)

lri $AR1,    #0x00ee
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60911 (0xedef)

lri $AR1,    #0x00ef
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60912 (0xedf0)

lri $AR1,    #0x00f0
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60913 (0xedf1)

lri $AR1,    #0x00f1
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60914 (0xedf2)

lri $AR1,    #0x00f2
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60915 (0xedf3)

lri $AR1,    #0x00f3
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60916 (0xedf4)

lri $AR1,    #0x00f4
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60917 (0xedf5)

lri $AR1,    #0x00f5
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60918 (0xedf6)

lri $AR1,    #0x00f6
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60919 (0xedf7)

lri $AR1,    #0x00f7
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60920 (0xedf8)

lri $AR1,    #0x00f8
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60921 (0xedf9)

lri $AR1,    #0x00f9
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60922 (0xedfa)

lri $AR1,    #0x00fa
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60923 (0xedfb)

lri $AR1,    #0x00fb
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60924 (0xedfc)

lri $AR1,    #0x00fc
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60925 (0xedfd)

lri $AR1,    #0x00fd
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60926 (0xedfe)

lri $AR1,    #0x00fe
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60927 (0xedff)

lri $AR1,    #0x00ff
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60928 (0xee00)

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