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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52225 (0xcc01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52226 (0xcc02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52227 (0xcc03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52228 (0xcc04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52229 (0xcc05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52230 (0xcc06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52231 (0xcc07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52232 (0xcc08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52233 (0xcc09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52234 (0xcc0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52235 (0xcc0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52236 (0xcc0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52237 (0xcc0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52238 (0xcc0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52239 (0xcc0f)

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

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52241 (0xcc11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52242 (0xcc12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52243 (0xcc13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52244 (0xcc14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52245 (0xcc15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52246 (0xcc16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52247 (0xcc17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52248 (0xcc18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52249 (0xcc19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52250 (0xcc1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52251 (0xcc1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52252 (0xcc1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52253 (0xcc1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52254 (0xcc1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52255 (0xcc1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52256 (0xcc20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52257 (0xcc21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52258 (0xcc22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52259 (0xcc23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52260 (0xcc24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52261 (0xcc25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52262 (0xcc26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52263 (0xcc27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52264 (0xcc28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52265 (0xcc29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52266 (0xcc2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52267 (0xcc2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52268 (0xcc2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52269 (0xcc2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52270 (0xcc2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52271 (0xcc2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52272 (0xcc30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52273 (0xcc31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52274 (0xcc32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52275 (0xcc33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52276 (0xcc34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52277 (0xcc35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52278 (0xcc36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52279 (0xcc37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52280 (0xcc38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52281 (0xcc39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52282 (0xcc3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52283 (0xcc3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52284 (0xcc3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52285 (0xcc3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52286 (0xcc3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52287 (0xcc3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52288 (0xcc40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52289 (0xcc41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52290 (0xcc42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52291 (0xcc43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52292 (0xcc44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52293 (0xcc45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52294 (0xcc46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52295 (0xcc47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52296 (0xcc48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52297 (0xcc49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52298 (0xcc4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52299 (0xcc4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52300 (0xcc4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52301 (0xcc4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52302 (0xcc4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52303 (0xcc4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52304 (0xcc50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52305 (0xcc51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52306 (0xcc52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52307 (0xcc53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52308 (0xcc54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52309 (0xcc55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52310 (0xcc56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52311 (0xcc57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52312 (0xcc58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52313 (0xcc59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52314 (0xcc5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52315 (0xcc5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52316 (0xcc5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52317 (0xcc5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52318 (0xcc5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52319 (0xcc5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52320 (0xcc60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52321 (0xcc61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52322 (0xcc62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52323 (0xcc63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52324 (0xcc64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52325 (0xcc65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52326 (0xcc66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52327 (0xcc67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52328 (0xcc68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52329 (0xcc69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52330 (0xcc6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52331 (0xcc6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52332 (0xcc6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52333 (0xcc6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52334 (0xcc6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52335 (0xcc6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52336 (0xcc70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52337 (0xcc71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52338 (0xcc72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52339 (0xcc73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52340 (0xcc74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52341 (0xcc75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52342 (0xcc76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52343 (0xcc77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52344 (0xcc78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52345 (0xcc79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52346 (0xcc7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52347 (0xcc7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52348 (0xcc7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52349 (0xcc7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52350 (0xcc7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52351 (0xcc7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00cc
cw 0x5
call send_back  ; 52352 (0xcc80)

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