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

lri $AR1,    #0x4000
lri $IX1,    #0xfe80
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65153 (0xfe81)

lri $AR1,    #0x4000
lri $IX1,    #0xfe81
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65154 (0xfe82)

lri $AR1,    #0x4000
lri $IX1,    #0xfe82
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65155 (0xfe83)

lri $AR1,    #0x4000
lri $IX1,    #0xfe83
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65156 (0xfe84)

lri $AR1,    #0x4000
lri $IX1,    #0xfe84
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65157 (0xfe85)

lri $AR1,    #0x4000
lri $IX1,    #0xfe85
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65158 (0xfe86)

lri $AR1,    #0x4000
lri $IX1,    #0xfe86
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65159 (0xfe87)

lri $AR1,    #0x4000
lri $IX1,    #0xfe87
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65160 (0xfe88)

lri $AR1,    #0x4000
lri $IX1,    #0xfe88
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65161 (0xfe89)

lri $AR1,    #0x4000
lri $IX1,    #0xfe89
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65162 (0xfe8a)

lri $AR1,    #0x4000
lri $IX1,    #0xfe8a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65163 (0xfe8b)

lri $AR1,    #0x4000
lri $IX1,    #0xfe8b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65164 (0xfe8c)

lri $AR1,    #0x4000
lri $IX1,    #0xfe8c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65165 (0xfe8d)

lri $AR1,    #0x4000
lri $IX1,    #0xfe8d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65166 (0xfe8e)

lri $AR1,    #0x4000
lri $IX1,    #0xfe8e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65167 (0xfe8f)

lri $AR1,    #0x4000
lri $IX1,    #0xfe8f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65168 (0xfe90)

lri $AR1,    #0x4000
lri $IX1,    #0xfe90
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65169 (0xfe91)

lri $AR1,    #0x4000
lri $IX1,    #0xfe91
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65170 (0xfe92)

lri $AR1,    #0x4000
lri $IX1,    #0xfe92
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65171 (0xfe93)

lri $AR1,    #0x4000
lri $IX1,    #0xfe93
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65172 (0xfe94)

lri $AR1,    #0x4000
lri $IX1,    #0xfe94
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65173 (0xfe95)

lri $AR1,    #0x4000
lri $IX1,    #0xfe95
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65174 (0xfe96)

lri $AR1,    #0x4000
lri $IX1,    #0xfe96
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65175 (0xfe97)

lri $AR1,    #0x4000
lri $IX1,    #0xfe97
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65176 (0xfe98)

lri $AR1,    #0x4000
lri $IX1,    #0xfe98
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65177 (0xfe99)

lri $AR1,    #0x4000
lri $IX1,    #0xfe99
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65178 (0xfe9a)

lri $AR1,    #0x4000
lri $IX1,    #0xfe9a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65179 (0xfe9b)

lri $AR1,    #0x4000
lri $IX1,    #0xfe9b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65180 (0xfe9c)

lri $AR1,    #0x4000
lri $IX1,    #0xfe9c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65181 (0xfe9d)

lri $AR1,    #0x4000
lri $IX1,    #0xfe9d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65182 (0xfe9e)

lri $AR1,    #0x4000
lri $IX1,    #0xfe9e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65183 (0xfe9f)

lri $AR1,    #0x4000
lri $IX1,    #0xfe9f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65184 (0xfea0)

lri $AR1,    #0x4000
lri $IX1,    #0xfea0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65185 (0xfea1)

lri $AR1,    #0x4000
lri $IX1,    #0xfea1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65186 (0xfea2)

lri $AR1,    #0x4000
lri $IX1,    #0xfea2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65187 (0xfea3)

lri $AR1,    #0x4000
lri $IX1,    #0xfea3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65188 (0xfea4)

lri $AR1,    #0x4000
lri $IX1,    #0xfea4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65189 (0xfea5)

lri $AR1,    #0x4000
lri $IX1,    #0xfea5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65190 (0xfea6)

lri $AR1,    #0x4000
lri $IX1,    #0xfea6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65191 (0xfea7)

lri $AR1,    #0x4000
lri $IX1,    #0xfea7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65192 (0xfea8)

lri $AR1,    #0x4000
lri $IX1,    #0xfea8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65193 (0xfea9)

lri $AR1,    #0x4000
lri $IX1,    #0xfea9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65194 (0xfeaa)

lri $AR1,    #0x4000
lri $IX1,    #0xfeaa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65195 (0xfeab)

lri $AR1,    #0x4000
lri $IX1,    #0xfeab
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65196 (0xfeac)

lri $AR1,    #0x4000
lri $IX1,    #0xfeac
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65197 (0xfead)

lri $AR1,    #0x4000
lri $IX1,    #0xfead
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65198 (0xfeae)

lri $AR1,    #0x4000
lri $IX1,    #0xfeae
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65199 (0xfeaf)

lri $AR1,    #0x4000
lri $IX1,    #0xfeaf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65200 (0xfeb0)

lri $AR1,    #0x4000
lri $IX1,    #0xfeb0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65201 (0xfeb1)

lri $AR1,    #0x4000
lri $IX1,    #0xfeb1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65202 (0xfeb2)

lri $AR1,    #0x4000
lri $IX1,    #0xfeb2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65203 (0xfeb3)

lri $AR1,    #0x4000
lri $IX1,    #0xfeb3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65204 (0xfeb4)

lri $AR1,    #0x4000
lri $IX1,    #0xfeb4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65205 (0xfeb5)

lri $AR1,    #0x4000
lri $IX1,    #0xfeb5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65206 (0xfeb6)

lri $AR1,    #0x4000
lri $IX1,    #0xfeb6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65207 (0xfeb7)

lri $AR1,    #0x4000
lri $IX1,    #0xfeb7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65208 (0xfeb8)

lri $AR1,    #0x4000
lri $IX1,    #0xfeb8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65209 (0xfeb9)

lri $AR1,    #0x4000
lri $IX1,    #0xfeb9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65210 (0xfeba)

lri $AR1,    #0x4000
lri $IX1,    #0xfeba
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65211 (0xfebb)

lri $AR1,    #0x4000
lri $IX1,    #0xfebb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65212 (0xfebc)

lri $AR1,    #0x4000
lri $IX1,    #0xfebc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65213 (0xfebd)

lri $AR1,    #0x4000
lri $IX1,    #0xfebd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65214 (0xfebe)

lri $AR1,    #0x4000
lri $IX1,    #0xfebe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65215 (0xfebf)

lri $AR1,    #0x4000
lri $IX1,    #0xfebf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65216 (0xfec0)

lri $AR1,    #0x4000
lri $IX1,    #0xfec0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65217 (0xfec1)

lri $AR1,    #0x4000
lri $IX1,    #0xfec1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65218 (0xfec2)

lri $AR1,    #0x4000
lri $IX1,    #0xfec2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65219 (0xfec3)

lri $AR1,    #0x4000
lri $IX1,    #0xfec3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65220 (0xfec4)

lri $AR1,    #0x4000
lri $IX1,    #0xfec4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65221 (0xfec5)

lri $AR1,    #0x4000
lri $IX1,    #0xfec5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65222 (0xfec6)

lri $AR1,    #0x4000
lri $IX1,    #0xfec6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65223 (0xfec7)

lri $AR1,    #0x4000
lri $IX1,    #0xfec7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65224 (0xfec8)

lri $AR1,    #0x4000
lri $IX1,    #0xfec8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65225 (0xfec9)

lri $AR1,    #0x4000
lri $IX1,    #0xfec9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65226 (0xfeca)

lri $AR1,    #0x4000
lri $IX1,    #0xfeca
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65227 (0xfecb)

lri $AR1,    #0x4000
lri $IX1,    #0xfecb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65228 (0xfecc)

lri $AR1,    #0x4000
lri $IX1,    #0xfecc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65229 (0xfecd)

lri $AR1,    #0x4000
lri $IX1,    #0xfecd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65230 (0xfece)

lri $AR1,    #0x4000
lri $IX1,    #0xfece
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65231 (0xfecf)

lri $AR1,    #0x4000
lri $IX1,    #0xfecf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65232 (0xfed0)

lri $AR1,    #0x4000
lri $IX1,    #0xfed0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65233 (0xfed1)

lri $AR1,    #0x4000
lri $IX1,    #0xfed1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65234 (0xfed2)

lri $AR1,    #0x4000
lri $IX1,    #0xfed2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65235 (0xfed3)

lri $AR1,    #0x4000
lri $IX1,    #0xfed3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65236 (0xfed4)

lri $AR1,    #0x4000
lri $IX1,    #0xfed4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65237 (0xfed5)

lri $AR1,    #0x4000
lri $IX1,    #0xfed5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65238 (0xfed6)

lri $AR1,    #0x4000
lri $IX1,    #0xfed6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65239 (0xfed7)

lri $AR1,    #0x4000
lri $IX1,    #0xfed7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65240 (0xfed8)

lri $AR1,    #0x4000
lri $IX1,    #0xfed8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65241 (0xfed9)

lri $AR1,    #0x4000
lri $IX1,    #0xfed9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65242 (0xfeda)

lri $AR1,    #0x4000
lri $IX1,    #0xfeda
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65243 (0xfedb)

lri $AR1,    #0x4000
lri $IX1,    #0xfedb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65244 (0xfedc)

lri $AR1,    #0x4000
lri $IX1,    #0xfedc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65245 (0xfedd)

lri $AR1,    #0x4000
lri $IX1,    #0xfedd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65246 (0xfede)

lri $AR1,    #0x4000
lri $IX1,    #0xfede
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65247 (0xfedf)

lri $AR1,    #0x4000
lri $IX1,    #0xfedf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65248 (0xfee0)

lri $AR1,    #0x4000
lri $IX1,    #0xfee0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65249 (0xfee1)

lri $AR1,    #0x4000
lri $IX1,    #0xfee1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65250 (0xfee2)

lri $AR1,    #0x4000
lri $IX1,    #0xfee2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65251 (0xfee3)

lri $AR1,    #0x4000
lri $IX1,    #0xfee3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65252 (0xfee4)

lri $AR1,    #0x4000
lri $IX1,    #0xfee4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65253 (0xfee5)

lri $AR1,    #0x4000
lri $IX1,    #0xfee5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65254 (0xfee6)

lri $AR1,    #0x4000
lri $IX1,    #0xfee6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65255 (0xfee7)

lri $AR1,    #0x4000
lri $IX1,    #0xfee7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65256 (0xfee8)

lri $AR1,    #0x4000
lri $IX1,    #0xfee8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65257 (0xfee9)

lri $AR1,    #0x4000
lri $IX1,    #0xfee9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65258 (0xfeea)

lri $AR1,    #0x4000
lri $IX1,    #0xfeea
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65259 (0xfeeb)

lri $AR1,    #0x4000
lri $IX1,    #0xfeeb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65260 (0xfeec)

lri $AR1,    #0x4000
lri $IX1,    #0xfeec
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65261 (0xfeed)

lri $AR1,    #0x4000
lri $IX1,    #0xfeed
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65262 (0xfeee)

lri $AR1,    #0x4000
lri $IX1,    #0xfeee
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65263 (0xfeef)

lri $AR1,    #0x4000
lri $IX1,    #0xfeef
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65264 (0xfef0)

lri $AR1,    #0x4000
lri $IX1,    #0xfef0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65265 (0xfef1)

lri $AR1,    #0x4000
lri $IX1,    #0xfef1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65266 (0xfef2)

lri $AR1,    #0x4000
lri $IX1,    #0xfef2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65267 (0xfef3)

lri $AR1,    #0x4000
lri $IX1,    #0xfef3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65268 (0xfef4)

lri $AR1,    #0x4000
lri $IX1,    #0xfef4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65269 (0xfef5)

lri $AR1,    #0x4000
lri $IX1,    #0xfef5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65270 (0xfef6)

lri $AR1,    #0x4000
lri $IX1,    #0xfef6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65271 (0xfef7)

lri $AR1,    #0x4000
lri $IX1,    #0xfef7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65272 (0xfef8)

lri $AR1,    #0x4000
lri $IX1,    #0xfef8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65273 (0xfef9)

lri $AR1,    #0x4000
lri $IX1,    #0xfef9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65274 (0xfefa)

lri $AR1,    #0x4000
lri $IX1,    #0xfefa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65275 (0xfefb)

lri $AR1,    #0x4000
lri $IX1,    #0xfefb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65276 (0xfefc)

lri $AR1,    #0x4000
lri $IX1,    #0xfefc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65277 (0xfefd)

lri $AR1,    #0x4000
lri $IX1,    #0xfefd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65278 (0xfefe)

lri $AR1,    #0x4000
lri $IX1,    #0xfefe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65279 (0xfeff)

lri $AR1,    #0x4000
lri $IX1,    #0xfeff
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65280 (0xff00)

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

