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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65281 (0xff01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65282 (0xff02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65283 (0xff03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65284 (0xff04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65285 (0xff05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65286 (0xff06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65287 (0xff07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65288 (0xff08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65289 (0xff09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65290 (0xff0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65291 (0xff0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65292 (0xff0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65293 (0xff0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65294 (0xff0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65295 (0xff0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65296 (0xff10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65297 (0xff11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65298 (0xff12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65299 (0xff13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65300 (0xff14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65301 (0xff15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65302 (0xff16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65303 (0xff17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65304 (0xff18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65305 (0xff19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65306 (0xff1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65307 (0xff1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65308 (0xff1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65309 (0xff1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65310 (0xff1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65311 (0xff1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65312 (0xff20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65313 (0xff21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65314 (0xff22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65315 (0xff23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65316 (0xff24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65317 (0xff25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65318 (0xff26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65319 (0xff27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65320 (0xff28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65321 (0xff29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65322 (0xff2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65323 (0xff2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65324 (0xff2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65325 (0xff2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65326 (0xff2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65327 (0xff2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65328 (0xff30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65329 (0xff31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65330 (0xff32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65331 (0xff33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65332 (0xff34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65333 (0xff35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65334 (0xff36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65335 (0xff37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65336 (0xff38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65337 (0xff39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65338 (0xff3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65339 (0xff3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65340 (0xff3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65341 (0xff3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65342 (0xff3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65343 (0xff3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65344 (0xff40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65345 (0xff41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65346 (0xff42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65347 (0xff43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65348 (0xff44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65349 (0xff45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65350 (0xff46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65351 (0xff47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65352 (0xff48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65353 (0xff49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65354 (0xff4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65355 (0xff4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65356 (0xff4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65357 (0xff4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65358 (0xff4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65359 (0xff4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65360 (0xff50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65361 (0xff51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65362 (0xff52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65363 (0xff53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65364 (0xff54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65365 (0xff55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65366 (0xff56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65367 (0xff57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65368 (0xff58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65369 (0xff59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65370 (0xff5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65371 (0xff5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65372 (0xff5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65373 (0xff5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65374 (0xff5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65375 (0xff5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65376 (0xff60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65377 (0xff61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65378 (0xff62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65379 (0xff63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65380 (0xff64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65381 (0xff65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65382 (0xff66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65383 (0xff67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65384 (0xff68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65385 (0xff69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65386 (0xff6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65387 (0xff6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65388 (0xff6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65389 (0xff6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65390 (0xff6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65391 (0xff6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65392 (0xff70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65393 (0xff71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65394 (0xff72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65395 (0xff73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65396 (0xff74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65397 (0xff75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65398 (0xff76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65399 (0xff77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65400 (0xff78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65401 (0xff79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65402 (0xff7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65403 (0xff7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65404 (0xff7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65405 (0xff7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65406 (0xff7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65407 (0xff7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00ff
cw 0x5
call send_back  ; 65408 (0xff80)

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