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

lri $AR1,    #0x0080
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65153 (0xfe81)

lri $AR1,    #0x0081
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65154 (0xfe82)

lri $AR1,    #0x0082
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65155 (0xfe83)

lri $AR1,    #0x0083
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65156 (0xfe84)

lri $AR1,    #0x0084
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65157 (0xfe85)

lri $AR1,    #0x0085
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65158 (0xfe86)

lri $AR1,    #0x0086
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65159 (0xfe87)

lri $AR1,    #0x0087
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65160 (0xfe88)

lri $AR1,    #0x0088
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65161 (0xfe89)

lri $AR1,    #0x0089
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65162 (0xfe8a)

lri $AR1,    #0x008a
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65163 (0xfe8b)

lri $AR1,    #0x008b
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65164 (0xfe8c)

lri $AR1,    #0x008c
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65165 (0xfe8d)

lri $AR1,    #0x008d
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65166 (0xfe8e)

lri $AR1,    #0x008e
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65167 (0xfe8f)

lri $AR1,    #0x008f
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65168 (0xfe90)

lri $AR1,    #0x0090
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65169 (0xfe91)

lri $AR1,    #0x0091
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65170 (0xfe92)

lri $AR1,    #0x0092
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65171 (0xfe93)

lri $AR1,    #0x0093
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65172 (0xfe94)

lri $AR1,    #0x0094
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65173 (0xfe95)

lri $AR1,    #0x0095
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65174 (0xfe96)

lri $AR1,    #0x0096
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65175 (0xfe97)

lri $AR1,    #0x0097
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65176 (0xfe98)

lri $AR1,    #0x0098
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65177 (0xfe99)

lri $AR1,    #0x0099
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65178 (0xfe9a)

lri $AR1,    #0x009a
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65179 (0xfe9b)

lri $AR1,    #0x009b
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65180 (0xfe9c)

lri $AR1,    #0x009c
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65181 (0xfe9d)

lri $AR1,    #0x009d
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65182 (0xfe9e)

lri $AR1,    #0x009e
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65183 (0xfe9f)

lri $AR1,    #0x009f
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65184 (0xfea0)

lri $AR1,    #0x00a0
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65185 (0xfea1)

lri $AR1,    #0x00a1
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65186 (0xfea2)

lri $AR1,    #0x00a2
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65187 (0xfea3)

lri $AR1,    #0x00a3
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65188 (0xfea4)

lri $AR1,    #0x00a4
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65189 (0xfea5)

lri $AR1,    #0x00a5
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65190 (0xfea6)

lri $AR1,    #0x00a6
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65191 (0xfea7)

lri $AR1,    #0x00a7
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65192 (0xfea8)

lri $AR1,    #0x00a8
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65193 (0xfea9)

lri $AR1,    #0x00a9
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65194 (0xfeaa)

lri $AR1,    #0x00aa
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65195 (0xfeab)

lri $AR1,    #0x00ab
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65196 (0xfeac)

lri $AR1,    #0x00ac
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65197 (0xfead)

lri $AR1,    #0x00ad
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65198 (0xfeae)

lri $AR1,    #0x00ae
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65199 (0xfeaf)

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

lri $AR1,    #0x00b0
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65201 (0xfeb1)

lri $AR1,    #0x00b1
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65202 (0xfeb2)

lri $AR1,    #0x00b2
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65203 (0xfeb3)

lri $AR1,    #0x00b3
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65204 (0xfeb4)

lri $AR1,    #0x00b4
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65205 (0xfeb5)

lri $AR1,    #0x00b5
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65206 (0xfeb6)

lri $AR1,    #0x00b6
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65207 (0xfeb7)

lri $AR1,    #0x00b7
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65208 (0xfeb8)

lri $AR1,    #0x00b8
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65209 (0xfeb9)

lri $AR1,    #0x00b9
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65210 (0xfeba)

lri $AR1,    #0x00ba
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65211 (0xfebb)

lri $AR1,    #0x00bb
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65212 (0xfebc)

lri $AR1,    #0x00bc
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65213 (0xfebd)

lri $AR1,    #0x00bd
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65214 (0xfebe)

lri $AR1,    #0x00be
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65215 (0xfebf)

lri $AR1,    #0x00bf
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65216 (0xfec0)

lri $AR1,    #0x00c0
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65217 (0xfec1)

lri $AR1,    #0x00c1
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65218 (0xfec2)

lri $AR1,    #0x00c2
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65219 (0xfec3)

lri $AR1,    #0x00c3
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65220 (0xfec4)

lri $AR1,    #0x00c4
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65221 (0xfec5)

lri $AR1,    #0x00c5
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65222 (0xfec6)

lri $AR1,    #0x00c6
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65223 (0xfec7)

lri $AR1,    #0x00c7
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65224 (0xfec8)

lri $AR1,    #0x00c8
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65225 (0xfec9)

lri $AR1,    #0x00c9
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65226 (0xfeca)

lri $AR1,    #0x00ca
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65227 (0xfecb)

lri $AR1,    #0x00cb
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65228 (0xfecc)

lri $AR1,    #0x00cc
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65229 (0xfecd)

lri $AR1,    #0x00cd
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65230 (0xfece)

lri $AR1,    #0x00ce
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65231 (0xfecf)

lri $AR1,    #0x00cf
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65232 (0xfed0)

lri $AR1,    #0x00d0
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65233 (0xfed1)

lri $AR1,    #0x00d1
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65234 (0xfed2)

lri $AR1,    #0x00d2
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65235 (0xfed3)

lri $AR1,    #0x00d3
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65236 (0xfed4)

lri $AR1,    #0x00d4
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65237 (0xfed5)

lri $AR1,    #0x00d5
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65238 (0xfed6)

lri $AR1,    #0x00d6
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65239 (0xfed7)

lri $AR1,    #0x00d7
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65240 (0xfed8)

lri $AR1,    #0x00d8
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65241 (0xfed9)

lri $AR1,    #0x00d9
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65242 (0xfeda)

lri $AR1,    #0x00da
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65243 (0xfedb)

lri $AR1,    #0x00db
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65244 (0xfedc)

lri $AR1,    #0x00dc
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65245 (0xfedd)

lri $AR1,    #0x00dd
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65246 (0xfede)

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

lri $AR1,    #0x00df
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65248 (0xfee0)

lri $AR1,    #0x00e0
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65249 (0xfee1)

lri $AR1,    #0x00e1
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65250 (0xfee2)

lri $AR1,    #0x00e2
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65251 (0xfee3)

lri $AR1,    #0x00e3
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65252 (0xfee4)

lri $AR1,    #0x00e4
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65253 (0xfee5)

lri $AR1,    #0x00e5
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65254 (0xfee6)

lri $AR1,    #0x00e6
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65255 (0xfee7)

lri $AR1,    #0x00e7
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65256 (0xfee8)

lri $AR1,    #0x00e8
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65257 (0xfee9)

lri $AR1,    #0x00e9
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65258 (0xfeea)

lri $AR1,    #0x00ea
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65259 (0xfeeb)

lri $AR1,    #0x00eb
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65260 (0xfeec)

lri $AR1,    #0x00ec
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65261 (0xfeed)

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

lri $AR1,    #0x00ee
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65263 (0xfeef)

lri $AR1,    #0x00ef
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65264 (0xfef0)

lri $AR1,    #0x00f0
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65265 (0xfef1)

lri $AR1,    #0x00f1
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65266 (0xfef2)

lri $AR1,    #0x00f2
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65267 (0xfef3)

lri $AR1,    #0x00f3
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65268 (0xfef4)

lri $AR1,    #0x00f4
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65269 (0xfef5)

lri $AR1,    #0x00f5
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65270 (0xfef6)

lri $AR1,    #0x00f6
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65271 (0xfef7)

lri $AR1,    #0x00f7
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65272 (0xfef8)

lri $AR1,    #0x00f8
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65273 (0xfef9)

lri $AR1,    #0x00f9
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65274 (0xfefa)

lri $AR1,    #0x00fa
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65275 (0xfefb)

lri $AR1,    #0x00fb
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65276 (0xfefc)

lri $AR1,    #0x00fc
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65277 (0xfefd)

lri $AR1,    #0x00fd
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65278 (0xfefe)

lri $AR1,    #0x00fe
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65279 (0xfeff)

lri $AR1,    #0x00ff
lri $IX1,    #0x0000
lri $WR1,    #0x00fe
cw 0x5
call send_back  ; 65280 (0xff00)

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