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

lri $AR1,    #0x4000
lri $IX1,    #0x9f80
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40833 (0x9f81)

lri $AR1,    #0x4000
lri $IX1,    #0x9f81
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40834 (0x9f82)

lri $AR1,    #0x4000
lri $IX1,    #0x9f82
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40835 (0x9f83)

lri $AR1,    #0x4000
lri $IX1,    #0x9f83
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40836 (0x9f84)

lri $AR1,    #0x4000
lri $IX1,    #0x9f84
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40837 (0x9f85)

lri $AR1,    #0x4000
lri $IX1,    #0x9f85
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40838 (0x9f86)

lri $AR1,    #0x4000
lri $IX1,    #0x9f86
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40839 (0x9f87)

lri $AR1,    #0x4000
lri $IX1,    #0x9f87
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40840 (0x9f88)

lri $AR1,    #0x4000
lri $IX1,    #0x9f88
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40841 (0x9f89)

lri $AR1,    #0x4000
lri $IX1,    #0x9f89
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40842 (0x9f8a)

lri $AR1,    #0x4000
lri $IX1,    #0x9f8a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40843 (0x9f8b)

lri $AR1,    #0x4000
lri $IX1,    #0x9f8b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40844 (0x9f8c)

lri $AR1,    #0x4000
lri $IX1,    #0x9f8c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40845 (0x9f8d)

lri $AR1,    #0x4000
lri $IX1,    #0x9f8d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40846 (0x9f8e)

lri $AR1,    #0x4000
lri $IX1,    #0x9f8e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40847 (0x9f8f)

lri $AR1,    #0x4000
lri $IX1,    #0x9f8f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40848 (0x9f90)

lri $AR1,    #0x4000
lri $IX1,    #0x9f90
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40849 (0x9f91)

lri $AR1,    #0x4000
lri $IX1,    #0x9f91
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40850 (0x9f92)

lri $AR1,    #0x4000
lri $IX1,    #0x9f92
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40851 (0x9f93)

lri $AR1,    #0x4000
lri $IX1,    #0x9f93
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40852 (0x9f94)

lri $AR1,    #0x4000
lri $IX1,    #0x9f94
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40853 (0x9f95)

lri $AR1,    #0x4000
lri $IX1,    #0x9f95
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40854 (0x9f96)

lri $AR1,    #0x4000
lri $IX1,    #0x9f96
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40855 (0x9f97)

lri $AR1,    #0x4000
lri $IX1,    #0x9f97
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40856 (0x9f98)

lri $AR1,    #0x4000
lri $IX1,    #0x9f98
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40857 (0x9f99)

lri $AR1,    #0x4000
lri $IX1,    #0x9f99
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40858 (0x9f9a)

lri $AR1,    #0x4000
lri $IX1,    #0x9f9a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40859 (0x9f9b)

lri $AR1,    #0x4000
lri $IX1,    #0x9f9b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40860 (0x9f9c)

lri $AR1,    #0x4000
lri $IX1,    #0x9f9c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40861 (0x9f9d)

lri $AR1,    #0x4000
lri $IX1,    #0x9f9d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40862 (0x9f9e)

lri $AR1,    #0x4000
lri $IX1,    #0x9f9e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40863 (0x9f9f)

lri $AR1,    #0x4000
lri $IX1,    #0x9f9f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40864 (0x9fa0)

lri $AR1,    #0x4000
lri $IX1,    #0x9fa0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40865 (0x9fa1)

lri $AR1,    #0x4000
lri $IX1,    #0x9fa1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40866 (0x9fa2)

lri $AR1,    #0x4000
lri $IX1,    #0x9fa2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40867 (0x9fa3)

lri $AR1,    #0x4000
lri $IX1,    #0x9fa3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40868 (0x9fa4)

lri $AR1,    #0x4000
lri $IX1,    #0x9fa4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40869 (0x9fa5)

lri $AR1,    #0x4000
lri $IX1,    #0x9fa5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40870 (0x9fa6)

lri $AR1,    #0x4000
lri $IX1,    #0x9fa6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40871 (0x9fa7)

lri $AR1,    #0x4000
lri $IX1,    #0x9fa7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40872 (0x9fa8)

lri $AR1,    #0x4000
lri $IX1,    #0x9fa8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40873 (0x9fa9)

lri $AR1,    #0x4000
lri $IX1,    #0x9fa9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40874 (0x9faa)

lri $AR1,    #0x4000
lri $IX1,    #0x9faa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40875 (0x9fab)

lri $AR1,    #0x4000
lri $IX1,    #0x9fab
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40876 (0x9fac)

lri $AR1,    #0x4000
lri $IX1,    #0x9fac
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40877 (0x9fad)

lri $AR1,    #0x4000
lri $IX1,    #0x9fad
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40878 (0x9fae)

lri $AR1,    #0x4000
lri $IX1,    #0x9fae
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40879 (0x9faf)

lri $AR1,    #0x4000
lri $IX1,    #0x9faf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40880 (0x9fb0)

lri $AR1,    #0x4000
lri $IX1,    #0x9fb0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40881 (0x9fb1)

lri $AR1,    #0x4000
lri $IX1,    #0x9fb1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40882 (0x9fb2)

lri $AR1,    #0x4000
lri $IX1,    #0x9fb2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40883 (0x9fb3)

lri $AR1,    #0x4000
lri $IX1,    #0x9fb3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40884 (0x9fb4)

lri $AR1,    #0x4000
lri $IX1,    #0x9fb4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40885 (0x9fb5)

lri $AR1,    #0x4000
lri $IX1,    #0x9fb5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40886 (0x9fb6)

lri $AR1,    #0x4000
lri $IX1,    #0x9fb6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40887 (0x9fb7)

lri $AR1,    #0x4000
lri $IX1,    #0x9fb7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40888 (0x9fb8)

lri $AR1,    #0x4000
lri $IX1,    #0x9fb8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40889 (0x9fb9)

lri $AR1,    #0x4000
lri $IX1,    #0x9fb9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40890 (0x9fba)

lri $AR1,    #0x4000
lri $IX1,    #0x9fba
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40891 (0x9fbb)

lri $AR1,    #0x4000
lri $IX1,    #0x9fbb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40892 (0x9fbc)

lri $AR1,    #0x4000
lri $IX1,    #0x9fbc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40893 (0x9fbd)

lri $AR1,    #0x4000
lri $IX1,    #0x9fbd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40894 (0x9fbe)

lri $AR1,    #0x4000
lri $IX1,    #0x9fbe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40895 (0x9fbf)

lri $AR1,    #0x4000
lri $IX1,    #0x9fbf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40896 (0x9fc0)

lri $AR1,    #0x4000
lri $IX1,    #0x9fc0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40897 (0x9fc1)

lri $AR1,    #0x4000
lri $IX1,    #0x9fc1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40898 (0x9fc2)

lri $AR1,    #0x4000
lri $IX1,    #0x9fc2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40899 (0x9fc3)

lri $AR1,    #0x4000
lri $IX1,    #0x9fc3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40900 (0x9fc4)

lri $AR1,    #0x4000
lri $IX1,    #0x9fc4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40901 (0x9fc5)

lri $AR1,    #0x4000
lri $IX1,    #0x9fc5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40902 (0x9fc6)

lri $AR1,    #0x4000
lri $IX1,    #0x9fc6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40903 (0x9fc7)

lri $AR1,    #0x4000
lri $IX1,    #0x9fc7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40904 (0x9fc8)

lri $AR1,    #0x4000
lri $IX1,    #0x9fc8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40905 (0x9fc9)

lri $AR1,    #0x4000
lri $IX1,    #0x9fc9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40906 (0x9fca)

lri $AR1,    #0x4000
lri $IX1,    #0x9fca
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40907 (0x9fcb)

lri $AR1,    #0x4000
lri $IX1,    #0x9fcb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40908 (0x9fcc)

lri $AR1,    #0x4000
lri $IX1,    #0x9fcc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40909 (0x9fcd)

lri $AR1,    #0x4000
lri $IX1,    #0x9fcd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40910 (0x9fce)

lri $AR1,    #0x4000
lri $IX1,    #0x9fce
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40911 (0x9fcf)

lri $AR1,    #0x4000
lri $IX1,    #0x9fcf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40912 (0x9fd0)

lri $AR1,    #0x4000
lri $IX1,    #0x9fd0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40913 (0x9fd1)

lri $AR1,    #0x4000
lri $IX1,    #0x9fd1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40914 (0x9fd2)

lri $AR1,    #0x4000
lri $IX1,    #0x9fd2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40915 (0x9fd3)

lri $AR1,    #0x4000
lri $IX1,    #0x9fd3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40916 (0x9fd4)

lri $AR1,    #0x4000
lri $IX1,    #0x9fd4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40917 (0x9fd5)

lri $AR1,    #0x4000
lri $IX1,    #0x9fd5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40918 (0x9fd6)

lri $AR1,    #0x4000
lri $IX1,    #0x9fd6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40919 (0x9fd7)

lri $AR1,    #0x4000
lri $IX1,    #0x9fd7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40920 (0x9fd8)

lri $AR1,    #0x4000
lri $IX1,    #0x9fd8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40921 (0x9fd9)

lri $AR1,    #0x4000
lri $IX1,    #0x9fd9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40922 (0x9fda)

lri $AR1,    #0x4000
lri $IX1,    #0x9fda
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40923 (0x9fdb)

lri $AR1,    #0x4000
lri $IX1,    #0x9fdb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40924 (0x9fdc)

lri $AR1,    #0x4000
lri $IX1,    #0x9fdc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40925 (0x9fdd)

lri $AR1,    #0x4000
lri $IX1,    #0x9fdd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40926 (0x9fde)

lri $AR1,    #0x4000
lri $IX1,    #0x9fde
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40927 (0x9fdf)

lri $AR1,    #0x4000
lri $IX1,    #0x9fdf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40928 (0x9fe0)

lri $AR1,    #0x4000
lri $IX1,    #0x9fe0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40929 (0x9fe1)

lri $AR1,    #0x4000
lri $IX1,    #0x9fe1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40930 (0x9fe2)

lri $AR1,    #0x4000
lri $IX1,    #0x9fe2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40931 (0x9fe3)

lri $AR1,    #0x4000
lri $IX1,    #0x9fe3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40932 (0x9fe4)

lri $AR1,    #0x4000
lri $IX1,    #0x9fe4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40933 (0x9fe5)

lri $AR1,    #0x4000
lri $IX1,    #0x9fe5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40934 (0x9fe6)

lri $AR1,    #0x4000
lri $IX1,    #0x9fe6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40935 (0x9fe7)

lri $AR1,    #0x4000
lri $IX1,    #0x9fe7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40936 (0x9fe8)

lri $AR1,    #0x4000
lri $IX1,    #0x9fe8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40937 (0x9fe9)

lri $AR1,    #0x4000
lri $IX1,    #0x9fe9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40938 (0x9fea)

lri $AR1,    #0x4000
lri $IX1,    #0x9fea
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40939 (0x9feb)

lri $AR1,    #0x4000
lri $IX1,    #0x9feb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40940 (0x9fec)

lri $AR1,    #0x4000
lri $IX1,    #0x9fec
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40941 (0x9fed)

lri $AR1,    #0x4000
lri $IX1,    #0x9fed
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40942 (0x9fee)

lri $AR1,    #0x4000
lri $IX1,    #0x9fee
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40943 (0x9fef)

lri $AR1,    #0x4000
lri $IX1,    #0x9fef
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40944 (0x9ff0)

lri $AR1,    #0x4000
lri $IX1,    #0x9ff0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40945 (0x9ff1)

lri $AR1,    #0x4000
lri $IX1,    #0x9ff1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40946 (0x9ff2)

lri $AR1,    #0x4000
lri $IX1,    #0x9ff2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40947 (0x9ff3)

lri $AR1,    #0x4000
lri $IX1,    #0x9ff3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40948 (0x9ff4)

lri $AR1,    #0x4000
lri $IX1,    #0x9ff4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40949 (0x9ff5)

lri $AR1,    #0x4000
lri $IX1,    #0x9ff5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40950 (0x9ff6)

lri $AR1,    #0x4000
lri $IX1,    #0x9ff6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40951 (0x9ff7)

lri $AR1,    #0x4000
lri $IX1,    #0x9ff7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40952 (0x9ff8)

lri $AR1,    #0x4000
lri $IX1,    #0x9ff8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40953 (0x9ff9)

lri $AR1,    #0x4000
lri $IX1,    #0x9ff9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40954 (0x9ffa)

lri $AR1,    #0x4000
lri $IX1,    #0x9ffa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40955 (0x9ffb)

lri $AR1,    #0x4000
lri $IX1,    #0x9ffb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40956 (0x9ffc)

lri $AR1,    #0x4000
lri $IX1,    #0x9ffc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40957 (0x9ffd)

lri $AR1,    #0x4000
lri $IX1,    #0x9ffd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40958 (0x9ffe)

lri $AR1,    #0x4000
lri $IX1,    #0x9ffe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40959 (0x9fff)

lri $AR1,    #0x4000
lri $IX1,    #0x9fff
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 40960 (0xa000)

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

