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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48385 (0xbd01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48386 (0xbd02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48387 (0xbd03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48388 (0xbd04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48389 (0xbd05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48390 (0xbd06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48391 (0xbd07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48392 (0xbd08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48393 (0xbd09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48394 (0xbd0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48395 (0xbd0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48396 (0xbd0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48397 (0xbd0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48398 (0xbd0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48399 (0xbd0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48400 (0xbd10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48401 (0xbd11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48402 (0xbd12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48403 (0xbd13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48404 (0xbd14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48405 (0xbd15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48406 (0xbd16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48407 (0xbd17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48408 (0xbd18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48409 (0xbd19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48410 (0xbd1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48411 (0xbd1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48412 (0xbd1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48413 (0xbd1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48414 (0xbd1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48415 (0xbd1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48416 (0xbd20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48417 (0xbd21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48418 (0xbd22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48419 (0xbd23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48420 (0xbd24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48421 (0xbd25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48422 (0xbd26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48423 (0xbd27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48424 (0xbd28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48425 (0xbd29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48426 (0xbd2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48427 (0xbd2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48428 (0xbd2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48429 (0xbd2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48430 (0xbd2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48431 (0xbd2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48432 (0xbd30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48433 (0xbd31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48434 (0xbd32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48435 (0xbd33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48436 (0xbd34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48437 (0xbd35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48438 (0xbd36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48439 (0xbd37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48440 (0xbd38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48441 (0xbd39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48442 (0xbd3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48443 (0xbd3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48444 (0xbd3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48445 (0xbd3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48446 (0xbd3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48447 (0xbd3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48448 (0xbd40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48449 (0xbd41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48450 (0xbd42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48451 (0xbd43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48452 (0xbd44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48453 (0xbd45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48454 (0xbd46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48455 (0xbd47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48456 (0xbd48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48457 (0xbd49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48458 (0xbd4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48459 (0xbd4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48460 (0xbd4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48461 (0xbd4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48462 (0xbd4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48463 (0xbd4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48464 (0xbd50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48465 (0xbd51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48466 (0xbd52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48467 (0xbd53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48468 (0xbd54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48469 (0xbd55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48470 (0xbd56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48471 (0xbd57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48472 (0xbd58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48473 (0xbd59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48474 (0xbd5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48475 (0xbd5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48476 (0xbd5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48477 (0xbd5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48478 (0xbd5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48479 (0xbd5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48480 (0xbd60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48481 (0xbd61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48482 (0xbd62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48483 (0xbd63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48484 (0xbd64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48485 (0xbd65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48486 (0xbd66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48487 (0xbd67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48488 (0xbd68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48489 (0xbd69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48490 (0xbd6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48491 (0xbd6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48492 (0xbd6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48493 (0xbd6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48494 (0xbd6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48495 (0xbd6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48496 (0xbd70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48497 (0xbd71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48498 (0xbd72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48499 (0xbd73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48500 (0xbd74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48501 (0xbd75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48502 (0xbd76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48503 (0xbd77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48504 (0xbd78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48505 (0xbd79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48506 (0xbd7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48507 (0xbd7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48508 (0xbd7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48509 (0xbd7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48510 (0xbd7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48511 (0xbd7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00bd
cw 0x5
call send_back  ; 48512 (0xbd80)

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