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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56833 (0xde01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56834 (0xde02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56835 (0xde03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56836 (0xde04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56837 (0xde05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56838 (0xde06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56839 (0xde07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56840 (0xde08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56841 (0xde09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56842 (0xde0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56843 (0xde0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56844 (0xde0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56845 (0xde0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56846 (0xde0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56847 (0xde0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56848 (0xde10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56849 (0xde11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56850 (0xde12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56851 (0xde13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56852 (0xde14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56853 (0xde15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56854 (0xde16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56855 (0xde17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56856 (0xde18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56857 (0xde19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56858 (0xde1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56859 (0xde1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56860 (0xde1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56861 (0xde1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56862 (0xde1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56863 (0xde1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56864 (0xde20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56865 (0xde21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56866 (0xde22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56867 (0xde23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56868 (0xde24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56869 (0xde25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56870 (0xde26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56871 (0xde27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56872 (0xde28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56873 (0xde29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56874 (0xde2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56875 (0xde2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56876 (0xde2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56877 (0xde2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56878 (0xde2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56879 (0xde2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56880 (0xde30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56881 (0xde31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56882 (0xde32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56883 (0xde33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56884 (0xde34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56885 (0xde35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56886 (0xde36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56887 (0xde37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56888 (0xde38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56889 (0xde39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56890 (0xde3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56891 (0xde3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56892 (0xde3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56893 (0xde3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56894 (0xde3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56895 (0xde3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56896 (0xde40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56897 (0xde41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56898 (0xde42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56899 (0xde43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56900 (0xde44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56901 (0xde45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56902 (0xde46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56903 (0xde47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56904 (0xde48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56905 (0xde49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56906 (0xde4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56907 (0xde4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56908 (0xde4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56909 (0xde4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56910 (0xde4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56911 (0xde4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56912 (0xde50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56913 (0xde51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56914 (0xde52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56915 (0xde53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56916 (0xde54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56917 (0xde55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56918 (0xde56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56919 (0xde57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56920 (0xde58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56921 (0xde59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56922 (0xde5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56923 (0xde5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56924 (0xde5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56925 (0xde5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56926 (0xde5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56927 (0xde5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56928 (0xde60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56929 (0xde61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56930 (0xde62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56931 (0xde63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56932 (0xde64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56933 (0xde65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56934 (0xde66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56935 (0xde67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56936 (0xde68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56937 (0xde69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56938 (0xde6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56939 (0xde6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56940 (0xde6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56941 (0xde6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56942 (0xde6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56943 (0xde6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56944 (0xde70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56945 (0xde71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56946 (0xde72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56947 (0xde73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56948 (0xde74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56949 (0xde75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56950 (0xde76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56951 (0xde77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56952 (0xde78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56953 (0xde79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56954 (0xde7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56955 (0xde7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56956 (0xde7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56957 (0xde7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56958 (0xde7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56959 (0xde7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00de
cw 0x5
call send_back  ; 56960 (0xde80)

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