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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60673 (0xed01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60674 (0xed02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60675 (0xed03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60676 (0xed04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60677 (0xed05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60678 (0xed06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60679 (0xed07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60680 (0xed08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60681 (0xed09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60682 (0xed0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60683 (0xed0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60684 (0xed0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60685 (0xed0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60686 (0xed0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60687 (0xed0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60688 (0xed10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60689 (0xed11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60690 (0xed12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60691 (0xed13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60692 (0xed14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60693 (0xed15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60694 (0xed16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60695 (0xed17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60696 (0xed18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60697 (0xed19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60698 (0xed1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60699 (0xed1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60700 (0xed1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60701 (0xed1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60702 (0xed1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60703 (0xed1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60704 (0xed20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60705 (0xed21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60706 (0xed22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60707 (0xed23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60708 (0xed24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60709 (0xed25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60710 (0xed26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60711 (0xed27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60712 (0xed28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60713 (0xed29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60714 (0xed2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60715 (0xed2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60716 (0xed2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60717 (0xed2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60718 (0xed2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60719 (0xed2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60720 (0xed30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60721 (0xed31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60722 (0xed32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60723 (0xed33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60724 (0xed34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60725 (0xed35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60726 (0xed36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60727 (0xed37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60728 (0xed38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60729 (0xed39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60730 (0xed3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60731 (0xed3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60732 (0xed3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60733 (0xed3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60734 (0xed3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60735 (0xed3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60736 (0xed40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60737 (0xed41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60738 (0xed42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60739 (0xed43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60740 (0xed44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60741 (0xed45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60742 (0xed46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60743 (0xed47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60744 (0xed48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60745 (0xed49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60746 (0xed4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60747 (0xed4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60748 (0xed4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60749 (0xed4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60750 (0xed4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60751 (0xed4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60752 (0xed50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60753 (0xed51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60754 (0xed52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60755 (0xed53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60756 (0xed54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60757 (0xed55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60758 (0xed56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60759 (0xed57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60760 (0xed58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60761 (0xed59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60762 (0xed5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60763 (0xed5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60764 (0xed5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60765 (0xed5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60766 (0xed5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60767 (0xed5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60768 (0xed60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60769 (0xed61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60770 (0xed62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60771 (0xed63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60772 (0xed64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60773 (0xed65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60774 (0xed66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60775 (0xed67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60776 (0xed68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60777 (0xed69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60778 (0xed6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60779 (0xed6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60780 (0xed6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60781 (0xed6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60782 (0xed6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60783 (0xed6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60784 (0xed70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60785 (0xed71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60786 (0xed72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60787 (0xed73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60788 (0xed74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60789 (0xed75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60790 (0xed76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60791 (0xed77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60792 (0xed78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60793 (0xed79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60794 (0xed7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60795 (0xed7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60796 (0xed7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60797 (0xed7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60798 (0xed7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60799 (0xed7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00ed
cw 0x5
call send_back  ; 60800 (0xed80)

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