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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64769 (0xfd01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64770 (0xfd02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64771 (0xfd03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64772 (0xfd04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64773 (0xfd05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64774 (0xfd06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64775 (0xfd07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64776 (0xfd08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64777 (0xfd09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64778 (0xfd0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64779 (0xfd0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64780 (0xfd0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64781 (0xfd0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64782 (0xfd0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64783 (0xfd0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64784 (0xfd10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64785 (0xfd11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64786 (0xfd12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64787 (0xfd13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64788 (0xfd14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64789 (0xfd15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64790 (0xfd16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64791 (0xfd17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64792 (0xfd18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64793 (0xfd19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64794 (0xfd1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64795 (0xfd1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64796 (0xfd1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64797 (0xfd1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64798 (0xfd1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64799 (0xfd1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64800 (0xfd20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64801 (0xfd21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64802 (0xfd22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64803 (0xfd23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64804 (0xfd24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64805 (0xfd25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64806 (0xfd26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64807 (0xfd27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64808 (0xfd28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64809 (0xfd29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64810 (0xfd2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64811 (0xfd2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64812 (0xfd2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64813 (0xfd2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64814 (0xfd2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64815 (0xfd2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64816 (0xfd30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64817 (0xfd31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64818 (0xfd32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64819 (0xfd33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64820 (0xfd34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64821 (0xfd35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64822 (0xfd36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64823 (0xfd37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64824 (0xfd38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64825 (0xfd39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64826 (0xfd3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64827 (0xfd3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64828 (0xfd3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64829 (0xfd3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64830 (0xfd3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64831 (0xfd3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64832 (0xfd40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64833 (0xfd41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64834 (0xfd42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64835 (0xfd43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64836 (0xfd44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64837 (0xfd45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64838 (0xfd46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64839 (0xfd47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64840 (0xfd48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64841 (0xfd49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64842 (0xfd4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64843 (0xfd4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64844 (0xfd4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64845 (0xfd4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64846 (0xfd4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64847 (0xfd4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64848 (0xfd50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64849 (0xfd51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64850 (0xfd52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64851 (0xfd53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64852 (0xfd54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64853 (0xfd55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64854 (0xfd56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64855 (0xfd57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64856 (0xfd58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64857 (0xfd59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64858 (0xfd5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64859 (0xfd5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64860 (0xfd5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64861 (0xfd5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64862 (0xfd5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64863 (0xfd5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64864 (0xfd60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64865 (0xfd61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64866 (0xfd62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64867 (0xfd63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64868 (0xfd64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64869 (0xfd65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64870 (0xfd66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64871 (0xfd67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64872 (0xfd68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64873 (0xfd69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64874 (0xfd6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64875 (0xfd6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64876 (0xfd6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64877 (0xfd6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64878 (0xfd6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64879 (0xfd6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64880 (0xfd70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64881 (0xfd71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64882 (0xfd72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64883 (0xfd73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64884 (0xfd74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64885 (0xfd75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64886 (0xfd76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64887 (0xfd77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64888 (0xfd78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64889 (0xfd79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64890 (0xfd7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64891 (0xfd7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64892 (0xfd7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64893 (0xfd7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64894 (0xfd7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64895 (0xfd7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00fd
cw 0x5
call send_back  ; 64896 (0xfd80)

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