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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56321 (0xdc01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56322 (0xdc02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56323 (0xdc03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56324 (0xdc04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56325 (0xdc05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56326 (0xdc06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56327 (0xdc07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56328 (0xdc08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56329 (0xdc09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56330 (0xdc0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56331 (0xdc0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56332 (0xdc0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56333 (0xdc0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56334 (0xdc0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56335 (0xdc0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56336 (0xdc10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56337 (0xdc11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56338 (0xdc12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56339 (0xdc13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56340 (0xdc14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56341 (0xdc15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56342 (0xdc16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56343 (0xdc17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56344 (0xdc18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56345 (0xdc19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56346 (0xdc1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56347 (0xdc1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56348 (0xdc1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56349 (0xdc1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56350 (0xdc1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56351 (0xdc1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56352 (0xdc20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56353 (0xdc21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56354 (0xdc22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56355 (0xdc23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56356 (0xdc24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56357 (0xdc25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56358 (0xdc26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56359 (0xdc27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56360 (0xdc28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56361 (0xdc29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56362 (0xdc2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56363 (0xdc2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56364 (0xdc2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56365 (0xdc2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56366 (0xdc2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56367 (0xdc2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56368 (0xdc30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56369 (0xdc31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56370 (0xdc32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56371 (0xdc33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56372 (0xdc34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56373 (0xdc35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56374 (0xdc36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56375 (0xdc37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56376 (0xdc38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56377 (0xdc39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56378 (0xdc3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56379 (0xdc3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56380 (0xdc3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56381 (0xdc3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56382 (0xdc3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56383 (0xdc3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56384 (0xdc40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56385 (0xdc41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56386 (0xdc42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56387 (0xdc43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56388 (0xdc44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56389 (0xdc45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56390 (0xdc46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56391 (0xdc47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56392 (0xdc48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56393 (0xdc49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56394 (0xdc4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56395 (0xdc4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56396 (0xdc4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56397 (0xdc4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56398 (0xdc4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56399 (0xdc4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56400 (0xdc50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56401 (0xdc51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56402 (0xdc52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56403 (0xdc53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56404 (0xdc54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56405 (0xdc55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56406 (0xdc56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56407 (0xdc57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56408 (0xdc58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56409 (0xdc59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56410 (0xdc5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56411 (0xdc5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56412 (0xdc5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56413 (0xdc5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56414 (0xdc5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56415 (0xdc5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56416 (0xdc60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56417 (0xdc61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56418 (0xdc62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56419 (0xdc63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56420 (0xdc64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56421 (0xdc65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56422 (0xdc66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56423 (0xdc67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56424 (0xdc68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56425 (0xdc69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56426 (0xdc6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56427 (0xdc6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56428 (0xdc6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56429 (0xdc6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56430 (0xdc6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56431 (0xdc6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56432 (0xdc70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56433 (0xdc71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56434 (0xdc72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56435 (0xdc73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56436 (0xdc74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56437 (0xdc75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56438 (0xdc76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56439 (0xdc77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56440 (0xdc78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56441 (0xdc79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56442 (0xdc7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56443 (0xdc7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56444 (0xdc7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56445 (0xdc7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56446 (0xdc7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56447 (0xdc7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00dc
cw 0x5
call send_back  ; 56448 (0xdc80)

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