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

lri $AR1,    #0x0080
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3969 (0x0f81)

lri $AR1,    #0x0081
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3970 (0x0f82)

lri $AR1,    #0x0082
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3971 (0x0f83)

lri $AR1,    #0x0083
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3972 (0x0f84)

lri $AR1,    #0x0084
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3973 (0x0f85)

lri $AR1,    #0x0085
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3974 (0x0f86)

lri $AR1,    #0x0086
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3975 (0x0f87)

lri $AR1,    #0x0087
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3976 (0x0f88)

lri $AR1,    #0x0088
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3977 (0x0f89)

lri $AR1,    #0x0089
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3978 (0x0f8a)

lri $AR1,    #0x008a
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3979 (0x0f8b)

lri $AR1,    #0x008b
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3980 (0x0f8c)

lri $AR1,    #0x008c
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3981 (0x0f8d)

lri $AR1,    #0x008d
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3982 (0x0f8e)

lri $AR1,    #0x008e
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3983 (0x0f8f)

lri $AR1,    #0x008f
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3984 (0x0f90)

lri $AR1,    #0x0090
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3985 (0x0f91)

lri $AR1,    #0x0091
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3986 (0x0f92)

lri $AR1,    #0x0092
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3987 (0x0f93)

lri $AR1,    #0x0093
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3988 (0x0f94)

lri $AR1,    #0x0094
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3989 (0x0f95)

lri $AR1,    #0x0095
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3990 (0x0f96)

lri $AR1,    #0x0096
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3991 (0x0f97)

lri $AR1,    #0x0097
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3992 (0x0f98)

lri $AR1,    #0x0098
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3993 (0x0f99)

lri $AR1,    #0x0099
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3994 (0x0f9a)

lri $AR1,    #0x009a
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3995 (0x0f9b)

lri $AR1,    #0x009b
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3996 (0x0f9c)

lri $AR1,    #0x009c
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3997 (0x0f9d)

lri $AR1,    #0x009d
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3998 (0x0f9e)

lri $AR1,    #0x009e
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 3999 (0x0f9f)

lri $AR1,    #0x009f
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4000 (0x0fa0)

lri $AR1,    #0x00a0
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4001 (0x0fa1)

lri $AR1,    #0x00a1
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4002 (0x0fa2)

lri $AR1,    #0x00a2
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4003 (0x0fa3)

lri $AR1,    #0x00a3
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4004 (0x0fa4)

lri $AR1,    #0x00a4
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4005 (0x0fa5)

lri $AR1,    #0x00a5
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4006 (0x0fa6)

lri $AR1,    #0x00a6
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4007 (0x0fa7)

lri $AR1,    #0x00a7
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4008 (0x0fa8)

lri $AR1,    #0x00a8
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4009 (0x0fa9)

lri $AR1,    #0x00a9
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4010 (0x0faa)

lri $AR1,    #0x00aa
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4011 (0x0fab)

lri $AR1,    #0x00ab
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4012 (0x0fac)

lri $AR1,    #0x00ac
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4013 (0x0fad)

lri $AR1,    #0x00ad
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4014 (0x0fae)

lri $AR1,    #0x00ae
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4015 (0x0faf)

lri $AR1,    #0x00af
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4016 (0x0fb0)

lri $AR1,    #0x00b0
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4017 (0x0fb1)

lri $AR1,    #0x00b1
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4018 (0x0fb2)

lri $AR1,    #0x00b2
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4019 (0x0fb3)

lri $AR1,    #0x00b3
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4020 (0x0fb4)

lri $AR1,    #0x00b4
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4021 (0x0fb5)

lri $AR1,    #0x00b5
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4022 (0x0fb6)

lri $AR1,    #0x00b6
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4023 (0x0fb7)

lri $AR1,    #0x00b7
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4024 (0x0fb8)

lri $AR1,    #0x00b8
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4025 (0x0fb9)

lri $AR1,    #0x00b9
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4026 (0x0fba)

lri $AR1,    #0x00ba
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4027 (0x0fbb)

lri $AR1,    #0x00bb
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4028 (0x0fbc)

lri $AR1,    #0x00bc
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4029 (0x0fbd)

lri $AR1,    #0x00bd
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4030 (0x0fbe)

lri $AR1,    #0x00be
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4031 (0x0fbf)

lri $AR1,    #0x00bf
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4032 (0x0fc0)

lri $AR1,    #0x00c0
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4033 (0x0fc1)

lri $AR1,    #0x00c1
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4034 (0x0fc2)

lri $AR1,    #0x00c2
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4035 (0x0fc3)

lri $AR1,    #0x00c3
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4036 (0x0fc4)

lri $AR1,    #0x00c4
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4037 (0x0fc5)

lri $AR1,    #0x00c5
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4038 (0x0fc6)

lri $AR1,    #0x00c6
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4039 (0x0fc7)

lri $AR1,    #0x00c7
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4040 (0x0fc8)

lri $AR1,    #0x00c8
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4041 (0x0fc9)

lri $AR1,    #0x00c9
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4042 (0x0fca)

lri $AR1,    #0x00ca
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4043 (0x0fcb)

lri $AR1,    #0x00cb
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4044 (0x0fcc)

lri $AR1,    #0x00cc
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4045 (0x0fcd)

lri $AR1,    #0x00cd
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4046 (0x0fce)

lri $AR1,    #0x00ce
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4047 (0x0fcf)

lri $AR1,    #0x00cf
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4048 (0x0fd0)

lri $AR1,    #0x00d0
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4049 (0x0fd1)

lri $AR1,    #0x00d1
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4050 (0x0fd2)

lri $AR1,    #0x00d2
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4051 (0x0fd3)

lri $AR1,    #0x00d3
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4052 (0x0fd4)

lri $AR1,    #0x00d4
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4053 (0x0fd5)

lri $AR1,    #0x00d5
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4054 (0x0fd6)

lri $AR1,    #0x00d6
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4055 (0x0fd7)

lri $AR1,    #0x00d7
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4056 (0x0fd8)

lri $AR1,    #0x00d8
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4057 (0x0fd9)

lri $AR1,    #0x00d9
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4058 (0x0fda)

lri $AR1,    #0x00da
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4059 (0x0fdb)

lri $AR1,    #0x00db
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4060 (0x0fdc)

lri $AR1,    #0x00dc
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4061 (0x0fdd)

lri $AR1,    #0x00dd
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4062 (0x0fde)

lri $AR1,    #0x00de
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4063 (0x0fdf)

lri $AR1,    #0x00df
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4064 (0x0fe0)

lri $AR1,    #0x00e0
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4065 (0x0fe1)

lri $AR1,    #0x00e1
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4066 (0x0fe2)

lri $AR1,    #0x00e2
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4067 (0x0fe3)

lri $AR1,    #0x00e3
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4068 (0x0fe4)

lri $AR1,    #0x00e4
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4069 (0x0fe5)

lri $AR1,    #0x00e5
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4070 (0x0fe6)

lri $AR1,    #0x00e6
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4071 (0x0fe7)

lri $AR1,    #0x00e7
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4072 (0x0fe8)

lri $AR1,    #0x00e8
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4073 (0x0fe9)

lri $AR1,    #0x00e9
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4074 (0x0fea)

lri $AR1,    #0x00ea
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4075 (0x0feb)

lri $AR1,    #0x00eb
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4076 (0x0fec)

lri $AR1,    #0x00ec
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4077 (0x0fed)

lri $AR1,    #0x00ed
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4078 (0x0fee)

lri $AR1,    #0x00ee
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4079 (0x0fef)

lri $AR1,    #0x00ef
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4080 (0x0ff0)

lri $AR1,    #0x00f0
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4081 (0x0ff1)

lri $AR1,    #0x00f1
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4082 (0x0ff2)

lri $AR1,    #0x00f2
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4083 (0x0ff3)

lri $AR1,    #0x00f3
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4084 (0x0ff4)

lri $AR1,    #0x00f4
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4085 (0x0ff5)

lri $AR1,    #0x00f5
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4086 (0x0ff6)

lri $AR1,    #0x00f6
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4087 (0x0ff7)

lri $AR1,    #0x00f7
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4088 (0x0ff8)

lri $AR1,    #0x00f8
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4089 (0x0ff9)

lri $AR1,    #0x00f9
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4090 (0x0ffa)

lri $AR1,    #0x00fa
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4091 (0x0ffb)

lri $AR1,    #0x00fb
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4092 (0x0ffc)

lri $AR1,    #0x00fc
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4093 (0x0ffd)

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

lri $AR1,    #0x00fe
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4095 (0x0fff)

lri $AR1,    #0x00ff
lri $IX1,    #0x0000
lri $WR1,    #0x000f
cw 0x5
call send_back  ; 4096 (0x1000)

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