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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52481 (0xcd01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52482 (0xcd02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52483 (0xcd03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52484 (0xcd04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52485 (0xcd05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52486 (0xcd06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52487 (0xcd07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52488 (0xcd08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52489 (0xcd09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52490 (0xcd0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52491 (0xcd0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52492 (0xcd0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52493 (0xcd0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52494 (0xcd0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52495 (0xcd0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52496 (0xcd10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52497 (0xcd11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52498 (0xcd12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52499 (0xcd13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52500 (0xcd14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52501 (0xcd15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52502 (0xcd16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52503 (0xcd17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52504 (0xcd18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52505 (0xcd19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52506 (0xcd1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52507 (0xcd1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52508 (0xcd1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52509 (0xcd1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52510 (0xcd1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52511 (0xcd1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52512 (0xcd20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52513 (0xcd21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52514 (0xcd22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52515 (0xcd23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52516 (0xcd24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52517 (0xcd25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52518 (0xcd26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52519 (0xcd27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52520 (0xcd28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52521 (0xcd29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52522 (0xcd2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52523 (0xcd2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52524 (0xcd2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52525 (0xcd2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52526 (0xcd2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52527 (0xcd2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52528 (0xcd30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52529 (0xcd31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52530 (0xcd32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52531 (0xcd33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52532 (0xcd34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52533 (0xcd35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52534 (0xcd36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52535 (0xcd37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52536 (0xcd38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52537 (0xcd39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52538 (0xcd3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52539 (0xcd3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52540 (0xcd3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52541 (0xcd3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52542 (0xcd3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52543 (0xcd3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52544 (0xcd40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52545 (0xcd41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52546 (0xcd42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52547 (0xcd43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52548 (0xcd44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52549 (0xcd45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52550 (0xcd46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52551 (0xcd47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52552 (0xcd48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52553 (0xcd49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52554 (0xcd4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52555 (0xcd4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52556 (0xcd4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52557 (0xcd4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52558 (0xcd4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52559 (0xcd4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52560 (0xcd50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52561 (0xcd51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52562 (0xcd52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52563 (0xcd53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52564 (0xcd54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52565 (0xcd55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52566 (0xcd56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52567 (0xcd57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52568 (0xcd58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52569 (0xcd59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52570 (0xcd5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52571 (0xcd5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52572 (0xcd5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52573 (0xcd5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52574 (0xcd5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52575 (0xcd5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52576 (0xcd60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52577 (0xcd61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52578 (0xcd62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52579 (0xcd63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52580 (0xcd64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52581 (0xcd65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52582 (0xcd66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52583 (0xcd67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52584 (0xcd68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52585 (0xcd69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52586 (0xcd6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52587 (0xcd6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52588 (0xcd6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52589 (0xcd6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52590 (0xcd6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52591 (0xcd6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52592 (0xcd70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52593 (0xcd71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52594 (0xcd72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52595 (0xcd73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52596 (0xcd74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52597 (0xcd75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52598 (0xcd76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52599 (0xcd77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52600 (0xcd78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52601 (0xcd79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52602 (0xcd7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52603 (0xcd7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52604 (0xcd7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52605 (0xcd7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52606 (0xcd7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52607 (0xcd7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00cd
cw 0x5
call send_back  ; 52608 (0xcd80)

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