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

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff00
cw 0x9
call send_back  ; 65281 (0xff01)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff01
cw 0x9
call send_back  ; 65282 (0xff02)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff02
cw 0x9
call send_back  ; 65283 (0xff03)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff03
cw 0x9
call send_back  ; 65284 (0xff04)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff04
cw 0x9
call send_back  ; 65285 (0xff05)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff05
cw 0x9
call send_back  ; 65286 (0xff06)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff06
cw 0x9
call send_back  ; 65287 (0xff07)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff07
cw 0x9
call send_back  ; 65288 (0xff08)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff08
cw 0x9
call send_back  ; 65289 (0xff09)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff09
cw 0x9
call send_back  ; 65290 (0xff0a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff0a
cw 0x9
call send_back  ; 65291 (0xff0b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff0b
cw 0x9
call send_back  ; 65292 (0xff0c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff0c
cw 0x9
call send_back  ; 65293 (0xff0d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff0d
cw 0x9
call send_back  ; 65294 (0xff0e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff0e
cw 0x9
call send_back  ; 65295 (0xff0f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff0f
cw 0x9
call send_back  ; 65296 (0xff10)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff10
cw 0x9
call send_back  ; 65297 (0xff11)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff11
cw 0x9
call send_back  ; 65298 (0xff12)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff12
cw 0x9
call send_back  ; 65299 (0xff13)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff13
cw 0x9
call send_back  ; 65300 (0xff14)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff14
cw 0x9
call send_back  ; 65301 (0xff15)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff15
cw 0x9
call send_back  ; 65302 (0xff16)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff16
cw 0x9
call send_back  ; 65303 (0xff17)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff17
cw 0x9
call send_back  ; 65304 (0xff18)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff18
cw 0x9
call send_back  ; 65305 (0xff19)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff19
cw 0x9
call send_back  ; 65306 (0xff1a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff1a
cw 0x9
call send_back  ; 65307 (0xff1b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff1b
cw 0x9
call send_back  ; 65308 (0xff1c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff1c
cw 0x9
call send_back  ; 65309 (0xff1d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff1d
cw 0x9
call send_back  ; 65310 (0xff1e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff1e
cw 0x9
call send_back  ; 65311 (0xff1f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff1f
cw 0x9
call send_back  ; 65312 (0xff20)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff20
cw 0x9
call send_back  ; 65313 (0xff21)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff21
cw 0x9
call send_back  ; 65314 (0xff22)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff22
cw 0x9
call send_back  ; 65315 (0xff23)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff23
cw 0x9
call send_back  ; 65316 (0xff24)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff24
cw 0x9
call send_back  ; 65317 (0xff25)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff25
cw 0x9
call send_back  ; 65318 (0xff26)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff26
cw 0x9
call send_back  ; 65319 (0xff27)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff27
cw 0x9
call send_back  ; 65320 (0xff28)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff28
cw 0x9
call send_back  ; 65321 (0xff29)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff29
cw 0x9
call send_back  ; 65322 (0xff2a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff2a
cw 0x9
call send_back  ; 65323 (0xff2b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff2b
cw 0x9
call send_back  ; 65324 (0xff2c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff2c
cw 0x9
call send_back  ; 65325 (0xff2d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff2d
cw 0x9
call send_back  ; 65326 (0xff2e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff2e
cw 0x9
call send_back  ; 65327 (0xff2f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff2f
cw 0x9
call send_back  ; 65328 (0xff30)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff30
cw 0x9
call send_back  ; 65329 (0xff31)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff31
cw 0x9
call send_back  ; 65330 (0xff32)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff32
cw 0x9
call send_back  ; 65331 (0xff33)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff33
cw 0x9
call send_back  ; 65332 (0xff34)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff34
cw 0x9
call send_back  ; 65333 (0xff35)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff35
cw 0x9
call send_back  ; 65334 (0xff36)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff36
cw 0x9
call send_back  ; 65335 (0xff37)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff37
cw 0x9
call send_back  ; 65336 (0xff38)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff38
cw 0x9
call send_back  ; 65337 (0xff39)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff39
cw 0x9
call send_back  ; 65338 (0xff3a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff3a
cw 0x9
call send_back  ; 65339 (0xff3b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff3b
cw 0x9
call send_back  ; 65340 (0xff3c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff3c
cw 0x9
call send_back  ; 65341 (0xff3d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff3d
cw 0x9
call send_back  ; 65342 (0xff3e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff3e
cw 0x9
call send_back  ; 65343 (0xff3f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff3f
cw 0x9
call send_back  ; 65344 (0xff40)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff40
cw 0x9
call send_back  ; 65345 (0xff41)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff41
cw 0x9
call send_back  ; 65346 (0xff42)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff42
cw 0x9
call send_back  ; 65347 (0xff43)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff43
cw 0x9
call send_back  ; 65348 (0xff44)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff44
cw 0x9
call send_back  ; 65349 (0xff45)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff45
cw 0x9
call send_back  ; 65350 (0xff46)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff46
cw 0x9
call send_back  ; 65351 (0xff47)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff47
cw 0x9
call send_back  ; 65352 (0xff48)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff48
cw 0x9
call send_back  ; 65353 (0xff49)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff49
cw 0x9
call send_back  ; 65354 (0xff4a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff4a
cw 0x9
call send_back  ; 65355 (0xff4b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff4b
cw 0x9
call send_back  ; 65356 (0xff4c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff4c
cw 0x9
call send_back  ; 65357 (0xff4d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff4d
cw 0x9
call send_back  ; 65358 (0xff4e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff4e
cw 0x9
call send_back  ; 65359 (0xff4f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff4f
cw 0x9
call send_back  ; 65360 (0xff50)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff50
cw 0x9
call send_back  ; 65361 (0xff51)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff51
cw 0x9
call send_back  ; 65362 (0xff52)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff52
cw 0x9
call send_back  ; 65363 (0xff53)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff53
cw 0x9
call send_back  ; 65364 (0xff54)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff54
cw 0x9
call send_back  ; 65365 (0xff55)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff55
cw 0x9
call send_back  ; 65366 (0xff56)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff56
cw 0x9
call send_back  ; 65367 (0xff57)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff57
cw 0x9
call send_back  ; 65368 (0xff58)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff58
cw 0x9
call send_back  ; 65369 (0xff59)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff59
cw 0x9
call send_back  ; 65370 (0xff5a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff5a
cw 0x9
call send_back  ; 65371 (0xff5b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff5b
cw 0x9
call send_back  ; 65372 (0xff5c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff5c
cw 0x9
call send_back  ; 65373 (0xff5d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff5d
cw 0x9
call send_back  ; 65374 (0xff5e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff5e
cw 0x9
call send_back  ; 65375 (0xff5f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff5f
cw 0x9
call send_back  ; 65376 (0xff60)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff60
cw 0x9
call send_back  ; 65377 (0xff61)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff61
cw 0x9
call send_back  ; 65378 (0xff62)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff62
cw 0x9
call send_back  ; 65379 (0xff63)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff63
cw 0x9
call send_back  ; 65380 (0xff64)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff64
cw 0x9
call send_back  ; 65381 (0xff65)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff65
cw 0x9
call send_back  ; 65382 (0xff66)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff66
cw 0x9
call send_back  ; 65383 (0xff67)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff67
cw 0x9
call send_back  ; 65384 (0xff68)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff68
cw 0x9
call send_back  ; 65385 (0xff69)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff69
cw 0x9
call send_back  ; 65386 (0xff6a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff6a
cw 0x9
call send_back  ; 65387 (0xff6b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff6b
cw 0x9
call send_back  ; 65388 (0xff6c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff6c
cw 0x9
call send_back  ; 65389 (0xff6d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff6d
cw 0x9
call send_back  ; 65390 (0xff6e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff6e
cw 0x9
call send_back  ; 65391 (0xff6f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff6f
cw 0x9
call send_back  ; 65392 (0xff70)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff70
cw 0x9
call send_back  ; 65393 (0xff71)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff71
cw 0x9
call send_back  ; 65394 (0xff72)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff72
cw 0x9
call send_back  ; 65395 (0xff73)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff73
cw 0x9
call send_back  ; 65396 (0xff74)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff74
cw 0x9
call send_back  ; 65397 (0xff75)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff75
cw 0x9
call send_back  ; 65398 (0xff76)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff76
cw 0x9
call send_back  ; 65399 (0xff77)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff77
cw 0x9
call send_back  ; 65400 (0xff78)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff78
cw 0x9
call send_back  ; 65401 (0xff79)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff79
cw 0x9
call send_back  ; 65402 (0xff7a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff7a
cw 0x9
call send_back  ; 65403 (0xff7b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff7b
cw 0x9
call send_back  ; 65404 (0xff7c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff7c
cw 0x9
call send_back  ; 65405 (0xff7d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff7d
cw 0x9
call send_back  ; 65406 (0xff7e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff7e
cw 0x9
call send_back  ; 65407 (0xff7f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xff7f
cw 0x9
call send_back  ; 65408 (0xff80)

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

