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

lri $AR1,    #0x4000
lri $IX1,    #0x1000
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4097 (0x1001)

lri $AR1,    #0x4000
lri $IX1,    #0x1001
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4098 (0x1002)

lri $AR1,    #0x4000
lri $IX1,    #0x1002
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4099 (0x1003)

lri $AR1,    #0x4000
lri $IX1,    #0x1003
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4100 (0x1004)

lri $AR1,    #0x4000
lri $IX1,    #0x1004
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4101 (0x1005)

lri $AR1,    #0x4000
lri $IX1,    #0x1005
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4102 (0x1006)

lri $AR1,    #0x4000
lri $IX1,    #0x1006
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4103 (0x1007)

lri $AR1,    #0x4000
lri $IX1,    #0x1007
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4104 (0x1008)

lri $AR1,    #0x4000
lri $IX1,    #0x1008
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4105 (0x1009)

lri $AR1,    #0x4000
lri $IX1,    #0x1009
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4106 (0x100a)

lri $AR1,    #0x4000
lri $IX1,    #0x100a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4107 (0x100b)

lri $AR1,    #0x4000
lri $IX1,    #0x100b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4108 (0x100c)

lri $AR1,    #0x4000
lri $IX1,    #0x100c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4109 (0x100d)

lri $AR1,    #0x4000
lri $IX1,    #0x100d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4110 (0x100e)

lri $AR1,    #0x4000
lri $IX1,    #0x100e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4111 (0x100f)

lri $AR1,    #0x4000
lri $IX1,    #0x100f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4112 (0x1010)

lri $AR1,    #0x4000
lri $IX1,    #0x1010
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4113 (0x1011)

lri $AR1,    #0x4000
lri $IX1,    #0x1011
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4114 (0x1012)

lri $AR1,    #0x4000
lri $IX1,    #0x1012
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4115 (0x1013)

lri $AR1,    #0x4000
lri $IX1,    #0x1013
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4116 (0x1014)

lri $AR1,    #0x4000
lri $IX1,    #0x1014
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4117 (0x1015)

lri $AR1,    #0x4000
lri $IX1,    #0x1015
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4118 (0x1016)

lri $AR1,    #0x4000
lri $IX1,    #0x1016
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4119 (0x1017)

lri $AR1,    #0x4000
lri $IX1,    #0x1017
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4120 (0x1018)

lri $AR1,    #0x4000
lri $IX1,    #0x1018
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4121 (0x1019)

lri $AR1,    #0x4000
lri $IX1,    #0x1019
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4122 (0x101a)

lri $AR1,    #0x4000
lri $IX1,    #0x101a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4123 (0x101b)

lri $AR1,    #0x4000
lri $IX1,    #0x101b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4124 (0x101c)

lri $AR1,    #0x4000
lri $IX1,    #0x101c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4125 (0x101d)

lri $AR1,    #0x4000
lri $IX1,    #0x101d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4126 (0x101e)

lri $AR1,    #0x4000
lri $IX1,    #0x101e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4127 (0x101f)

lri $AR1,    #0x4000
lri $IX1,    #0x101f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4128 (0x1020)

lri $AR1,    #0x4000
lri $IX1,    #0x1020
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4129 (0x1021)

lri $AR1,    #0x4000
lri $IX1,    #0x1021
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4130 (0x1022)

lri $AR1,    #0x4000
lri $IX1,    #0x1022
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4131 (0x1023)

lri $AR1,    #0x4000
lri $IX1,    #0x1023
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4132 (0x1024)

lri $AR1,    #0x4000
lri $IX1,    #0x1024
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4133 (0x1025)

lri $AR1,    #0x4000
lri $IX1,    #0x1025
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4134 (0x1026)

lri $AR1,    #0x4000
lri $IX1,    #0x1026
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4135 (0x1027)

lri $AR1,    #0x4000
lri $IX1,    #0x1027
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4136 (0x1028)

lri $AR1,    #0x4000
lri $IX1,    #0x1028
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4137 (0x1029)

lri $AR1,    #0x4000
lri $IX1,    #0x1029
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4138 (0x102a)

lri $AR1,    #0x4000
lri $IX1,    #0x102a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4139 (0x102b)

lri $AR1,    #0x4000
lri $IX1,    #0x102b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4140 (0x102c)

lri $AR1,    #0x4000
lri $IX1,    #0x102c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4141 (0x102d)

lri $AR1,    #0x4000
lri $IX1,    #0x102d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4142 (0x102e)

lri $AR1,    #0x4000
lri $IX1,    #0x102e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4143 (0x102f)

lri $AR1,    #0x4000
lri $IX1,    #0x102f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4144 (0x1030)

lri $AR1,    #0x4000
lri $IX1,    #0x1030
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4145 (0x1031)

lri $AR1,    #0x4000
lri $IX1,    #0x1031
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4146 (0x1032)

lri $AR1,    #0x4000
lri $IX1,    #0x1032
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4147 (0x1033)

lri $AR1,    #0x4000
lri $IX1,    #0x1033
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4148 (0x1034)

lri $AR1,    #0x4000
lri $IX1,    #0x1034
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4149 (0x1035)

lri $AR1,    #0x4000
lri $IX1,    #0x1035
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4150 (0x1036)

lri $AR1,    #0x4000
lri $IX1,    #0x1036
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4151 (0x1037)

lri $AR1,    #0x4000
lri $IX1,    #0x1037
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4152 (0x1038)

lri $AR1,    #0x4000
lri $IX1,    #0x1038
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4153 (0x1039)

lri $AR1,    #0x4000
lri $IX1,    #0x1039
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4154 (0x103a)

lri $AR1,    #0x4000
lri $IX1,    #0x103a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4155 (0x103b)

lri $AR1,    #0x4000
lri $IX1,    #0x103b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4156 (0x103c)

lri $AR1,    #0x4000
lri $IX1,    #0x103c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4157 (0x103d)

lri $AR1,    #0x4000
lri $IX1,    #0x103d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4158 (0x103e)

lri $AR1,    #0x4000
lri $IX1,    #0x103e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4159 (0x103f)

lri $AR1,    #0x4000
lri $IX1,    #0x103f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4160 (0x1040)

lri $AR1,    #0x4000
lri $IX1,    #0x1040
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4161 (0x1041)

lri $AR1,    #0x4000
lri $IX1,    #0x1041
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4162 (0x1042)

lri $AR1,    #0x4000
lri $IX1,    #0x1042
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4163 (0x1043)

lri $AR1,    #0x4000
lri $IX1,    #0x1043
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4164 (0x1044)

lri $AR1,    #0x4000
lri $IX1,    #0x1044
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4165 (0x1045)

lri $AR1,    #0x4000
lri $IX1,    #0x1045
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4166 (0x1046)

lri $AR1,    #0x4000
lri $IX1,    #0x1046
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4167 (0x1047)

lri $AR1,    #0x4000
lri $IX1,    #0x1047
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4168 (0x1048)

lri $AR1,    #0x4000
lri $IX1,    #0x1048
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4169 (0x1049)

lri $AR1,    #0x4000
lri $IX1,    #0x1049
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4170 (0x104a)

lri $AR1,    #0x4000
lri $IX1,    #0x104a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4171 (0x104b)

lri $AR1,    #0x4000
lri $IX1,    #0x104b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4172 (0x104c)

lri $AR1,    #0x4000
lri $IX1,    #0x104c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4173 (0x104d)

lri $AR1,    #0x4000
lri $IX1,    #0x104d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4174 (0x104e)

lri $AR1,    #0x4000
lri $IX1,    #0x104e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4175 (0x104f)

lri $AR1,    #0x4000
lri $IX1,    #0x104f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4176 (0x1050)

lri $AR1,    #0x4000
lri $IX1,    #0x1050
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4177 (0x1051)

lri $AR1,    #0x4000
lri $IX1,    #0x1051
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4178 (0x1052)

lri $AR1,    #0x4000
lri $IX1,    #0x1052
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4179 (0x1053)

lri $AR1,    #0x4000
lri $IX1,    #0x1053
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4180 (0x1054)

lri $AR1,    #0x4000
lri $IX1,    #0x1054
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4181 (0x1055)

lri $AR1,    #0x4000
lri $IX1,    #0x1055
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4182 (0x1056)

lri $AR1,    #0x4000
lri $IX1,    #0x1056
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4183 (0x1057)

lri $AR1,    #0x4000
lri $IX1,    #0x1057
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4184 (0x1058)

lri $AR1,    #0x4000
lri $IX1,    #0x1058
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4185 (0x1059)

lri $AR1,    #0x4000
lri $IX1,    #0x1059
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4186 (0x105a)

lri $AR1,    #0x4000
lri $IX1,    #0x105a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4187 (0x105b)

lri $AR1,    #0x4000
lri $IX1,    #0x105b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4188 (0x105c)

lri $AR1,    #0x4000
lri $IX1,    #0x105c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4189 (0x105d)

lri $AR1,    #0x4000
lri $IX1,    #0x105d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4190 (0x105e)

lri $AR1,    #0x4000
lri $IX1,    #0x105e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4191 (0x105f)

lri $AR1,    #0x4000
lri $IX1,    #0x105f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4192 (0x1060)

lri $AR1,    #0x4000
lri $IX1,    #0x1060
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4193 (0x1061)

lri $AR1,    #0x4000
lri $IX1,    #0x1061
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4194 (0x1062)

lri $AR1,    #0x4000
lri $IX1,    #0x1062
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4195 (0x1063)

lri $AR1,    #0x4000
lri $IX1,    #0x1063
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4196 (0x1064)

lri $AR1,    #0x4000
lri $IX1,    #0x1064
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4197 (0x1065)

lri $AR1,    #0x4000
lri $IX1,    #0x1065
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4198 (0x1066)

lri $AR1,    #0x4000
lri $IX1,    #0x1066
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4199 (0x1067)

lri $AR1,    #0x4000
lri $IX1,    #0x1067
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4200 (0x1068)

lri $AR1,    #0x4000
lri $IX1,    #0x1068
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4201 (0x1069)

lri $AR1,    #0x4000
lri $IX1,    #0x1069
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4202 (0x106a)

lri $AR1,    #0x4000
lri $IX1,    #0x106a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4203 (0x106b)

lri $AR1,    #0x4000
lri $IX1,    #0x106b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4204 (0x106c)

lri $AR1,    #0x4000
lri $IX1,    #0x106c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4205 (0x106d)

lri $AR1,    #0x4000
lri $IX1,    #0x106d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4206 (0x106e)

lri $AR1,    #0x4000
lri $IX1,    #0x106e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4207 (0x106f)

lri $AR1,    #0x4000
lri $IX1,    #0x106f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4208 (0x1070)

lri $AR1,    #0x4000
lri $IX1,    #0x1070
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4209 (0x1071)

lri $AR1,    #0x4000
lri $IX1,    #0x1071
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4210 (0x1072)

lri $AR1,    #0x4000
lri $IX1,    #0x1072
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4211 (0x1073)

lri $AR1,    #0x4000
lri $IX1,    #0x1073
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4212 (0x1074)

lri $AR1,    #0x4000
lri $IX1,    #0x1074
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4213 (0x1075)

lri $AR1,    #0x4000
lri $IX1,    #0x1075
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4214 (0x1076)

lri $AR1,    #0x4000
lri $IX1,    #0x1076
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4215 (0x1077)

lri $AR1,    #0x4000
lri $IX1,    #0x1077
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4216 (0x1078)

lri $AR1,    #0x4000
lri $IX1,    #0x1078
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4217 (0x1079)

lri $AR1,    #0x4000
lri $IX1,    #0x1079
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4218 (0x107a)

lri $AR1,    #0x4000
lri $IX1,    #0x107a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4219 (0x107b)

lri $AR1,    #0x4000
lri $IX1,    #0x107b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4220 (0x107c)

lri $AR1,    #0x4000
lri $IX1,    #0x107c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4221 (0x107d)

lri $AR1,    #0x4000
lri $IX1,    #0x107d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4222 (0x107e)

lri $AR1,    #0x4000
lri $IX1,    #0x107e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4223 (0x107f)

lri $AR1,    #0x4000
lri $IX1,    #0x107f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 4224 (0x1080)

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

