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

lri $AR1,    #0x0040
lri $IX1,    #0xfe4b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65100 (0xfe4c)

lri $AR1,    #0x0040
lri $IX1,    #0xfe4c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65101 (0xfe4d)

lri $AR1,    #0x0040
lri $IX1,    #0xfe4d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65102 (0xfe4e)

lri $AR1,    #0x0040
lri $IX1,    #0xfe4e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65103 (0xfe4f)

lri $AR1,    #0x0040
lri $IX1,    #0xfe4f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65104 (0xfe50)

lri $AR1,    #0x0040
lri $IX1,    #0xfe50
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65105 (0xfe51)

lri $AR1,    #0x0040
lri $IX1,    #0xfe51
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65106 (0xfe52)

lri $AR1,    #0x0040
lri $IX1,    #0xfe52
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65107 (0xfe53)

lri $AR1,    #0x0040
lri $IX1,    #0xfe53
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65108 (0xfe54)

lri $AR1,    #0x0040
lri $IX1,    #0xfe54
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65109 (0xfe55)

lri $AR1,    #0x0040
lri $IX1,    #0xfe55
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65110 (0xfe56)

lri $AR1,    #0x0040
lri $IX1,    #0xfe56
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65111 (0xfe57)

lri $AR1,    #0x0040
lri $IX1,    #0xfe57
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65112 (0xfe58)

lri $AR1,    #0x0040
lri $IX1,    #0xfe58
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65113 (0xfe59)

lri $AR1,    #0x0040
lri $IX1,    #0xfe59
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65114 (0xfe5a)

lri $AR1,    #0x0040
lri $IX1,    #0xfe5a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65115 (0xfe5b)

lri $AR1,    #0x0040
lri $IX1,    #0xfe5b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65116 (0xfe5c)

lri $AR1,    #0x0040
lri $IX1,    #0xfe5c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65117 (0xfe5d)

lri $AR1,    #0x0040
lri $IX1,    #0xfe5d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65118 (0xfe5e)

lri $AR1,    #0x0040
lri $IX1,    #0xfe5e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65119 (0xfe5f)

lri $AR1,    #0x0040
lri $IX1,    #0xfe5f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65120 (0xfe60)

lri $AR1,    #0x0040
lri $IX1,    #0xfe60
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65121 (0xfe61)

lri $AR1,    #0x0040
lri $IX1,    #0xfe61
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65122 (0xfe62)

lri $AR1,    #0x0040
lri $IX1,    #0xfe62
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65123 (0xfe63)

lri $AR1,    #0x0040
lri $IX1,    #0xfe63
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65124 (0xfe64)

lri $AR1,    #0x0040
lri $IX1,    #0xfe64
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65125 (0xfe65)

lri $AR1,    #0x0040
lri $IX1,    #0xfe65
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65126 (0xfe66)

lri $AR1,    #0x0040
lri $IX1,    #0xfe66
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65127 (0xfe67)

lri $AR1,    #0x0040
lri $IX1,    #0xfe67
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65128 (0xfe68)

lri $AR1,    #0x0040
lri $IX1,    #0xfe68
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65129 (0xfe69)

lri $AR1,    #0x0040
lri $IX1,    #0xfe69
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65130 (0xfe6a)

lri $AR1,    #0x0040
lri $IX1,    #0xfe6a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65131 (0xfe6b)

lri $AR1,    #0x0040
lri $IX1,    #0xfe6b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65132 (0xfe6c)

lri $AR1,    #0x0040
lri $IX1,    #0xfe6c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65133 (0xfe6d)

lri $AR1,    #0x0040
lri $IX1,    #0xfe6d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65134 (0xfe6e)

lri $AR1,    #0x0040
lri $IX1,    #0xfe6e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65135 (0xfe6f)

lri $AR1,    #0x0040
lri $IX1,    #0xfe6f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65136 (0xfe70)

lri $AR1,    #0x0040
lri $IX1,    #0xfe70
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65137 (0xfe71)

lri $AR1,    #0x0040
lri $IX1,    #0xfe71
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65138 (0xfe72)

lri $AR1,    #0x0040
lri $IX1,    #0xfe72
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65139 (0xfe73)

lri $AR1,    #0x0040
lri $IX1,    #0xfe73
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65140 (0xfe74)

lri $AR1,    #0x0040
lri $IX1,    #0xfe74
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65141 (0xfe75)

lri $AR1,    #0x0040
lri $IX1,    #0xfe75
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65142 (0xfe76)

lri $AR1,    #0x0040
lri $IX1,    #0xfe76
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65143 (0xfe77)

lri $AR1,    #0x0040
lri $IX1,    #0xfe77
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65144 (0xfe78)

lri $AR1,    #0x0040
lri $IX1,    #0xfe78
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65145 (0xfe79)

lri $AR1,    #0x0040
lri $IX1,    #0xfe79
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65146 (0xfe7a)

lri $AR1,    #0x0040
lri $IX1,    #0xfe7a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65147 (0xfe7b)

lri $AR1,    #0x0040
lri $IX1,    #0xfe7b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65148 (0xfe7c)

lri $AR1,    #0x0040
lri $IX1,    #0xfe7c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65149 (0xfe7d)

lri $AR1,    #0x0040
lri $IX1,    #0xfe7d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65150 (0xfe7e)

lri $AR1,    #0x0040
lri $IX1,    #0xfe7e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65151 (0xfe7f)

lri $AR1,    #0x0040
lri $IX1,    #0xfe7f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65152 (0xfe80)

lri $AR1,    #0x0040
lri $IX1,    #0xfe80
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65153 (0xfe81)

lri $AR1,    #0x0040
lri $IX1,    #0xfe81
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65154 (0xfe82)

lri $AR1,    #0x0040
lri $IX1,    #0xfe82
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65155 (0xfe83)

lri $AR1,    #0x0040
lri $IX1,    #0xfe83
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65156 (0xfe84)

lri $AR1,    #0x0040
lri $IX1,    #0xfe84
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65157 (0xfe85)

lri $AR1,    #0x0040
lri $IX1,    #0xfe85
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65158 (0xfe86)

lri $AR1,    #0x0040
lri $IX1,    #0xfe86
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65159 (0xfe87)

lri $AR1,    #0x0040
lri $IX1,    #0xfe87
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65160 (0xfe88)

lri $AR1,    #0x0040
lri $IX1,    #0xfe88
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65161 (0xfe89)

lri $AR1,    #0x0040
lri $IX1,    #0xfe89
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65162 (0xfe8a)

lri $AR1,    #0x0040
lri $IX1,    #0xfe8a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65163 (0xfe8b)

lri $AR1,    #0x0040
lri $IX1,    #0xfe8b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65164 (0xfe8c)

lri $AR1,    #0x0040
lri $IX1,    #0xfe8c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65165 (0xfe8d)

lri $AR1,    #0x0040
lri $IX1,    #0xfe8d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65166 (0xfe8e)

lri $AR1,    #0x0040
lri $IX1,    #0xfe8e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65167 (0xfe8f)

lri $AR1,    #0x0040
lri $IX1,    #0xfe8f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65168 (0xfe90)

lri $AR1,    #0x0040
lri $IX1,    #0xfe90
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65169 (0xfe91)

lri $AR1,    #0x0040
lri $IX1,    #0xfe91
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65170 (0xfe92)

lri $AR1,    #0x0040
lri $IX1,    #0xfe92
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65171 (0xfe93)

lri $AR1,    #0x0040
lri $IX1,    #0xfe93
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65172 (0xfe94)

lri $AR1,    #0x0040
lri $IX1,    #0xfe94
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65173 (0xfe95)

lri $AR1,    #0x0040
lri $IX1,    #0xfe95
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65174 (0xfe96)

lri $AR1,    #0x0040
lri $IX1,    #0xfe96
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65175 (0xfe97)

lri $AR1,    #0x0040
lri $IX1,    #0xfe97
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65176 (0xfe98)

lri $AR1,    #0x0040
lri $IX1,    #0xfe98
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65177 (0xfe99)

lri $AR1,    #0x0040
lri $IX1,    #0xfe99
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65178 (0xfe9a)

lri $AR1,    #0x0040
lri $IX1,    #0xfe9a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65179 (0xfe9b)

lri $AR1,    #0x0040
lri $IX1,    #0xfe9b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65180 (0xfe9c)

lri $AR1,    #0x0040
lri $IX1,    #0xfe9c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65181 (0xfe9d)

lri $AR1,    #0x0040
lri $IX1,    #0xfe9d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65182 (0xfe9e)

lri $AR1,    #0x0040
lri $IX1,    #0xfe9e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65183 (0xfe9f)

lri $AR1,    #0x0040
lri $IX1,    #0xfe9f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65184 (0xfea0)

lri $AR1,    #0x0040
lri $IX1,    #0xfea0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65185 (0xfea1)

lri $AR1,    #0x0040
lri $IX1,    #0xfea1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65186 (0xfea2)

lri $AR1,    #0x0040
lri $IX1,    #0xfea2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65187 (0xfea3)

lri $AR1,    #0x0040
lri $IX1,    #0xfea3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65188 (0xfea4)

lri $AR1,    #0x0040
lri $IX1,    #0xfea4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65189 (0xfea5)

lri $AR1,    #0x0040
lri $IX1,    #0xfea5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65190 (0xfea6)

lri $AR1,    #0x0040
lri $IX1,    #0xfea6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65191 (0xfea7)

lri $AR1,    #0x0040
lri $IX1,    #0xfea7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65192 (0xfea8)

lri $AR1,    #0x0040
lri $IX1,    #0xfea8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65193 (0xfea9)

lri $AR1,    #0x0040
lri $IX1,    #0xfea9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65194 (0xfeaa)

lri $AR1,    #0x0040
lri $IX1,    #0xfeaa
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65195 (0xfeab)

lri $AR1,    #0x0040
lri $IX1,    #0xfeab
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65196 (0xfeac)

lri $AR1,    #0x0040
lri $IX1,    #0xfeac
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65197 (0xfead)

lri $AR1,    #0x0040
lri $IX1,    #0xfead
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65198 (0xfeae)

lri $AR1,    #0x0040
lri $IX1,    #0xfeae
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65199 (0xfeaf)

lri $AR1,    #0x0040
lri $IX1,    #0xfeaf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65200 (0xfeb0)

lri $AR1,    #0x0040
lri $IX1,    #0xfeb0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65201 (0xfeb1)

lri $AR1,    #0x0040
lri $IX1,    #0xfeb1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65202 (0xfeb2)

lri $AR1,    #0x0040
lri $IX1,    #0xfeb2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65203 (0xfeb3)

lri $AR1,    #0x0040
lri $IX1,    #0xfeb3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65204 (0xfeb4)

lri $AR1,    #0x0040
lri $IX1,    #0xfeb4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65205 (0xfeb5)

lri $AR1,    #0x0040
lri $IX1,    #0xfeb5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65206 (0xfeb6)

lri $AR1,    #0x0040
lri $IX1,    #0xfeb6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65207 (0xfeb7)

lri $AR1,    #0x0040
lri $IX1,    #0xfeb7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 65208 (0xfeb8)

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