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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60161 (0xeb01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60162 (0xeb02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60163 (0xeb03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60164 (0xeb04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60165 (0xeb05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60166 (0xeb06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60167 (0xeb07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60168 (0xeb08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60169 (0xeb09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60170 (0xeb0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60171 (0xeb0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60172 (0xeb0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60173 (0xeb0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60174 (0xeb0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60175 (0xeb0f)

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

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60177 (0xeb11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60178 (0xeb12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60179 (0xeb13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60180 (0xeb14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60181 (0xeb15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60182 (0xeb16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60183 (0xeb17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60184 (0xeb18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60185 (0xeb19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60186 (0xeb1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60187 (0xeb1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60188 (0xeb1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60189 (0xeb1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60190 (0xeb1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60191 (0xeb1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60192 (0xeb20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60193 (0xeb21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60194 (0xeb22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60195 (0xeb23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60196 (0xeb24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60197 (0xeb25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60198 (0xeb26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60199 (0xeb27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60200 (0xeb28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60201 (0xeb29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60202 (0xeb2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60203 (0xeb2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60204 (0xeb2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60205 (0xeb2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60206 (0xeb2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60207 (0xeb2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60208 (0xeb30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60209 (0xeb31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60210 (0xeb32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60211 (0xeb33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60212 (0xeb34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60213 (0xeb35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60214 (0xeb36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60215 (0xeb37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60216 (0xeb38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60217 (0xeb39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60218 (0xeb3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60219 (0xeb3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60220 (0xeb3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60221 (0xeb3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60222 (0xeb3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60223 (0xeb3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60224 (0xeb40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60225 (0xeb41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60226 (0xeb42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60227 (0xeb43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60228 (0xeb44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60229 (0xeb45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60230 (0xeb46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60231 (0xeb47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60232 (0xeb48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60233 (0xeb49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60234 (0xeb4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60235 (0xeb4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60236 (0xeb4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60237 (0xeb4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60238 (0xeb4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60239 (0xeb4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60240 (0xeb50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60241 (0xeb51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60242 (0xeb52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60243 (0xeb53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60244 (0xeb54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60245 (0xeb55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60246 (0xeb56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60247 (0xeb57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60248 (0xeb58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60249 (0xeb59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60250 (0xeb5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60251 (0xeb5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60252 (0xeb5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60253 (0xeb5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60254 (0xeb5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60255 (0xeb5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60256 (0xeb60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60257 (0xeb61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60258 (0xeb62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60259 (0xeb63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60260 (0xeb64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60261 (0xeb65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60262 (0xeb66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60263 (0xeb67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60264 (0xeb68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60265 (0xeb69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60266 (0xeb6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60267 (0xeb6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60268 (0xeb6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60269 (0xeb6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60270 (0xeb6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60271 (0xeb6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60272 (0xeb70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60273 (0xeb71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60274 (0xeb72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60275 (0xeb73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60276 (0xeb74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60277 (0xeb75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60278 (0xeb76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60279 (0xeb77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60280 (0xeb78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60281 (0xeb79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60282 (0xeb7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60283 (0xeb7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60284 (0xeb7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60285 (0xeb7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60286 (0xeb7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60287 (0xeb7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00eb
cw 0x5
call send_back  ; 60288 (0xeb80)

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