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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56577 (0xdd01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56578 (0xdd02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56579 (0xdd03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56580 (0xdd04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56581 (0xdd05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56582 (0xdd06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56583 (0xdd07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56584 (0xdd08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56585 (0xdd09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56586 (0xdd0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56587 (0xdd0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56588 (0xdd0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56589 (0xdd0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56590 (0xdd0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56591 (0xdd0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56592 (0xdd10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56593 (0xdd11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56594 (0xdd12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56595 (0xdd13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56596 (0xdd14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56597 (0xdd15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56598 (0xdd16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56599 (0xdd17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56600 (0xdd18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56601 (0xdd19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56602 (0xdd1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56603 (0xdd1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56604 (0xdd1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56605 (0xdd1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56606 (0xdd1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56607 (0xdd1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56608 (0xdd20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56609 (0xdd21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56610 (0xdd22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56611 (0xdd23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56612 (0xdd24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56613 (0xdd25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56614 (0xdd26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56615 (0xdd27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56616 (0xdd28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56617 (0xdd29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56618 (0xdd2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56619 (0xdd2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56620 (0xdd2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56621 (0xdd2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56622 (0xdd2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56623 (0xdd2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56624 (0xdd30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56625 (0xdd31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56626 (0xdd32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56627 (0xdd33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56628 (0xdd34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56629 (0xdd35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56630 (0xdd36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56631 (0xdd37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56632 (0xdd38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56633 (0xdd39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56634 (0xdd3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56635 (0xdd3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56636 (0xdd3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56637 (0xdd3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56638 (0xdd3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56639 (0xdd3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56640 (0xdd40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56641 (0xdd41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56642 (0xdd42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56643 (0xdd43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56644 (0xdd44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56645 (0xdd45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56646 (0xdd46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56647 (0xdd47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56648 (0xdd48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56649 (0xdd49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56650 (0xdd4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56651 (0xdd4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56652 (0xdd4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56653 (0xdd4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56654 (0xdd4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56655 (0xdd4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56656 (0xdd50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56657 (0xdd51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56658 (0xdd52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56659 (0xdd53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56660 (0xdd54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56661 (0xdd55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56662 (0xdd56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56663 (0xdd57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56664 (0xdd58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56665 (0xdd59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56666 (0xdd5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56667 (0xdd5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56668 (0xdd5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56669 (0xdd5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56670 (0xdd5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56671 (0xdd5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56672 (0xdd60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56673 (0xdd61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56674 (0xdd62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56675 (0xdd63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56676 (0xdd64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56677 (0xdd65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56678 (0xdd66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56679 (0xdd67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56680 (0xdd68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56681 (0xdd69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56682 (0xdd6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56683 (0xdd6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56684 (0xdd6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56685 (0xdd6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56686 (0xdd6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56687 (0xdd6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56688 (0xdd70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56689 (0xdd71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56690 (0xdd72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56691 (0xdd73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56692 (0xdd74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56693 (0xdd75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56694 (0xdd76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56695 (0xdd77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56696 (0xdd78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56697 (0xdd79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56698 (0xdd7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56699 (0xdd7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56700 (0xdd7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56701 (0xdd7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56702 (0xdd7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56703 (0xdd7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00dd
cw 0x5
call send_back  ; 56704 (0xdd80)

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