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

lri $AR1,    #0x3f80
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16257 (0x3f81)

lri $AR1,    #0x3f81
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16258 (0x3f82)

lri $AR1,    #0x3f82
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16259 (0x3f83)

lri $AR1,    #0x3f83
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16260 (0x3f84)

lri $AR1,    #0x3f84
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16261 (0x3f85)

lri $AR1,    #0x3f85
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16262 (0x3f86)

lri $AR1,    #0x3f86
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16263 (0x3f87)

lri $AR1,    #0x3f87
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16264 (0x3f88)

lri $AR1,    #0x3f88
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16265 (0x3f89)

lri $AR1,    #0x3f89
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16266 (0x3f8a)

lri $AR1,    #0x3f8a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16267 (0x3f8b)

lri $AR1,    #0x3f8b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16268 (0x3f8c)

lri $AR1,    #0x3f8c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16269 (0x3f8d)

lri $AR1,    #0x3f8d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16270 (0x3f8e)

lri $AR1,    #0x3f8e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16271 (0x3f8f)

lri $AR1,    #0x3f8f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16272 (0x3f90)

lri $AR1,    #0x3f90
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16273 (0x3f91)

lri $AR1,    #0x3f91
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16274 (0x3f92)

lri $AR1,    #0x3f92
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16275 (0x3f93)

lri $AR1,    #0x3f93
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16276 (0x3f94)

lri $AR1,    #0x3f94
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16277 (0x3f95)

lri $AR1,    #0x3f95
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16278 (0x3f96)

lri $AR1,    #0x3f96
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16279 (0x3f97)

lri $AR1,    #0x3f97
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16280 (0x3f98)

lri $AR1,    #0x3f98
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16281 (0x3f99)

lri $AR1,    #0x3f99
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16282 (0x3f9a)

lri $AR1,    #0x3f9a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16283 (0x3f9b)

lri $AR1,    #0x3f9b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16284 (0x3f9c)

lri $AR1,    #0x3f9c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16285 (0x3f9d)

lri $AR1,    #0x3f9d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16286 (0x3f9e)

lri $AR1,    #0x3f9e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16287 (0x3f9f)

lri $AR1,    #0x3f9f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16288 (0x3fa0)

lri $AR1,    #0x3fa0
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16289 (0x3fa1)

lri $AR1,    #0x3fa1
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16290 (0x3fa2)

lri $AR1,    #0x3fa2
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16291 (0x3fa3)

lri $AR1,    #0x3fa3
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16292 (0x3fa4)

lri $AR1,    #0x3fa4
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16293 (0x3fa5)

lri $AR1,    #0x3fa5
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16294 (0x3fa6)

lri $AR1,    #0x3fa6
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16295 (0x3fa7)

lri $AR1,    #0x3fa7
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16296 (0x3fa8)

lri $AR1,    #0x3fa8
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16297 (0x3fa9)

lri $AR1,    #0x3fa9
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16298 (0x3faa)

lri $AR1,    #0x3faa
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16299 (0x3fab)

lri $AR1,    #0x3fab
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16300 (0x3fac)

lri $AR1,    #0x3fac
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16301 (0x3fad)

lri $AR1,    #0x3fad
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16302 (0x3fae)

lri $AR1,    #0x3fae
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16303 (0x3faf)

lri $AR1,    #0x3faf
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16304 (0x3fb0)

lri $AR1,    #0x3fb0
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16305 (0x3fb1)

lri $AR1,    #0x3fb1
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16306 (0x3fb2)

lri $AR1,    #0x3fb2
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16307 (0x3fb3)

lri $AR1,    #0x3fb3
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16308 (0x3fb4)

lri $AR1,    #0x3fb4
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16309 (0x3fb5)

lri $AR1,    #0x3fb5
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16310 (0x3fb6)

lri $AR1,    #0x3fb6
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16311 (0x3fb7)

lri $AR1,    #0x3fb7
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16312 (0x3fb8)

lri $AR1,    #0x3fb8
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16313 (0x3fb9)

lri $AR1,    #0x3fb9
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16314 (0x3fba)

lri $AR1,    #0x3fba
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16315 (0x3fbb)

lri $AR1,    #0x3fbb
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16316 (0x3fbc)

lri $AR1,    #0x3fbc
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16317 (0x3fbd)

lri $AR1,    #0x3fbd
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16318 (0x3fbe)

lri $AR1,    #0x3fbe
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16319 (0x3fbf)

lri $AR1,    #0x3fbf
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16320 (0x3fc0)

lri $AR1,    #0x3fc0
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16321 (0x3fc1)

lri $AR1,    #0x3fc1
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16322 (0x3fc2)

lri $AR1,    #0x3fc2
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16323 (0x3fc3)

lri $AR1,    #0x3fc3
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16324 (0x3fc4)

lri $AR1,    #0x3fc4
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16325 (0x3fc5)

lri $AR1,    #0x3fc5
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16326 (0x3fc6)

lri $AR1,    #0x3fc6
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16327 (0x3fc7)

lri $AR1,    #0x3fc7
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16328 (0x3fc8)

lri $AR1,    #0x3fc8
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16329 (0x3fc9)

lri $AR1,    #0x3fc9
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16330 (0x3fca)

lri $AR1,    #0x3fca
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16331 (0x3fcb)

lri $AR1,    #0x3fcb
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16332 (0x3fcc)

lri $AR1,    #0x3fcc
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16333 (0x3fcd)

lri $AR1,    #0x3fcd
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16334 (0x3fce)

lri $AR1,    #0x3fce
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16335 (0x3fcf)

lri $AR1,    #0x3fcf
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16336 (0x3fd0)

lri $AR1,    #0x3fd0
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16337 (0x3fd1)

lri $AR1,    #0x3fd1
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16338 (0x3fd2)

lri $AR1,    #0x3fd2
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16339 (0x3fd3)

lri $AR1,    #0x3fd3
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16340 (0x3fd4)

lri $AR1,    #0x3fd4
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16341 (0x3fd5)

lri $AR1,    #0x3fd5
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16342 (0x3fd6)

lri $AR1,    #0x3fd6
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16343 (0x3fd7)

lri $AR1,    #0x3fd7
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16344 (0x3fd8)

lri $AR1,    #0x3fd8
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16345 (0x3fd9)

lri $AR1,    #0x3fd9
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16346 (0x3fda)

lri $AR1,    #0x3fda
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16347 (0x3fdb)

lri $AR1,    #0x3fdb
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16348 (0x3fdc)

lri $AR1,    #0x3fdc
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16349 (0x3fdd)

lri $AR1,    #0x3fdd
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16350 (0x3fde)

lri $AR1,    #0x3fde
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16351 (0x3fdf)

lri $AR1,    #0x3fdf
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16352 (0x3fe0)

lri $AR1,    #0x3fe0
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16353 (0x3fe1)

lri $AR1,    #0x3fe1
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16354 (0x3fe2)

lri $AR1,    #0x3fe2
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16355 (0x3fe3)

lri $AR1,    #0x3fe3
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16356 (0x3fe4)

lri $AR1,    #0x3fe4
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16357 (0x3fe5)

lri $AR1,    #0x3fe5
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16358 (0x3fe6)

lri $AR1,    #0x3fe6
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16359 (0x3fe7)

lri $AR1,    #0x3fe7
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16360 (0x3fe8)

lri $AR1,    #0x3fe8
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16361 (0x3fe9)

lri $AR1,    #0x3fe9
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16362 (0x3fea)

lri $AR1,    #0x3fea
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16363 (0x3feb)

lri $AR1,    #0x3feb
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16364 (0x3fec)

lri $AR1,    #0x3fec
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16365 (0x3fed)

lri $AR1,    #0x3fed
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16366 (0x3fee)

lri $AR1,    #0x3fee
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16367 (0x3fef)

lri $AR1,    #0x3fef
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16368 (0x3ff0)

lri $AR1,    #0x3ff0
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16369 (0x3ff1)

lri $AR1,    #0x3ff1
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16370 (0x3ff2)

lri $AR1,    #0x3ff2
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16371 (0x3ff3)

lri $AR1,    #0x3ff3
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16372 (0x3ff4)

lri $AR1,    #0x3ff4
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16373 (0x3ff5)

lri $AR1,    #0x3ff5
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16374 (0x3ff6)

lri $AR1,    #0x3ff6
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16375 (0x3ff7)

lri $AR1,    #0x3ff7
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16376 (0x3ff8)

lri $AR1,    #0x3ff8
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16377 (0x3ff9)

lri $AR1,    #0x3ff9
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16378 (0x3ffa)

lri $AR1,    #0x3ffa
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16379 (0x3ffb)

lri $AR1,    #0x3ffb
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16380 (0x3ffc)

lri $AR1,    #0x3ffc
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16381 (0x3ffd)

lri $AR1,    #0x3ffd
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16382 (0x3ffe)

lri $AR1,    #0x3ffe
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16383 (0x3fff)

lri $AR1,    #0x3fff
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 16384 (0x4000)

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

