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

lri $AR1,    #0x0080
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56961 (0xde81)

lri $AR1,    #0x0081
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56962 (0xde82)

lri $AR1,    #0x0082
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56963 (0xde83)

lri $AR1,    #0x0083
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56964 (0xde84)

lri $AR1,    #0x0084
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56965 (0xde85)

lri $AR1,    #0x0085
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56966 (0xde86)

lri $AR1,    #0x0086
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56967 (0xde87)

lri $AR1,    #0x0087
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56968 (0xde88)

lri $AR1,    #0x0088
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56969 (0xde89)

lri $AR1,    #0x0089
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56970 (0xde8a)

lri $AR1,    #0x008a
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56971 (0xde8b)

lri $AR1,    #0x008b
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56972 (0xde8c)

lri $AR1,    #0x008c
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56973 (0xde8d)

lri $AR1,    #0x008d
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56974 (0xde8e)

lri $AR1,    #0x008e
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56975 (0xde8f)

lri $AR1,    #0x008f
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56976 (0xde90)

lri $AR1,    #0x0090
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56977 (0xde91)

lri $AR1,    #0x0091
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56978 (0xde92)

lri $AR1,    #0x0092
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56979 (0xde93)

lri $AR1,    #0x0093
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56980 (0xde94)

lri $AR1,    #0x0094
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56981 (0xde95)

lri $AR1,    #0x0095
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56982 (0xde96)

lri $AR1,    #0x0096
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56983 (0xde97)

lri $AR1,    #0x0097
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56984 (0xde98)

lri $AR1,    #0x0098
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56985 (0xde99)

lri $AR1,    #0x0099
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56986 (0xde9a)

lri $AR1,    #0x009a
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56987 (0xde9b)

lri $AR1,    #0x009b
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56988 (0xde9c)

lri $AR1,    #0x009c
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56989 (0xde9d)

lri $AR1,    #0x009d
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56990 (0xde9e)

lri $AR1,    #0x009e
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56991 (0xde9f)

lri $AR1,    #0x009f
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56992 (0xdea0)

lri $AR1,    #0x00a0
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56993 (0xdea1)

lri $AR1,    #0x00a1
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56994 (0xdea2)

lri $AR1,    #0x00a2
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56995 (0xdea3)

lri $AR1,    #0x00a3
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56996 (0xdea4)

lri $AR1,    #0x00a4
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56997 (0xdea5)

lri $AR1,    #0x00a5
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56998 (0xdea6)

lri $AR1,    #0x00a6
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56999 (0xdea7)

lri $AR1,    #0x00a7
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57000 (0xdea8)

lri $AR1,    #0x00a8
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57001 (0xdea9)

lri $AR1,    #0x00a9
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57002 (0xdeaa)

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

lri $AR1,    #0x00ab
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57004 (0xdeac)

lri $AR1,    #0x00ac
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57005 (0xdead)

lri $AR1,    #0x00ad
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57006 (0xdeae)

lri $AR1,    #0x00ae
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57007 (0xdeaf)

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

lri $AR1,    #0x00b0
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57009 (0xdeb1)

lri $AR1,    #0x00b1
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57010 (0xdeb2)

lri $AR1,    #0x00b2
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57011 (0xdeb3)

lri $AR1,    #0x00b3
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57012 (0xdeb4)

lri $AR1,    #0x00b4
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57013 (0xdeb5)

lri $AR1,    #0x00b5
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57014 (0xdeb6)

lri $AR1,    #0x00b6
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57015 (0xdeb7)

lri $AR1,    #0x00b7
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57016 (0xdeb8)

lri $AR1,    #0x00b8
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57017 (0xdeb9)

lri $AR1,    #0x00b9
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57018 (0xdeba)

lri $AR1,    #0x00ba
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57019 (0xdebb)

lri $AR1,    #0x00bb
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57020 (0xdebc)

lri $AR1,    #0x00bc
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57021 (0xdebd)

lri $AR1,    #0x00bd
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57022 (0xdebe)

lri $AR1,    #0x00be
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57023 (0xdebf)

lri $AR1,    #0x00bf
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57024 (0xdec0)

lri $AR1,    #0x00c0
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57025 (0xdec1)

lri $AR1,    #0x00c1
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57026 (0xdec2)

lri $AR1,    #0x00c2
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57027 (0xdec3)

lri $AR1,    #0x00c3
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57028 (0xdec4)

lri $AR1,    #0x00c4
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57029 (0xdec5)

lri $AR1,    #0x00c5
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57030 (0xdec6)

lri $AR1,    #0x00c6
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57031 (0xdec7)

lri $AR1,    #0x00c7
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57032 (0xdec8)

lri $AR1,    #0x00c8
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57033 (0xdec9)

lri $AR1,    #0x00c9
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57034 (0xdeca)

lri $AR1,    #0x00ca
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57035 (0xdecb)

lri $AR1,    #0x00cb
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57036 (0xdecc)

lri $AR1,    #0x00cc
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57037 (0xdecd)

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

lri $AR1,    #0x00ce
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57039 (0xdecf)

lri $AR1,    #0x00cf
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57040 (0xded0)

lri $AR1,    #0x00d0
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57041 (0xded1)

lri $AR1,    #0x00d1
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57042 (0xded2)

lri $AR1,    #0x00d2
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57043 (0xded3)

lri $AR1,    #0x00d3
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57044 (0xded4)

lri $AR1,    #0x00d4
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57045 (0xded5)

lri $AR1,    #0x00d5
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57046 (0xded6)

lri $AR1,    #0x00d6
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57047 (0xded7)

lri $AR1,    #0x00d7
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57048 (0xded8)

lri $AR1,    #0x00d8
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57049 (0xded9)

lri $AR1,    #0x00d9
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57050 (0xdeda)

lri $AR1,    #0x00da
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57051 (0xdedb)

lri $AR1,    #0x00db
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57052 (0xdedc)

lri $AR1,    #0x00dc
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57053 (0xdedd)

lri $AR1,    #0x00dd
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57054 (0xdede)

lri $AR1,    #0x00de
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57055 (0xdedf)

lri $AR1,    #0x00df
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57056 (0xdee0)

lri $AR1,    #0x00e0
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57057 (0xdee1)

lri $AR1,    #0x00e1
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57058 (0xdee2)

lri $AR1,    #0x00e2
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57059 (0xdee3)

lri $AR1,    #0x00e3
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57060 (0xdee4)

lri $AR1,    #0x00e4
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57061 (0xdee5)

lri $AR1,    #0x00e5
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57062 (0xdee6)

lri $AR1,    #0x00e6
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57063 (0xdee7)

lri $AR1,    #0x00e7
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57064 (0xdee8)

lri $AR1,    #0x00e8
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57065 (0xdee9)

lri $AR1,    #0x00e9
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57066 (0xdeea)

lri $AR1,    #0x00ea
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57067 (0xdeeb)

lri $AR1,    #0x00eb
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57068 (0xdeec)

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

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

lri $AR1,    #0x00ee
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57071 (0xdeef)

lri $AR1,    #0x00ef
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57072 (0xdef0)

lri $AR1,    #0x00f0
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57073 (0xdef1)

lri $AR1,    #0x00f1
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57074 (0xdef2)

lri $AR1,    #0x00f2
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57075 (0xdef3)

lri $AR1,    #0x00f3
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57076 (0xdef4)

lri $AR1,    #0x00f4
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57077 (0xdef5)

lri $AR1,    #0x00f5
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57078 (0xdef6)

lri $AR1,    #0x00f6
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57079 (0xdef7)

lri $AR1,    #0x00f7
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57080 (0xdef8)

lri $AR1,    #0x00f8
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57081 (0xdef9)

lri $AR1,    #0x00f9
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57082 (0xdefa)

lri $AR1,    #0x00fa
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57083 (0xdefb)

lri $AR1,    #0x00fb
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57084 (0xdefc)

lri $AR1,    #0x00fc
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57085 (0xdefd)

lri $AR1,    #0x00fd
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57086 (0xdefe)

lri $AR1,    #0x00fe
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57087 (0xdeff)

lri $AR1,    #0x00ff
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 57088 (0xdf00)

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