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

lri $AR1,    #0x0080
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44929 (0xaf81)

lri $AR1,    #0x0081
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44930 (0xaf82)

lri $AR1,    #0x0082
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44931 (0xaf83)

lri $AR1,    #0x0083
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44932 (0xaf84)

lri $AR1,    #0x0084
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44933 (0xaf85)

lri $AR1,    #0x0085
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44934 (0xaf86)

lri $AR1,    #0x0086
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44935 (0xaf87)

lri $AR1,    #0x0087
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44936 (0xaf88)

lri $AR1,    #0x0088
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44937 (0xaf89)

lri $AR1,    #0x0089
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44938 (0xaf8a)

lri $AR1,    #0x008a
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44939 (0xaf8b)

lri $AR1,    #0x008b
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44940 (0xaf8c)

lri $AR1,    #0x008c
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44941 (0xaf8d)

lri $AR1,    #0x008d
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44942 (0xaf8e)

lri $AR1,    #0x008e
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44943 (0xaf8f)

lri $AR1,    #0x008f
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44944 (0xaf90)

lri $AR1,    #0x0090
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44945 (0xaf91)

lri $AR1,    #0x0091
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44946 (0xaf92)

lri $AR1,    #0x0092
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44947 (0xaf93)

lri $AR1,    #0x0093
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44948 (0xaf94)

lri $AR1,    #0x0094
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44949 (0xaf95)

lri $AR1,    #0x0095
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44950 (0xaf96)

lri $AR1,    #0x0096
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44951 (0xaf97)

lri $AR1,    #0x0097
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44952 (0xaf98)

lri $AR1,    #0x0098
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44953 (0xaf99)

lri $AR1,    #0x0099
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44954 (0xaf9a)

lri $AR1,    #0x009a
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44955 (0xaf9b)

lri $AR1,    #0x009b
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44956 (0xaf9c)

lri $AR1,    #0x009c
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44957 (0xaf9d)

lri $AR1,    #0x009d
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44958 (0xaf9e)

lri $AR1,    #0x009e
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44959 (0xaf9f)

lri $AR1,    #0x009f
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44960 (0xafa0)

lri $AR1,    #0x00a0
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44961 (0xafa1)

lri $AR1,    #0x00a1
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44962 (0xafa2)

lri $AR1,    #0x00a2
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44963 (0xafa3)

lri $AR1,    #0x00a3
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44964 (0xafa4)

lri $AR1,    #0x00a4
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44965 (0xafa5)

lri $AR1,    #0x00a5
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44966 (0xafa6)

lri $AR1,    #0x00a6
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44967 (0xafa7)

lri $AR1,    #0x00a7
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44968 (0xafa8)

lri $AR1,    #0x00a8
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44969 (0xafa9)

lri $AR1,    #0x00a9
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44970 (0xafaa)

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

lri $AR1,    #0x00ab
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44972 (0xafac)

lri $AR1,    #0x00ac
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44973 (0xafad)

lri $AR1,    #0x00ad
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44974 (0xafae)

lri $AR1,    #0x00ae
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44975 (0xafaf)

lri $AR1,    #0x00af
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44976 (0xafb0)

lri $AR1,    #0x00b0
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44977 (0xafb1)

lri $AR1,    #0x00b1
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44978 (0xafb2)

lri $AR1,    #0x00b2
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44979 (0xafb3)

lri $AR1,    #0x00b3
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44980 (0xafb4)

lri $AR1,    #0x00b4
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44981 (0xafb5)

lri $AR1,    #0x00b5
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44982 (0xafb6)

lri $AR1,    #0x00b6
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44983 (0xafb7)

lri $AR1,    #0x00b7
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44984 (0xafb8)

lri $AR1,    #0x00b8
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44985 (0xafb9)

lri $AR1,    #0x00b9
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44986 (0xafba)

lri $AR1,    #0x00ba
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44987 (0xafbb)

lri $AR1,    #0x00bb
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44988 (0xafbc)

lri $AR1,    #0x00bc
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44989 (0xafbd)

lri $AR1,    #0x00bd
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44990 (0xafbe)

lri $AR1,    #0x00be
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44991 (0xafbf)

lri $AR1,    #0x00bf
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44992 (0xafc0)

lri $AR1,    #0x00c0
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44993 (0xafc1)

lri $AR1,    #0x00c1
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44994 (0xafc2)

lri $AR1,    #0x00c2
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44995 (0xafc3)

lri $AR1,    #0x00c3
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44996 (0xafc4)

lri $AR1,    #0x00c4
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44997 (0xafc5)

lri $AR1,    #0x00c5
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44998 (0xafc6)

lri $AR1,    #0x00c6
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 44999 (0xafc7)

lri $AR1,    #0x00c7
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45000 (0xafc8)

lri $AR1,    #0x00c8
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45001 (0xafc9)

lri $AR1,    #0x00c9
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45002 (0xafca)

lri $AR1,    #0x00ca
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45003 (0xafcb)

lri $AR1,    #0x00cb
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45004 (0xafcc)

lri $AR1,    #0x00cc
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45005 (0xafcd)

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

lri $AR1,    #0x00ce
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45007 (0xafcf)

lri $AR1,    #0x00cf
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45008 (0xafd0)

lri $AR1,    #0x00d0
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45009 (0xafd1)

lri $AR1,    #0x00d1
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45010 (0xafd2)

lri $AR1,    #0x00d2
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45011 (0xafd3)

lri $AR1,    #0x00d3
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45012 (0xafd4)

lri $AR1,    #0x00d4
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45013 (0xafd5)

lri $AR1,    #0x00d5
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45014 (0xafd6)

lri $AR1,    #0x00d6
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45015 (0xafd7)

lri $AR1,    #0x00d7
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45016 (0xafd8)

lri $AR1,    #0x00d8
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45017 (0xafd9)

lri $AR1,    #0x00d9
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45018 (0xafda)

lri $AR1,    #0x00da
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45019 (0xafdb)

lri $AR1,    #0x00db
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45020 (0xafdc)

lri $AR1,    #0x00dc
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45021 (0xafdd)

lri $AR1,    #0x00dd
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45022 (0xafde)

lri $AR1,    #0x00de
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45023 (0xafdf)

lri $AR1,    #0x00df
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45024 (0xafe0)

lri $AR1,    #0x00e0
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45025 (0xafe1)

lri $AR1,    #0x00e1
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45026 (0xafe2)

lri $AR1,    #0x00e2
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45027 (0xafe3)

lri $AR1,    #0x00e3
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45028 (0xafe4)

lri $AR1,    #0x00e4
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45029 (0xafe5)

lri $AR1,    #0x00e5
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45030 (0xafe6)

lri $AR1,    #0x00e6
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45031 (0xafe7)

lri $AR1,    #0x00e7
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45032 (0xafe8)

lri $AR1,    #0x00e8
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45033 (0xafe9)

lri $AR1,    #0x00e9
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45034 (0xafea)

lri $AR1,    #0x00ea
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45035 (0xafeb)

lri $AR1,    #0x00eb
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45036 (0xafec)

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

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

lri $AR1,    #0x00ee
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45039 (0xafef)

lri $AR1,    #0x00ef
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45040 (0xaff0)

lri $AR1,    #0x00f0
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45041 (0xaff1)

lri $AR1,    #0x00f1
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45042 (0xaff2)

lri $AR1,    #0x00f2
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45043 (0xaff3)

lri $AR1,    #0x00f3
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45044 (0xaff4)

lri $AR1,    #0x00f4
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45045 (0xaff5)

lri $AR1,    #0x00f5
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45046 (0xaff6)

lri $AR1,    #0x00f6
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45047 (0xaff7)

lri $AR1,    #0x00f7
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45048 (0xaff8)

lri $AR1,    #0x00f8
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45049 (0xaff9)

lri $AR1,    #0x00f9
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45050 (0xaffa)

lri $AR1,    #0x00fa
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45051 (0xaffb)

lri $AR1,    #0x00fb
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45052 (0xaffc)

lri $AR1,    #0x00fc
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45053 (0xaffd)

lri $AR1,    #0x00fd
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45054 (0xaffe)

lri $AR1,    #0x00fe
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45055 (0xafff)

lri $AR1,    #0x00ff
lri $IX1,    #0x0000
lri $WR1,    #0x00af
cw 0x5
call send_back  ; 45056 (0xb000)

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