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

lri $AR1,    #0x4000
lri $IX1,    #0x1f00
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7937 (0x1f01)

lri $AR1,    #0x4000
lri $IX1,    #0x1f01
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7938 (0x1f02)

lri $AR1,    #0x4000
lri $IX1,    #0x1f02
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7939 (0x1f03)

lri $AR1,    #0x4000
lri $IX1,    #0x1f03
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7940 (0x1f04)

lri $AR1,    #0x4000
lri $IX1,    #0x1f04
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7941 (0x1f05)

lri $AR1,    #0x4000
lri $IX1,    #0x1f05
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7942 (0x1f06)

lri $AR1,    #0x4000
lri $IX1,    #0x1f06
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7943 (0x1f07)

lri $AR1,    #0x4000
lri $IX1,    #0x1f07
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7944 (0x1f08)

lri $AR1,    #0x4000
lri $IX1,    #0x1f08
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7945 (0x1f09)

lri $AR1,    #0x4000
lri $IX1,    #0x1f09
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7946 (0x1f0a)

lri $AR1,    #0x4000
lri $IX1,    #0x1f0a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7947 (0x1f0b)

lri $AR1,    #0x4000
lri $IX1,    #0x1f0b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7948 (0x1f0c)

lri $AR1,    #0x4000
lri $IX1,    #0x1f0c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7949 (0x1f0d)

lri $AR1,    #0x4000
lri $IX1,    #0x1f0d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7950 (0x1f0e)

lri $AR1,    #0x4000
lri $IX1,    #0x1f0e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7951 (0x1f0f)

lri $AR1,    #0x4000
lri $IX1,    #0x1f0f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7952 (0x1f10)

lri $AR1,    #0x4000
lri $IX1,    #0x1f10
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7953 (0x1f11)

lri $AR1,    #0x4000
lri $IX1,    #0x1f11
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7954 (0x1f12)

lri $AR1,    #0x4000
lri $IX1,    #0x1f12
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7955 (0x1f13)

lri $AR1,    #0x4000
lri $IX1,    #0x1f13
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7956 (0x1f14)

lri $AR1,    #0x4000
lri $IX1,    #0x1f14
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7957 (0x1f15)

lri $AR1,    #0x4000
lri $IX1,    #0x1f15
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7958 (0x1f16)

lri $AR1,    #0x4000
lri $IX1,    #0x1f16
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7959 (0x1f17)

lri $AR1,    #0x4000
lri $IX1,    #0x1f17
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7960 (0x1f18)

lri $AR1,    #0x4000
lri $IX1,    #0x1f18
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7961 (0x1f19)

lri $AR1,    #0x4000
lri $IX1,    #0x1f19
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7962 (0x1f1a)

lri $AR1,    #0x4000
lri $IX1,    #0x1f1a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7963 (0x1f1b)

lri $AR1,    #0x4000
lri $IX1,    #0x1f1b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7964 (0x1f1c)

lri $AR1,    #0x4000
lri $IX1,    #0x1f1c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7965 (0x1f1d)

lri $AR1,    #0x4000
lri $IX1,    #0x1f1d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7966 (0x1f1e)

lri $AR1,    #0x4000
lri $IX1,    #0x1f1e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7967 (0x1f1f)

lri $AR1,    #0x4000
lri $IX1,    #0x1f1f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7968 (0x1f20)

lri $AR1,    #0x4000
lri $IX1,    #0x1f20
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7969 (0x1f21)

lri $AR1,    #0x4000
lri $IX1,    #0x1f21
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7970 (0x1f22)

lri $AR1,    #0x4000
lri $IX1,    #0x1f22
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7971 (0x1f23)

lri $AR1,    #0x4000
lri $IX1,    #0x1f23
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7972 (0x1f24)

lri $AR1,    #0x4000
lri $IX1,    #0x1f24
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7973 (0x1f25)

lri $AR1,    #0x4000
lri $IX1,    #0x1f25
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7974 (0x1f26)

lri $AR1,    #0x4000
lri $IX1,    #0x1f26
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7975 (0x1f27)

lri $AR1,    #0x4000
lri $IX1,    #0x1f27
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7976 (0x1f28)

lri $AR1,    #0x4000
lri $IX1,    #0x1f28
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7977 (0x1f29)

lri $AR1,    #0x4000
lri $IX1,    #0x1f29
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7978 (0x1f2a)

lri $AR1,    #0x4000
lri $IX1,    #0x1f2a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7979 (0x1f2b)

lri $AR1,    #0x4000
lri $IX1,    #0x1f2b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7980 (0x1f2c)

lri $AR1,    #0x4000
lri $IX1,    #0x1f2c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7981 (0x1f2d)

lri $AR1,    #0x4000
lri $IX1,    #0x1f2d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7982 (0x1f2e)

lri $AR1,    #0x4000
lri $IX1,    #0x1f2e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7983 (0x1f2f)

lri $AR1,    #0x4000
lri $IX1,    #0x1f2f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7984 (0x1f30)

lri $AR1,    #0x4000
lri $IX1,    #0x1f30
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7985 (0x1f31)

lri $AR1,    #0x4000
lri $IX1,    #0x1f31
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7986 (0x1f32)

lri $AR1,    #0x4000
lri $IX1,    #0x1f32
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7987 (0x1f33)

lri $AR1,    #0x4000
lri $IX1,    #0x1f33
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7988 (0x1f34)

lri $AR1,    #0x4000
lri $IX1,    #0x1f34
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7989 (0x1f35)

lri $AR1,    #0x4000
lri $IX1,    #0x1f35
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7990 (0x1f36)

lri $AR1,    #0x4000
lri $IX1,    #0x1f36
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7991 (0x1f37)

lri $AR1,    #0x4000
lri $IX1,    #0x1f37
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7992 (0x1f38)

lri $AR1,    #0x4000
lri $IX1,    #0x1f38
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7993 (0x1f39)

lri $AR1,    #0x4000
lri $IX1,    #0x1f39
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7994 (0x1f3a)

lri $AR1,    #0x4000
lri $IX1,    #0x1f3a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7995 (0x1f3b)

lri $AR1,    #0x4000
lri $IX1,    #0x1f3b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7996 (0x1f3c)

lri $AR1,    #0x4000
lri $IX1,    #0x1f3c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7997 (0x1f3d)

lri $AR1,    #0x4000
lri $IX1,    #0x1f3d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7998 (0x1f3e)

lri $AR1,    #0x4000
lri $IX1,    #0x1f3e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 7999 (0x1f3f)

lri $AR1,    #0x4000
lri $IX1,    #0x1f3f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8000 (0x1f40)

lri $AR1,    #0x4000
lri $IX1,    #0x1f40
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8001 (0x1f41)

lri $AR1,    #0x4000
lri $IX1,    #0x1f41
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8002 (0x1f42)

lri $AR1,    #0x4000
lri $IX1,    #0x1f42
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8003 (0x1f43)

lri $AR1,    #0x4000
lri $IX1,    #0x1f43
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8004 (0x1f44)

lri $AR1,    #0x4000
lri $IX1,    #0x1f44
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8005 (0x1f45)

lri $AR1,    #0x4000
lri $IX1,    #0x1f45
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8006 (0x1f46)

lri $AR1,    #0x4000
lri $IX1,    #0x1f46
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8007 (0x1f47)

lri $AR1,    #0x4000
lri $IX1,    #0x1f47
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8008 (0x1f48)

lri $AR1,    #0x4000
lri $IX1,    #0x1f48
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8009 (0x1f49)

lri $AR1,    #0x4000
lri $IX1,    #0x1f49
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8010 (0x1f4a)

lri $AR1,    #0x4000
lri $IX1,    #0x1f4a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8011 (0x1f4b)

lri $AR1,    #0x4000
lri $IX1,    #0x1f4b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8012 (0x1f4c)

lri $AR1,    #0x4000
lri $IX1,    #0x1f4c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8013 (0x1f4d)

lri $AR1,    #0x4000
lri $IX1,    #0x1f4d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8014 (0x1f4e)

lri $AR1,    #0x4000
lri $IX1,    #0x1f4e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8015 (0x1f4f)

lri $AR1,    #0x4000
lri $IX1,    #0x1f4f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8016 (0x1f50)

lri $AR1,    #0x4000
lri $IX1,    #0x1f50
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8017 (0x1f51)

lri $AR1,    #0x4000
lri $IX1,    #0x1f51
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8018 (0x1f52)

lri $AR1,    #0x4000
lri $IX1,    #0x1f52
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8019 (0x1f53)

lri $AR1,    #0x4000
lri $IX1,    #0x1f53
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8020 (0x1f54)

lri $AR1,    #0x4000
lri $IX1,    #0x1f54
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8021 (0x1f55)

lri $AR1,    #0x4000
lri $IX1,    #0x1f55
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8022 (0x1f56)

lri $AR1,    #0x4000
lri $IX1,    #0x1f56
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8023 (0x1f57)

lri $AR1,    #0x4000
lri $IX1,    #0x1f57
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8024 (0x1f58)

lri $AR1,    #0x4000
lri $IX1,    #0x1f58
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8025 (0x1f59)

lri $AR1,    #0x4000
lri $IX1,    #0x1f59
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8026 (0x1f5a)

lri $AR1,    #0x4000
lri $IX1,    #0x1f5a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8027 (0x1f5b)

lri $AR1,    #0x4000
lri $IX1,    #0x1f5b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8028 (0x1f5c)

lri $AR1,    #0x4000
lri $IX1,    #0x1f5c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8029 (0x1f5d)

lri $AR1,    #0x4000
lri $IX1,    #0x1f5d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8030 (0x1f5e)

lri $AR1,    #0x4000
lri $IX1,    #0x1f5e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8031 (0x1f5f)

lri $AR1,    #0x4000
lri $IX1,    #0x1f5f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8032 (0x1f60)

lri $AR1,    #0x4000
lri $IX1,    #0x1f60
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8033 (0x1f61)

lri $AR1,    #0x4000
lri $IX1,    #0x1f61
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8034 (0x1f62)

lri $AR1,    #0x4000
lri $IX1,    #0x1f62
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8035 (0x1f63)

lri $AR1,    #0x4000
lri $IX1,    #0x1f63
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8036 (0x1f64)

lri $AR1,    #0x4000
lri $IX1,    #0x1f64
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8037 (0x1f65)

lri $AR1,    #0x4000
lri $IX1,    #0x1f65
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8038 (0x1f66)

lri $AR1,    #0x4000
lri $IX1,    #0x1f66
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8039 (0x1f67)

lri $AR1,    #0x4000
lri $IX1,    #0x1f67
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8040 (0x1f68)

lri $AR1,    #0x4000
lri $IX1,    #0x1f68
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8041 (0x1f69)

lri $AR1,    #0x4000
lri $IX1,    #0x1f69
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8042 (0x1f6a)

lri $AR1,    #0x4000
lri $IX1,    #0x1f6a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8043 (0x1f6b)

lri $AR1,    #0x4000
lri $IX1,    #0x1f6b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8044 (0x1f6c)

lri $AR1,    #0x4000
lri $IX1,    #0x1f6c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8045 (0x1f6d)

lri $AR1,    #0x4000
lri $IX1,    #0x1f6d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8046 (0x1f6e)

lri $AR1,    #0x4000
lri $IX1,    #0x1f6e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8047 (0x1f6f)

lri $AR1,    #0x4000
lri $IX1,    #0x1f6f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8048 (0x1f70)

lri $AR1,    #0x4000
lri $IX1,    #0x1f70
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8049 (0x1f71)

lri $AR1,    #0x4000
lri $IX1,    #0x1f71
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8050 (0x1f72)

lri $AR1,    #0x4000
lri $IX1,    #0x1f72
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8051 (0x1f73)

lri $AR1,    #0x4000
lri $IX1,    #0x1f73
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8052 (0x1f74)

lri $AR1,    #0x4000
lri $IX1,    #0x1f74
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8053 (0x1f75)

lri $AR1,    #0x4000
lri $IX1,    #0x1f75
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8054 (0x1f76)

lri $AR1,    #0x4000
lri $IX1,    #0x1f76
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8055 (0x1f77)

lri $AR1,    #0x4000
lri $IX1,    #0x1f77
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8056 (0x1f78)

lri $AR1,    #0x4000
lri $IX1,    #0x1f78
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8057 (0x1f79)

lri $AR1,    #0x4000
lri $IX1,    #0x1f79
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8058 (0x1f7a)

lri $AR1,    #0x4000
lri $IX1,    #0x1f7a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8059 (0x1f7b)

lri $AR1,    #0x4000
lri $IX1,    #0x1f7b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8060 (0x1f7c)

lri $AR1,    #0x4000
lri $IX1,    #0x1f7c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8061 (0x1f7d)

lri $AR1,    #0x4000
lri $IX1,    #0x1f7d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8062 (0x1f7e)

lri $AR1,    #0x4000
lri $IX1,    #0x1f7e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8063 (0x1f7f)

lri $AR1,    #0x4000
lri $IX1,    #0x1f7f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 8064 (0x1f80)

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

