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

lri $AR1,    #0x4000
lri $IX1,    #0x4e00
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19969 (0x4e01)

lri $AR1,    #0x4000
lri $IX1,    #0x4e01
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19970 (0x4e02)

lri $AR1,    #0x4000
lri $IX1,    #0x4e02
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19971 (0x4e03)

lri $AR1,    #0x4000
lri $IX1,    #0x4e03
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19972 (0x4e04)

lri $AR1,    #0x4000
lri $IX1,    #0x4e04
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19973 (0x4e05)

lri $AR1,    #0x4000
lri $IX1,    #0x4e05
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19974 (0x4e06)

lri $AR1,    #0x4000
lri $IX1,    #0x4e06
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19975 (0x4e07)

lri $AR1,    #0x4000
lri $IX1,    #0x4e07
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19976 (0x4e08)

lri $AR1,    #0x4000
lri $IX1,    #0x4e08
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19977 (0x4e09)

lri $AR1,    #0x4000
lri $IX1,    #0x4e09
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19978 (0x4e0a)

lri $AR1,    #0x4000
lri $IX1,    #0x4e0a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19979 (0x4e0b)

lri $AR1,    #0x4000
lri $IX1,    #0x4e0b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19980 (0x4e0c)

lri $AR1,    #0x4000
lri $IX1,    #0x4e0c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19981 (0x4e0d)

lri $AR1,    #0x4000
lri $IX1,    #0x4e0d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19982 (0x4e0e)

lri $AR1,    #0x4000
lri $IX1,    #0x4e0e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19983 (0x4e0f)

lri $AR1,    #0x4000
lri $IX1,    #0x4e0f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19984 (0x4e10)

lri $AR1,    #0x4000
lri $IX1,    #0x4e10
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19985 (0x4e11)

lri $AR1,    #0x4000
lri $IX1,    #0x4e11
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19986 (0x4e12)

lri $AR1,    #0x4000
lri $IX1,    #0x4e12
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19987 (0x4e13)

lri $AR1,    #0x4000
lri $IX1,    #0x4e13
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19988 (0x4e14)

lri $AR1,    #0x4000
lri $IX1,    #0x4e14
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19989 (0x4e15)

lri $AR1,    #0x4000
lri $IX1,    #0x4e15
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19990 (0x4e16)

lri $AR1,    #0x4000
lri $IX1,    #0x4e16
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19991 (0x4e17)

lri $AR1,    #0x4000
lri $IX1,    #0x4e17
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19992 (0x4e18)

lri $AR1,    #0x4000
lri $IX1,    #0x4e18
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19993 (0x4e19)

lri $AR1,    #0x4000
lri $IX1,    #0x4e19
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19994 (0x4e1a)

lri $AR1,    #0x4000
lri $IX1,    #0x4e1a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19995 (0x4e1b)

lri $AR1,    #0x4000
lri $IX1,    #0x4e1b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19996 (0x4e1c)

lri $AR1,    #0x4000
lri $IX1,    #0x4e1c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19997 (0x4e1d)

lri $AR1,    #0x4000
lri $IX1,    #0x4e1d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19998 (0x4e1e)

lri $AR1,    #0x4000
lri $IX1,    #0x4e1e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 19999 (0x4e1f)

lri $AR1,    #0x4000
lri $IX1,    #0x4e1f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20000 (0x4e20)

lri $AR1,    #0x4000
lri $IX1,    #0x4e20
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20001 (0x4e21)

lri $AR1,    #0x4000
lri $IX1,    #0x4e21
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20002 (0x4e22)

lri $AR1,    #0x4000
lri $IX1,    #0x4e22
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20003 (0x4e23)

lri $AR1,    #0x4000
lri $IX1,    #0x4e23
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20004 (0x4e24)

lri $AR1,    #0x4000
lri $IX1,    #0x4e24
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20005 (0x4e25)

lri $AR1,    #0x4000
lri $IX1,    #0x4e25
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20006 (0x4e26)

lri $AR1,    #0x4000
lri $IX1,    #0x4e26
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20007 (0x4e27)

lri $AR1,    #0x4000
lri $IX1,    #0x4e27
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20008 (0x4e28)

lri $AR1,    #0x4000
lri $IX1,    #0x4e28
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20009 (0x4e29)

lri $AR1,    #0x4000
lri $IX1,    #0x4e29
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20010 (0x4e2a)

lri $AR1,    #0x4000
lri $IX1,    #0x4e2a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20011 (0x4e2b)

lri $AR1,    #0x4000
lri $IX1,    #0x4e2b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20012 (0x4e2c)

lri $AR1,    #0x4000
lri $IX1,    #0x4e2c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20013 (0x4e2d)

lri $AR1,    #0x4000
lri $IX1,    #0x4e2d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20014 (0x4e2e)

lri $AR1,    #0x4000
lri $IX1,    #0x4e2e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20015 (0x4e2f)

lri $AR1,    #0x4000
lri $IX1,    #0x4e2f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20016 (0x4e30)

lri $AR1,    #0x4000
lri $IX1,    #0x4e30
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20017 (0x4e31)

lri $AR1,    #0x4000
lri $IX1,    #0x4e31
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20018 (0x4e32)

lri $AR1,    #0x4000
lri $IX1,    #0x4e32
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20019 (0x4e33)

lri $AR1,    #0x4000
lri $IX1,    #0x4e33
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20020 (0x4e34)

lri $AR1,    #0x4000
lri $IX1,    #0x4e34
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20021 (0x4e35)

lri $AR1,    #0x4000
lri $IX1,    #0x4e35
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20022 (0x4e36)

lri $AR1,    #0x4000
lri $IX1,    #0x4e36
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20023 (0x4e37)

lri $AR1,    #0x4000
lri $IX1,    #0x4e37
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20024 (0x4e38)

lri $AR1,    #0x4000
lri $IX1,    #0x4e38
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20025 (0x4e39)

lri $AR1,    #0x4000
lri $IX1,    #0x4e39
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20026 (0x4e3a)

lri $AR1,    #0x4000
lri $IX1,    #0x4e3a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20027 (0x4e3b)

lri $AR1,    #0x4000
lri $IX1,    #0x4e3b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20028 (0x4e3c)

lri $AR1,    #0x4000
lri $IX1,    #0x4e3c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20029 (0x4e3d)

lri $AR1,    #0x4000
lri $IX1,    #0x4e3d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20030 (0x4e3e)

lri $AR1,    #0x4000
lri $IX1,    #0x4e3e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20031 (0x4e3f)

lri $AR1,    #0x4000
lri $IX1,    #0x4e3f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20032 (0x4e40)

lri $AR1,    #0x4000
lri $IX1,    #0x4e40
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20033 (0x4e41)

lri $AR1,    #0x4000
lri $IX1,    #0x4e41
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20034 (0x4e42)

lri $AR1,    #0x4000
lri $IX1,    #0x4e42
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20035 (0x4e43)

lri $AR1,    #0x4000
lri $IX1,    #0x4e43
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20036 (0x4e44)

lri $AR1,    #0x4000
lri $IX1,    #0x4e44
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20037 (0x4e45)

lri $AR1,    #0x4000
lri $IX1,    #0x4e45
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20038 (0x4e46)

lri $AR1,    #0x4000
lri $IX1,    #0x4e46
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20039 (0x4e47)

lri $AR1,    #0x4000
lri $IX1,    #0x4e47
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20040 (0x4e48)

lri $AR1,    #0x4000
lri $IX1,    #0x4e48
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20041 (0x4e49)

lri $AR1,    #0x4000
lri $IX1,    #0x4e49
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20042 (0x4e4a)

lri $AR1,    #0x4000
lri $IX1,    #0x4e4a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20043 (0x4e4b)

lri $AR1,    #0x4000
lri $IX1,    #0x4e4b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20044 (0x4e4c)

lri $AR1,    #0x4000
lri $IX1,    #0x4e4c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20045 (0x4e4d)

lri $AR1,    #0x4000
lri $IX1,    #0x4e4d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20046 (0x4e4e)

lri $AR1,    #0x4000
lri $IX1,    #0x4e4e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20047 (0x4e4f)

lri $AR1,    #0x4000
lri $IX1,    #0x4e4f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20048 (0x4e50)

lri $AR1,    #0x4000
lri $IX1,    #0x4e50
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20049 (0x4e51)

lri $AR1,    #0x4000
lri $IX1,    #0x4e51
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20050 (0x4e52)

lri $AR1,    #0x4000
lri $IX1,    #0x4e52
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20051 (0x4e53)

lri $AR1,    #0x4000
lri $IX1,    #0x4e53
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20052 (0x4e54)

lri $AR1,    #0x4000
lri $IX1,    #0x4e54
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20053 (0x4e55)

lri $AR1,    #0x4000
lri $IX1,    #0x4e55
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20054 (0x4e56)

lri $AR1,    #0x4000
lri $IX1,    #0x4e56
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20055 (0x4e57)

lri $AR1,    #0x4000
lri $IX1,    #0x4e57
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20056 (0x4e58)

lri $AR1,    #0x4000
lri $IX1,    #0x4e58
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20057 (0x4e59)

lri $AR1,    #0x4000
lri $IX1,    #0x4e59
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20058 (0x4e5a)

lri $AR1,    #0x4000
lri $IX1,    #0x4e5a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20059 (0x4e5b)

lri $AR1,    #0x4000
lri $IX1,    #0x4e5b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20060 (0x4e5c)

lri $AR1,    #0x4000
lri $IX1,    #0x4e5c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20061 (0x4e5d)

lri $AR1,    #0x4000
lri $IX1,    #0x4e5d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20062 (0x4e5e)

lri $AR1,    #0x4000
lri $IX1,    #0x4e5e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20063 (0x4e5f)

lri $AR1,    #0x4000
lri $IX1,    #0x4e5f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20064 (0x4e60)

lri $AR1,    #0x4000
lri $IX1,    #0x4e60
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20065 (0x4e61)

lri $AR1,    #0x4000
lri $IX1,    #0x4e61
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20066 (0x4e62)

lri $AR1,    #0x4000
lri $IX1,    #0x4e62
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20067 (0x4e63)

lri $AR1,    #0x4000
lri $IX1,    #0x4e63
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20068 (0x4e64)

lri $AR1,    #0x4000
lri $IX1,    #0x4e64
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20069 (0x4e65)

lri $AR1,    #0x4000
lri $IX1,    #0x4e65
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20070 (0x4e66)

lri $AR1,    #0x4000
lri $IX1,    #0x4e66
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20071 (0x4e67)

lri $AR1,    #0x4000
lri $IX1,    #0x4e67
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20072 (0x4e68)

lri $AR1,    #0x4000
lri $IX1,    #0x4e68
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20073 (0x4e69)

lri $AR1,    #0x4000
lri $IX1,    #0x4e69
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20074 (0x4e6a)

lri $AR1,    #0x4000
lri $IX1,    #0x4e6a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20075 (0x4e6b)

lri $AR1,    #0x4000
lri $IX1,    #0x4e6b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20076 (0x4e6c)

lri $AR1,    #0x4000
lri $IX1,    #0x4e6c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20077 (0x4e6d)

lri $AR1,    #0x4000
lri $IX1,    #0x4e6d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20078 (0x4e6e)

lri $AR1,    #0x4000
lri $IX1,    #0x4e6e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20079 (0x4e6f)

lri $AR1,    #0x4000
lri $IX1,    #0x4e6f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20080 (0x4e70)

lri $AR1,    #0x4000
lri $IX1,    #0x4e70
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20081 (0x4e71)

lri $AR1,    #0x4000
lri $IX1,    #0x4e71
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20082 (0x4e72)

lri $AR1,    #0x4000
lri $IX1,    #0x4e72
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20083 (0x4e73)

lri $AR1,    #0x4000
lri $IX1,    #0x4e73
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20084 (0x4e74)

lri $AR1,    #0x4000
lri $IX1,    #0x4e74
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20085 (0x4e75)

lri $AR1,    #0x4000
lri $IX1,    #0x4e75
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20086 (0x4e76)

lri $AR1,    #0x4000
lri $IX1,    #0x4e76
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20087 (0x4e77)

lri $AR1,    #0x4000
lri $IX1,    #0x4e77
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20088 (0x4e78)

lri $AR1,    #0x4000
lri $IX1,    #0x4e78
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20089 (0x4e79)

lri $AR1,    #0x4000
lri $IX1,    #0x4e79
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20090 (0x4e7a)

lri $AR1,    #0x4000
lri $IX1,    #0x4e7a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20091 (0x4e7b)

lri $AR1,    #0x4000
lri $IX1,    #0x4e7b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20092 (0x4e7c)

lri $AR1,    #0x4000
lri $IX1,    #0x4e7c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20093 (0x4e7d)

lri $AR1,    #0x4000
lri $IX1,    #0x4e7d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20094 (0x4e7e)

lri $AR1,    #0x4000
lri $IX1,    #0x4e7e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20095 (0x4e7f)

lri $AR1,    #0x4000
lri $IX1,    #0x4e7f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 20096 (0x4e80)

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

