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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43521 (0xaa01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43522 (0xaa02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43523 (0xaa03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43524 (0xaa04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43525 (0xaa05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43526 (0xaa06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43527 (0xaa07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43528 (0xaa08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43529 (0xaa09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43530 (0xaa0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43531 (0xaa0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43532 (0xaa0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43533 (0xaa0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43534 (0xaa0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43535 (0xaa0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43536 (0xaa10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43537 (0xaa11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43538 (0xaa12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43539 (0xaa13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43540 (0xaa14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43541 (0xaa15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43542 (0xaa16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43543 (0xaa17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43544 (0xaa18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43545 (0xaa19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43546 (0xaa1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43547 (0xaa1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43548 (0xaa1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43549 (0xaa1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43550 (0xaa1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43551 (0xaa1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43552 (0xaa20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43553 (0xaa21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43554 (0xaa22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43555 (0xaa23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43556 (0xaa24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43557 (0xaa25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43558 (0xaa26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43559 (0xaa27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43560 (0xaa28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43561 (0xaa29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43562 (0xaa2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43563 (0xaa2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43564 (0xaa2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43565 (0xaa2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43566 (0xaa2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43567 (0xaa2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43568 (0xaa30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43569 (0xaa31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43570 (0xaa32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43571 (0xaa33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43572 (0xaa34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43573 (0xaa35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43574 (0xaa36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43575 (0xaa37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43576 (0xaa38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43577 (0xaa39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43578 (0xaa3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43579 (0xaa3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43580 (0xaa3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43581 (0xaa3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43582 (0xaa3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43583 (0xaa3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43584 (0xaa40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43585 (0xaa41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43586 (0xaa42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43587 (0xaa43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43588 (0xaa44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43589 (0xaa45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43590 (0xaa46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43591 (0xaa47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43592 (0xaa48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43593 (0xaa49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43594 (0xaa4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43595 (0xaa4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43596 (0xaa4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43597 (0xaa4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43598 (0xaa4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43599 (0xaa4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43600 (0xaa50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43601 (0xaa51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43602 (0xaa52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43603 (0xaa53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43604 (0xaa54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43605 (0xaa55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43606 (0xaa56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43607 (0xaa57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43608 (0xaa58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43609 (0xaa59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43610 (0xaa5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43611 (0xaa5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43612 (0xaa5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43613 (0xaa5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43614 (0xaa5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43615 (0xaa5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43616 (0xaa60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43617 (0xaa61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43618 (0xaa62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43619 (0xaa63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43620 (0xaa64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43621 (0xaa65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43622 (0xaa66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43623 (0xaa67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43624 (0xaa68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43625 (0xaa69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43626 (0xaa6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43627 (0xaa6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43628 (0xaa6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43629 (0xaa6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43630 (0xaa6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43631 (0xaa6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43632 (0xaa70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43633 (0xaa71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43634 (0xaa72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43635 (0xaa73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43636 (0xaa74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43637 (0xaa75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43638 (0xaa76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43639 (0xaa77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43640 (0xaa78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43641 (0xaa79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43642 (0xaa7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43643 (0xaa7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43644 (0xaa7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43645 (0xaa7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43646 (0xaa7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43647 (0xaa7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00aa
cw 0x5
call send_back  ; 43648 (0xaa80)

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