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

lri $AR1,    #0x0040
lri $IX1,    #0xcc5f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52320 (0xcc60)

lri $AR1,    #0x0040
lri $IX1,    #0xcc60
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52321 (0xcc61)

lri $AR1,    #0x0040
lri $IX1,    #0xcc61
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52322 (0xcc62)

lri $AR1,    #0x0040
lri $IX1,    #0xcc62
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52323 (0xcc63)

lri $AR1,    #0x0040
lri $IX1,    #0xcc63
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52324 (0xcc64)

lri $AR1,    #0x0040
lri $IX1,    #0xcc64
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52325 (0xcc65)

lri $AR1,    #0x0040
lri $IX1,    #0xcc65
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52326 (0xcc66)

lri $AR1,    #0x0040
lri $IX1,    #0xcc66
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52327 (0xcc67)

lri $AR1,    #0x0040
lri $IX1,    #0xcc67
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52328 (0xcc68)

lri $AR1,    #0x0040
lri $IX1,    #0xcc68
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52329 (0xcc69)

lri $AR1,    #0x0040
lri $IX1,    #0xcc69
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52330 (0xcc6a)

lri $AR1,    #0x0040
lri $IX1,    #0xcc6a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52331 (0xcc6b)

lri $AR1,    #0x0040
lri $IX1,    #0xcc6b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52332 (0xcc6c)

lri $AR1,    #0x0040
lri $IX1,    #0xcc6c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52333 (0xcc6d)

lri $AR1,    #0x0040
lri $IX1,    #0xcc6d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52334 (0xcc6e)

lri $AR1,    #0x0040
lri $IX1,    #0xcc6e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52335 (0xcc6f)

lri $AR1,    #0x0040
lri $IX1,    #0xcc6f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52336 (0xcc70)

lri $AR1,    #0x0040
lri $IX1,    #0xcc70
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52337 (0xcc71)

lri $AR1,    #0x0040
lri $IX1,    #0xcc71
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52338 (0xcc72)

lri $AR1,    #0x0040
lri $IX1,    #0xcc72
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52339 (0xcc73)

lri $AR1,    #0x0040
lri $IX1,    #0xcc73
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52340 (0xcc74)

lri $AR1,    #0x0040
lri $IX1,    #0xcc74
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52341 (0xcc75)

lri $AR1,    #0x0040
lri $IX1,    #0xcc75
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52342 (0xcc76)

lri $AR1,    #0x0040
lri $IX1,    #0xcc76
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52343 (0xcc77)

lri $AR1,    #0x0040
lri $IX1,    #0xcc77
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52344 (0xcc78)

lri $AR1,    #0x0040
lri $IX1,    #0xcc78
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52345 (0xcc79)

lri $AR1,    #0x0040
lri $IX1,    #0xcc79
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52346 (0xcc7a)

lri $AR1,    #0x0040
lri $IX1,    #0xcc7a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52347 (0xcc7b)

lri $AR1,    #0x0040
lri $IX1,    #0xcc7b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52348 (0xcc7c)

lri $AR1,    #0x0040
lri $IX1,    #0xcc7c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52349 (0xcc7d)

lri $AR1,    #0x0040
lri $IX1,    #0xcc7d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52350 (0xcc7e)

lri $AR1,    #0x0040
lri $IX1,    #0xcc7e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52351 (0xcc7f)

lri $AR1,    #0x0040
lri $IX1,    #0xcc7f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52352 (0xcc80)

lri $AR1,    #0x0040
lri $IX1,    #0xcc80
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52353 (0xcc81)

lri $AR1,    #0x0040
lri $IX1,    #0xcc81
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52354 (0xcc82)

lri $AR1,    #0x0040
lri $IX1,    #0xcc82
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52355 (0xcc83)

lri $AR1,    #0x0040
lri $IX1,    #0xcc83
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52356 (0xcc84)

lri $AR1,    #0x0040
lri $IX1,    #0xcc84
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52357 (0xcc85)

lri $AR1,    #0x0040
lri $IX1,    #0xcc85
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52358 (0xcc86)

lri $AR1,    #0x0040
lri $IX1,    #0xcc86
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52359 (0xcc87)

lri $AR1,    #0x0040
lri $IX1,    #0xcc87
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52360 (0xcc88)

lri $AR1,    #0x0040
lri $IX1,    #0xcc88
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52361 (0xcc89)

lri $AR1,    #0x0040
lri $IX1,    #0xcc89
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52362 (0xcc8a)

lri $AR1,    #0x0040
lri $IX1,    #0xcc8a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52363 (0xcc8b)

lri $AR1,    #0x0040
lri $IX1,    #0xcc8b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52364 (0xcc8c)

lri $AR1,    #0x0040
lri $IX1,    #0xcc8c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52365 (0xcc8d)

lri $AR1,    #0x0040
lri $IX1,    #0xcc8d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52366 (0xcc8e)

lri $AR1,    #0x0040
lri $IX1,    #0xcc8e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52367 (0xcc8f)

lri $AR1,    #0x0040
lri $IX1,    #0xcc8f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52368 (0xcc90)

lri $AR1,    #0x0040
lri $IX1,    #0xcc90
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52369 (0xcc91)

lri $AR1,    #0x0040
lri $IX1,    #0xcc91
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52370 (0xcc92)

lri $AR1,    #0x0040
lri $IX1,    #0xcc92
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52371 (0xcc93)

lri $AR1,    #0x0040
lri $IX1,    #0xcc93
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52372 (0xcc94)

lri $AR1,    #0x0040
lri $IX1,    #0xcc94
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52373 (0xcc95)

lri $AR1,    #0x0040
lri $IX1,    #0xcc95
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52374 (0xcc96)

lri $AR1,    #0x0040
lri $IX1,    #0xcc96
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52375 (0xcc97)

lri $AR1,    #0x0040
lri $IX1,    #0xcc97
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52376 (0xcc98)

lri $AR1,    #0x0040
lri $IX1,    #0xcc98
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52377 (0xcc99)

lri $AR1,    #0x0040
lri $IX1,    #0xcc99
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52378 (0xcc9a)

lri $AR1,    #0x0040
lri $IX1,    #0xcc9a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52379 (0xcc9b)

lri $AR1,    #0x0040
lri $IX1,    #0xcc9b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52380 (0xcc9c)

lri $AR1,    #0x0040
lri $IX1,    #0xcc9c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52381 (0xcc9d)

lri $AR1,    #0x0040
lri $IX1,    #0xcc9d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52382 (0xcc9e)

lri $AR1,    #0x0040
lri $IX1,    #0xcc9e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52383 (0xcc9f)

lri $AR1,    #0x0040
lri $IX1,    #0xcc9f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52384 (0xcca0)

lri $AR1,    #0x0040
lri $IX1,    #0xcca0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52385 (0xcca1)

lri $AR1,    #0x0040
lri $IX1,    #0xcca1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52386 (0xcca2)

lri $AR1,    #0x0040
lri $IX1,    #0xcca2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52387 (0xcca3)

lri $AR1,    #0x0040
lri $IX1,    #0xcca3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52388 (0xcca4)

lri $AR1,    #0x0040
lri $IX1,    #0xcca4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52389 (0xcca5)

lri $AR1,    #0x0040
lri $IX1,    #0xcca5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52390 (0xcca6)

lri $AR1,    #0x0040
lri $IX1,    #0xcca6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52391 (0xcca7)

lri $AR1,    #0x0040
lri $IX1,    #0xcca7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52392 (0xcca8)

lri $AR1,    #0x0040
lri $IX1,    #0xcca8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52393 (0xcca9)

lri $AR1,    #0x0040
lri $IX1,    #0xcca9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52394 (0xccaa)

lri $AR1,    #0x0040
lri $IX1,    #0xccaa
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52395 (0xccab)

lri $AR1,    #0x0040
lri $IX1,    #0xccab
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52396 (0xccac)

lri $AR1,    #0x0040
lri $IX1,    #0xccac
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52397 (0xccad)

lri $AR1,    #0x0040
lri $IX1,    #0xccad
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52398 (0xccae)

lri $AR1,    #0x0040
lri $IX1,    #0xccae
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52399 (0xccaf)

lri $AR1,    #0x0040
lri $IX1,    #0xccaf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52400 (0xccb0)

lri $AR1,    #0x0040
lri $IX1,    #0xccb0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52401 (0xccb1)

lri $AR1,    #0x0040
lri $IX1,    #0xccb1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52402 (0xccb2)

lri $AR1,    #0x0040
lri $IX1,    #0xccb2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52403 (0xccb3)

lri $AR1,    #0x0040
lri $IX1,    #0xccb3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52404 (0xccb4)

lri $AR1,    #0x0040
lri $IX1,    #0xccb4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52405 (0xccb5)

lri $AR1,    #0x0040
lri $IX1,    #0xccb5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52406 (0xccb6)

lri $AR1,    #0x0040
lri $IX1,    #0xccb6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52407 (0xccb7)

lri $AR1,    #0x0040
lri $IX1,    #0xccb7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52408 (0xccb8)

lri $AR1,    #0x0040
lri $IX1,    #0xccb8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52409 (0xccb9)

lri $AR1,    #0x0040
lri $IX1,    #0xccb9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52410 (0xccba)

lri $AR1,    #0x0040
lri $IX1,    #0xccba
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52411 (0xccbb)

lri $AR1,    #0x0040
lri $IX1,    #0xccbb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52412 (0xccbc)

lri $AR1,    #0x0040
lri $IX1,    #0xccbc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52413 (0xccbd)

lri $AR1,    #0x0040
lri $IX1,    #0xccbd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52414 (0xccbe)

lri $AR1,    #0x0040
lri $IX1,    #0xccbe
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52415 (0xccbf)

lri $AR1,    #0x0040
lri $IX1,    #0xccbf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52416 (0xccc0)

lri $AR1,    #0x0040
lri $IX1,    #0xccc0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52417 (0xccc1)

lri $AR1,    #0x0040
lri $IX1,    #0xccc1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52418 (0xccc2)

lri $AR1,    #0x0040
lri $IX1,    #0xccc2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52419 (0xccc3)

lri $AR1,    #0x0040
lri $IX1,    #0xccc3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52420 (0xccc4)

lri $AR1,    #0x0040
lri $IX1,    #0xccc4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52421 (0xccc5)

lri $AR1,    #0x0040
lri $IX1,    #0xccc5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52422 (0xccc6)

lri $AR1,    #0x0040
lri $IX1,    #0xccc6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52423 (0xccc7)

lri $AR1,    #0x0040
lri $IX1,    #0xccc7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52424 (0xccc8)

lri $AR1,    #0x0040
lri $IX1,    #0xccc8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52425 (0xccc9)

lri $AR1,    #0x0040
lri $IX1,    #0xccc9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52426 (0xccca)

lri $AR1,    #0x0040
lri $IX1,    #0xccca
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52427 (0xcccb)

lri $AR1,    #0x0040
lri $IX1,    #0xcccb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 52428 (0xcccc)

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