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

lri $AR1,    #0x4000
lri $IX1,    #0x0780
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1921 (0x0781)

lri $AR1,    #0x4000
lri $IX1,    #0x0781
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1922 (0x0782)

lri $AR1,    #0x4000
lri $IX1,    #0x0782
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1923 (0x0783)

lri $AR1,    #0x4000
lri $IX1,    #0x0783
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1924 (0x0784)

lri $AR1,    #0x4000
lri $IX1,    #0x0784
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1925 (0x0785)

lri $AR1,    #0x4000
lri $IX1,    #0x0785
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1926 (0x0786)

lri $AR1,    #0x4000
lri $IX1,    #0x0786
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1927 (0x0787)

lri $AR1,    #0x4000
lri $IX1,    #0x0787
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1928 (0x0788)

lri $AR1,    #0x4000
lri $IX1,    #0x0788
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1929 (0x0789)

lri $AR1,    #0x4000
lri $IX1,    #0x0789
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1930 (0x078a)

lri $AR1,    #0x4000
lri $IX1,    #0x078a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1931 (0x078b)

lri $AR1,    #0x4000
lri $IX1,    #0x078b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1932 (0x078c)

lri $AR1,    #0x4000
lri $IX1,    #0x078c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1933 (0x078d)

lri $AR1,    #0x4000
lri $IX1,    #0x078d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1934 (0x078e)

lri $AR1,    #0x4000
lri $IX1,    #0x078e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1935 (0x078f)

lri $AR1,    #0x4000
lri $IX1,    #0x078f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1936 (0x0790)

lri $AR1,    #0x4000
lri $IX1,    #0x0790
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1937 (0x0791)

lri $AR1,    #0x4000
lri $IX1,    #0x0791
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1938 (0x0792)

lri $AR1,    #0x4000
lri $IX1,    #0x0792
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1939 (0x0793)

lri $AR1,    #0x4000
lri $IX1,    #0x0793
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1940 (0x0794)

lri $AR1,    #0x4000
lri $IX1,    #0x0794
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1941 (0x0795)

lri $AR1,    #0x4000
lri $IX1,    #0x0795
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1942 (0x0796)

lri $AR1,    #0x4000
lri $IX1,    #0x0796
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1943 (0x0797)

lri $AR1,    #0x4000
lri $IX1,    #0x0797
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1944 (0x0798)

lri $AR1,    #0x4000
lri $IX1,    #0x0798
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1945 (0x0799)

lri $AR1,    #0x4000
lri $IX1,    #0x0799
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1946 (0x079a)

lri $AR1,    #0x4000
lri $IX1,    #0x079a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1947 (0x079b)

lri $AR1,    #0x4000
lri $IX1,    #0x079b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1948 (0x079c)

lri $AR1,    #0x4000
lri $IX1,    #0x079c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1949 (0x079d)

lri $AR1,    #0x4000
lri $IX1,    #0x079d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1950 (0x079e)

lri $AR1,    #0x4000
lri $IX1,    #0x079e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1951 (0x079f)

lri $AR1,    #0x4000
lri $IX1,    #0x079f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1952 (0x07a0)

lri $AR1,    #0x4000
lri $IX1,    #0x07a0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1953 (0x07a1)

lri $AR1,    #0x4000
lri $IX1,    #0x07a1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1954 (0x07a2)

lri $AR1,    #0x4000
lri $IX1,    #0x07a2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1955 (0x07a3)

lri $AR1,    #0x4000
lri $IX1,    #0x07a3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1956 (0x07a4)

lri $AR1,    #0x4000
lri $IX1,    #0x07a4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1957 (0x07a5)

lri $AR1,    #0x4000
lri $IX1,    #0x07a5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1958 (0x07a6)

lri $AR1,    #0x4000
lri $IX1,    #0x07a6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1959 (0x07a7)

lri $AR1,    #0x4000
lri $IX1,    #0x07a7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1960 (0x07a8)

lri $AR1,    #0x4000
lri $IX1,    #0x07a8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1961 (0x07a9)

lri $AR1,    #0x4000
lri $IX1,    #0x07a9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1962 (0x07aa)

lri $AR1,    #0x4000
lri $IX1,    #0x07aa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1963 (0x07ab)

lri $AR1,    #0x4000
lri $IX1,    #0x07ab
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1964 (0x07ac)

lri $AR1,    #0x4000
lri $IX1,    #0x07ac
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1965 (0x07ad)

lri $AR1,    #0x4000
lri $IX1,    #0x07ad
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1966 (0x07ae)

lri $AR1,    #0x4000
lri $IX1,    #0x07ae
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1967 (0x07af)

lri $AR1,    #0x4000
lri $IX1,    #0x07af
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1968 (0x07b0)

lri $AR1,    #0x4000
lri $IX1,    #0x07b0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1969 (0x07b1)

lri $AR1,    #0x4000
lri $IX1,    #0x07b1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1970 (0x07b2)

lri $AR1,    #0x4000
lri $IX1,    #0x07b2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1971 (0x07b3)

lri $AR1,    #0x4000
lri $IX1,    #0x07b3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1972 (0x07b4)

lri $AR1,    #0x4000
lri $IX1,    #0x07b4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1973 (0x07b5)

lri $AR1,    #0x4000
lri $IX1,    #0x07b5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1974 (0x07b6)

lri $AR1,    #0x4000
lri $IX1,    #0x07b6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1975 (0x07b7)

lri $AR1,    #0x4000
lri $IX1,    #0x07b7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1976 (0x07b8)

lri $AR1,    #0x4000
lri $IX1,    #0x07b8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1977 (0x07b9)

lri $AR1,    #0x4000
lri $IX1,    #0x07b9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1978 (0x07ba)

lri $AR1,    #0x4000
lri $IX1,    #0x07ba
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1979 (0x07bb)

lri $AR1,    #0x4000
lri $IX1,    #0x07bb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1980 (0x07bc)

lri $AR1,    #0x4000
lri $IX1,    #0x07bc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1981 (0x07bd)

lri $AR1,    #0x4000
lri $IX1,    #0x07bd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1982 (0x07be)

lri $AR1,    #0x4000
lri $IX1,    #0x07be
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1983 (0x07bf)

lri $AR1,    #0x4000
lri $IX1,    #0x07bf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1984 (0x07c0)

lri $AR1,    #0x4000
lri $IX1,    #0x07c0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1985 (0x07c1)

lri $AR1,    #0x4000
lri $IX1,    #0x07c1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1986 (0x07c2)

lri $AR1,    #0x4000
lri $IX1,    #0x07c2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1987 (0x07c3)

lri $AR1,    #0x4000
lri $IX1,    #0x07c3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1988 (0x07c4)

lri $AR1,    #0x4000
lri $IX1,    #0x07c4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1989 (0x07c5)

lri $AR1,    #0x4000
lri $IX1,    #0x07c5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1990 (0x07c6)

lri $AR1,    #0x4000
lri $IX1,    #0x07c6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1991 (0x07c7)

lri $AR1,    #0x4000
lri $IX1,    #0x07c7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1992 (0x07c8)

lri $AR1,    #0x4000
lri $IX1,    #0x07c8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1993 (0x07c9)

lri $AR1,    #0x4000
lri $IX1,    #0x07c9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1994 (0x07ca)

lri $AR1,    #0x4000
lri $IX1,    #0x07ca
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1995 (0x07cb)

lri $AR1,    #0x4000
lri $IX1,    #0x07cb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1996 (0x07cc)

lri $AR1,    #0x4000
lri $IX1,    #0x07cc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1997 (0x07cd)

lri $AR1,    #0x4000
lri $IX1,    #0x07cd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1998 (0x07ce)

lri $AR1,    #0x4000
lri $IX1,    #0x07ce
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 1999 (0x07cf)

lri $AR1,    #0x4000
lri $IX1,    #0x07cf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2000 (0x07d0)

lri $AR1,    #0x4000
lri $IX1,    #0x07d0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2001 (0x07d1)

lri $AR1,    #0x4000
lri $IX1,    #0x07d1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2002 (0x07d2)

lri $AR1,    #0x4000
lri $IX1,    #0x07d2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2003 (0x07d3)

lri $AR1,    #0x4000
lri $IX1,    #0x07d3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2004 (0x07d4)

lri $AR1,    #0x4000
lri $IX1,    #0x07d4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2005 (0x07d5)

lri $AR1,    #0x4000
lri $IX1,    #0x07d5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2006 (0x07d6)

lri $AR1,    #0x4000
lri $IX1,    #0x07d6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2007 (0x07d7)

lri $AR1,    #0x4000
lri $IX1,    #0x07d7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2008 (0x07d8)

lri $AR1,    #0x4000
lri $IX1,    #0x07d8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2009 (0x07d9)

lri $AR1,    #0x4000
lri $IX1,    #0x07d9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2010 (0x07da)

lri $AR1,    #0x4000
lri $IX1,    #0x07da
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2011 (0x07db)

lri $AR1,    #0x4000
lri $IX1,    #0x07db
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2012 (0x07dc)

lri $AR1,    #0x4000
lri $IX1,    #0x07dc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2013 (0x07dd)

lri $AR1,    #0x4000
lri $IX1,    #0x07dd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2014 (0x07de)

lri $AR1,    #0x4000
lri $IX1,    #0x07de
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2015 (0x07df)

lri $AR1,    #0x4000
lri $IX1,    #0x07df
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2016 (0x07e0)

lri $AR1,    #0x4000
lri $IX1,    #0x07e0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2017 (0x07e1)

lri $AR1,    #0x4000
lri $IX1,    #0x07e1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2018 (0x07e2)

lri $AR1,    #0x4000
lri $IX1,    #0x07e2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2019 (0x07e3)

lri $AR1,    #0x4000
lri $IX1,    #0x07e3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2020 (0x07e4)

lri $AR1,    #0x4000
lri $IX1,    #0x07e4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2021 (0x07e5)

lri $AR1,    #0x4000
lri $IX1,    #0x07e5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2022 (0x07e6)

lri $AR1,    #0x4000
lri $IX1,    #0x07e6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2023 (0x07e7)

lri $AR1,    #0x4000
lri $IX1,    #0x07e7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2024 (0x07e8)

lri $AR1,    #0x4000
lri $IX1,    #0x07e8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2025 (0x07e9)

lri $AR1,    #0x4000
lri $IX1,    #0x07e9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2026 (0x07ea)

lri $AR1,    #0x4000
lri $IX1,    #0x07ea
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2027 (0x07eb)

lri $AR1,    #0x4000
lri $IX1,    #0x07eb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2028 (0x07ec)

lri $AR1,    #0x4000
lri $IX1,    #0x07ec
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2029 (0x07ed)

lri $AR1,    #0x4000
lri $IX1,    #0x07ed
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2030 (0x07ee)

lri $AR1,    #0x4000
lri $IX1,    #0x07ee
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2031 (0x07ef)

lri $AR1,    #0x4000
lri $IX1,    #0x07ef
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2032 (0x07f0)

lri $AR1,    #0x4000
lri $IX1,    #0x07f0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2033 (0x07f1)

lri $AR1,    #0x4000
lri $IX1,    #0x07f1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2034 (0x07f2)

lri $AR1,    #0x4000
lri $IX1,    #0x07f2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2035 (0x07f3)

lri $AR1,    #0x4000
lri $IX1,    #0x07f3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2036 (0x07f4)

lri $AR1,    #0x4000
lri $IX1,    #0x07f4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2037 (0x07f5)

lri $AR1,    #0x4000
lri $IX1,    #0x07f5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2038 (0x07f6)

lri $AR1,    #0x4000
lri $IX1,    #0x07f6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2039 (0x07f7)

lri $AR1,    #0x4000
lri $IX1,    #0x07f7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2040 (0x07f8)

lri $AR1,    #0x4000
lri $IX1,    #0x07f8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2041 (0x07f9)

lri $AR1,    #0x4000
lri $IX1,    #0x07f9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2042 (0x07fa)

lri $AR1,    #0x4000
lri $IX1,    #0x07fa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2043 (0x07fb)

lri $AR1,    #0x4000
lri $IX1,    #0x07fb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2044 (0x07fc)

lri $AR1,    #0x4000
lri $IX1,    #0x07fc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2045 (0x07fd)

lri $AR1,    #0x4000
lri $IX1,    #0x07fd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2046 (0x07fe)

lri $AR1,    #0x4000
lri $IX1,    #0x07fe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2047 (0x07ff)

lri $AR1,    #0x4000
lri $IX1,    #0x07ff
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 2048 (0x0800)

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

