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

lri $AR1,    #0x4000
lri $IX1,    #0xa900
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43265 (0xa901)

lri $AR1,    #0x4000
lri $IX1,    #0xa901
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43266 (0xa902)

lri $AR1,    #0x4000
lri $IX1,    #0xa902
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43267 (0xa903)

lri $AR1,    #0x4000
lri $IX1,    #0xa903
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43268 (0xa904)

lri $AR1,    #0x4000
lri $IX1,    #0xa904
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43269 (0xa905)

lri $AR1,    #0x4000
lri $IX1,    #0xa905
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43270 (0xa906)

lri $AR1,    #0x4000
lri $IX1,    #0xa906
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43271 (0xa907)

lri $AR1,    #0x4000
lri $IX1,    #0xa907
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43272 (0xa908)

lri $AR1,    #0x4000
lri $IX1,    #0xa908
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43273 (0xa909)

lri $AR1,    #0x4000
lri $IX1,    #0xa909
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43274 (0xa90a)

lri $AR1,    #0x4000
lri $IX1,    #0xa90a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43275 (0xa90b)

lri $AR1,    #0x4000
lri $IX1,    #0xa90b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43276 (0xa90c)

lri $AR1,    #0x4000
lri $IX1,    #0xa90c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43277 (0xa90d)

lri $AR1,    #0x4000
lri $IX1,    #0xa90d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43278 (0xa90e)

lri $AR1,    #0x4000
lri $IX1,    #0xa90e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43279 (0xa90f)

lri $AR1,    #0x4000
lri $IX1,    #0xa90f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43280 (0xa910)

lri $AR1,    #0x4000
lri $IX1,    #0xa910
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43281 (0xa911)

lri $AR1,    #0x4000
lri $IX1,    #0xa911
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43282 (0xa912)

lri $AR1,    #0x4000
lri $IX1,    #0xa912
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43283 (0xa913)

lri $AR1,    #0x4000
lri $IX1,    #0xa913
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43284 (0xa914)

lri $AR1,    #0x4000
lri $IX1,    #0xa914
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43285 (0xa915)

lri $AR1,    #0x4000
lri $IX1,    #0xa915
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43286 (0xa916)

lri $AR1,    #0x4000
lri $IX1,    #0xa916
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43287 (0xa917)

lri $AR1,    #0x4000
lri $IX1,    #0xa917
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43288 (0xa918)

lri $AR1,    #0x4000
lri $IX1,    #0xa918
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43289 (0xa919)

lri $AR1,    #0x4000
lri $IX1,    #0xa919
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43290 (0xa91a)

lri $AR1,    #0x4000
lri $IX1,    #0xa91a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43291 (0xa91b)

lri $AR1,    #0x4000
lri $IX1,    #0xa91b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43292 (0xa91c)

lri $AR1,    #0x4000
lri $IX1,    #0xa91c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43293 (0xa91d)

lri $AR1,    #0x4000
lri $IX1,    #0xa91d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43294 (0xa91e)

lri $AR1,    #0x4000
lri $IX1,    #0xa91e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43295 (0xa91f)

lri $AR1,    #0x4000
lri $IX1,    #0xa91f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43296 (0xa920)

lri $AR1,    #0x4000
lri $IX1,    #0xa920
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43297 (0xa921)

lri $AR1,    #0x4000
lri $IX1,    #0xa921
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43298 (0xa922)

lri $AR1,    #0x4000
lri $IX1,    #0xa922
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43299 (0xa923)

lri $AR1,    #0x4000
lri $IX1,    #0xa923
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43300 (0xa924)

lri $AR1,    #0x4000
lri $IX1,    #0xa924
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43301 (0xa925)

lri $AR1,    #0x4000
lri $IX1,    #0xa925
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43302 (0xa926)

lri $AR1,    #0x4000
lri $IX1,    #0xa926
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43303 (0xa927)

lri $AR1,    #0x4000
lri $IX1,    #0xa927
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43304 (0xa928)

lri $AR1,    #0x4000
lri $IX1,    #0xa928
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43305 (0xa929)

lri $AR1,    #0x4000
lri $IX1,    #0xa929
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43306 (0xa92a)

lri $AR1,    #0x4000
lri $IX1,    #0xa92a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43307 (0xa92b)

lri $AR1,    #0x4000
lri $IX1,    #0xa92b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43308 (0xa92c)

lri $AR1,    #0x4000
lri $IX1,    #0xa92c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43309 (0xa92d)

lri $AR1,    #0x4000
lri $IX1,    #0xa92d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43310 (0xa92e)

lri $AR1,    #0x4000
lri $IX1,    #0xa92e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43311 (0xa92f)

lri $AR1,    #0x4000
lri $IX1,    #0xa92f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43312 (0xa930)

lri $AR1,    #0x4000
lri $IX1,    #0xa930
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43313 (0xa931)

lri $AR1,    #0x4000
lri $IX1,    #0xa931
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43314 (0xa932)

lri $AR1,    #0x4000
lri $IX1,    #0xa932
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43315 (0xa933)

lri $AR1,    #0x4000
lri $IX1,    #0xa933
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43316 (0xa934)

lri $AR1,    #0x4000
lri $IX1,    #0xa934
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43317 (0xa935)

lri $AR1,    #0x4000
lri $IX1,    #0xa935
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43318 (0xa936)

lri $AR1,    #0x4000
lri $IX1,    #0xa936
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43319 (0xa937)

lri $AR1,    #0x4000
lri $IX1,    #0xa937
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43320 (0xa938)

lri $AR1,    #0x4000
lri $IX1,    #0xa938
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43321 (0xa939)

lri $AR1,    #0x4000
lri $IX1,    #0xa939
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43322 (0xa93a)

lri $AR1,    #0x4000
lri $IX1,    #0xa93a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43323 (0xa93b)

lri $AR1,    #0x4000
lri $IX1,    #0xa93b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43324 (0xa93c)

lri $AR1,    #0x4000
lri $IX1,    #0xa93c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43325 (0xa93d)

lri $AR1,    #0x4000
lri $IX1,    #0xa93d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43326 (0xa93e)

lri $AR1,    #0x4000
lri $IX1,    #0xa93e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43327 (0xa93f)

lri $AR1,    #0x4000
lri $IX1,    #0xa93f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43328 (0xa940)

lri $AR1,    #0x4000
lri $IX1,    #0xa940
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43329 (0xa941)

lri $AR1,    #0x4000
lri $IX1,    #0xa941
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43330 (0xa942)

lri $AR1,    #0x4000
lri $IX1,    #0xa942
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43331 (0xa943)

lri $AR1,    #0x4000
lri $IX1,    #0xa943
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43332 (0xa944)

lri $AR1,    #0x4000
lri $IX1,    #0xa944
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43333 (0xa945)

lri $AR1,    #0x4000
lri $IX1,    #0xa945
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43334 (0xa946)

lri $AR1,    #0x4000
lri $IX1,    #0xa946
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43335 (0xa947)

lri $AR1,    #0x4000
lri $IX1,    #0xa947
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43336 (0xa948)

lri $AR1,    #0x4000
lri $IX1,    #0xa948
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43337 (0xa949)

lri $AR1,    #0x4000
lri $IX1,    #0xa949
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43338 (0xa94a)

lri $AR1,    #0x4000
lri $IX1,    #0xa94a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43339 (0xa94b)

lri $AR1,    #0x4000
lri $IX1,    #0xa94b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43340 (0xa94c)

lri $AR1,    #0x4000
lri $IX1,    #0xa94c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43341 (0xa94d)

lri $AR1,    #0x4000
lri $IX1,    #0xa94d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43342 (0xa94e)

lri $AR1,    #0x4000
lri $IX1,    #0xa94e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43343 (0xa94f)

lri $AR1,    #0x4000
lri $IX1,    #0xa94f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43344 (0xa950)

lri $AR1,    #0x4000
lri $IX1,    #0xa950
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43345 (0xa951)

lri $AR1,    #0x4000
lri $IX1,    #0xa951
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43346 (0xa952)

lri $AR1,    #0x4000
lri $IX1,    #0xa952
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43347 (0xa953)

lri $AR1,    #0x4000
lri $IX1,    #0xa953
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43348 (0xa954)

lri $AR1,    #0x4000
lri $IX1,    #0xa954
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43349 (0xa955)

lri $AR1,    #0x4000
lri $IX1,    #0xa955
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43350 (0xa956)

lri $AR1,    #0x4000
lri $IX1,    #0xa956
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43351 (0xa957)

lri $AR1,    #0x4000
lri $IX1,    #0xa957
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43352 (0xa958)

lri $AR1,    #0x4000
lri $IX1,    #0xa958
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43353 (0xa959)

lri $AR1,    #0x4000
lri $IX1,    #0xa959
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43354 (0xa95a)

lri $AR1,    #0x4000
lri $IX1,    #0xa95a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43355 (0xa95b)

lri $AR1,    #0x4000
lri $IX1,    #0xa95b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43356 (0xa95c)

lri $AR1,    #0x4000
lri $IX1,    #0xa95c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43357 (0xa95d)

lri $AR1,    #0x4000
lri $IX1,    #0xa95d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43358 (0xa95e)

lri $AR1,    #0x4000
lri $IX1,    #0xa95e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43359 (0xa95f)

lri $AR1,    #0x4000
lri $IX1,    #0xa95f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43360 (0xa960)

lri $AR1,    #0x4000
lri $IX1,    #0xa960
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43361 (0xa961)

lri $AR1,    #0x4000
lri $IX1,    #0xa961
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43362 (0xa962)

lri $AR1,    #0x4000
lri $IX1,    #0xa962
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43363 (0xa963)

lri $AR1,    #0x4000
lri $IX1,    #0xa963
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43364 (0xa964)

lri $AR1,    #0x4000
lri $IX1,    #0xa964
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43365 (0xa965)

lri $AR1,    #0x4000
lri $IX1,    #0xa965
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43366 (0xa966)

lri $AR1,    #0x4000
lri $IX1,    #0xa966
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43367 (0xa967)

lri $AR1,    #0x4000
lri $IX1,    #0xa967
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43368 (0xa968)

lri $AR1,    #0x4000
lri $IX1,    #0xa968
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43369 (0xa969)

lri $AR1,    #0x4000
lri $IX1,    #0xa969
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43370 (0xa96a)

lri $AR1,    #0x4000
lri $IX1,    #0xa96a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43371 (0xa96b)

lri $AR1,    #0x4000
lri $IX1,    #0xa96b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43372 (0xa96c)

lri $AR1,    #0x4000
lri $IX1,    #0xa96c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43373 (0xa96d)

lri $AR1,    #0x4000
lri $IX1,    #0xa96d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43374 (0xa96e)

lri $AR1,    #0x4000
lri $IX1,    #0xa96e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43375 (0xa96f)

lri $AR1,    #0x4000
lri $IX1,    #0xa96f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43376 (0xa970)

lri $AR1,    #0x4000
lri $IX1,    #0xa970
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43377 (0xa971)

lri $AR1,    #0x4000
lri $IX1,    #0xa971
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43378 (0xa972)

lri $AR1,    #0x4000
lri $IX1,    #0xa972
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43379 (0xa973)

lri $AR1,    #0x4000
lri $IX1,    #0xa973
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43380 (0xa974)

lri $AR1,    #0x4000
lri $IX1,    #0xa974
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43381 (0xa975)

lri $AR1,    #0x4000
lri $IX1,    #0xa975
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43382 (0xa976)

lri $AR1,    #0x4000
lri $IX1,    #0xa976
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43383 (0xa977)

lri $AR1,    #0x4000
lri $IX1,    #0xa977
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43384 (0xa978)

lri $AR1,    #0x4000
lri $IX1,    #0xa978
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43385 (0xa979)

lri $AR1,    #0x4000
lri $IX1,    #0xa979
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43386 (0xa97a)

lri $AR1,    #0x4000
lri $IX1,    #0xa97a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43387 (0xa97b)

lri $AR1,    #0x4000
lri $IX1,    #0xa97b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43388 (0xa97c)

lri $AR1,    #0x4000
lri $IX1,    #0xa97c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43389 (0xa97d)

lri $AR1,    #0x4000
lri $IX1,    #0xa97d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43390 (0xa97e)

lri $AR1,    #0x4000
lri $IX1,    #0xa97e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43391 (0xa97f)

lri $AR1,    #0x4000
lri $IX1,    #0xa97f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 43392 (0xa980)

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

