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

lri $AR1,    #0x0040
lri $IX1,    #0xa9d0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43473 (0xa9d1)

lri $AR1,    #0x0040
lri $IX1,    #0xa9d1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43474 (0xa9d2)

lri $AR1,    #0x0040
lri $IX1,    #0xa9d2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43475 (0xa9d3)

lri $AR1,    #0x0040
lri $IX1,    #0xa9d3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43476 (0xa9d4)

lri $AR1,    #0x0040
lri $IX1,    #0xa9d4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43477 (0xa9d5)

lri $AR1,    #0x0040
lri $IX1,    #0xa9d5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43478 (0xa9d6)

lri $AR1,    #0x0040
lri $IX1,    #0xa9d6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43479 (0xa9d7)

lri $AR1,    #0x0040
lri $IX1,    #0xa9d7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43480 (0xa9d8)

lri $AR1,    #0x0040
lri $IX1,    #0xa9d8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43481 (0xa9d9)

lri $AR1,    #0x0040
lri $IX1,    #0xa9d9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43482 (0xa9da)

lri $AR1,    #0x0040
lri $IX1,    #0xa9da
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43483 (0xa9db)

lri $AR1,    #0x0040
lri $IX1,    #0xa9db
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43484 (0xa9dc)

lri $AR1,    #0x0040
lri $IX1,    #0xa9dc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43485 (0xa9dd)

lri $AR1,    #0x0040
lri $IX1,    #0xa9dd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43486 (0xa9de)

lri $AR1,    #0x0040
lri $IX1,    #0xa9de
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43487 (0xa9df)

lri $AR1,    #0x0040
lri $IX1,    #0xa9df
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43488 (0xa9e0)

lri $AR1,    #0x0040
lri $IX1,    #0xa9e0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43489 (0xa9e1)

lri $AR1,    #0x0040
lri $IX1,    #0xa9e1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43490 (0xa9e2)

lri $AR1,    #0x0040
lri $IX1,    #0xa9e2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43491 (0xa9e3)

lri $AR1,    #0x0040
lri $IX1,    #0xa9e3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43492 (0xa9e4)

lri $AR1,    #0x0040
lri $IX1,    #0xa9e4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43493 (0xa9e5)

lri $AR1,    #0x0040
lri $IX1,    #0xa9e5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43494 (0xa9e6)

lri $AR1,    #0x0040
lri $IX1,    #0xa9e6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43495 (0xa9e7)

lri $AR1,    #0x0040
lri $IX1,    #0xa9e7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43496 (0xa9e8)

lri $AR1,    #0x0040
lri $IX1,    #0xa9e8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43497 (0xa9e9)

lri $AR1,    #0x0040
lri $IX1,    #0xa9e9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43498 (0xa9ea)

lri $AR1,    #0x0040
lri $IX1,    #0xa9ea
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43499 (0xa9eb)

lri $AR1,    #0x0040
lri $IX1,    #0xa9eb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43500 (0xa9ec)

lri $AR1,    #0x0040
lri $IX1,    #0xa9ec
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43501 (0xa9ed)

lri $AR1,    #0x0040
lri $IX1,    #0xa9ed
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43502 (0xa9ee)

lri $AR1,    #0x0040
lri $IX1,    #0xa9ee
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43503 (0xa9ef)

lri $AR1,    #0x0040
lri $IX1,    #0xa9ef
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43504 (0xa9f0)

lri $AR1,    #0x0040
lri $IX1,    #0xa9f0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43505 (0xa9f1)

lri $AR1,    #0x0040
lri $IX1,    #0xa9f1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43506 (0xa9f2)

lri $AR1,    #0x0040
lri $IX1,    #0xa9f2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43507 (0xa9f3)

lri $AR1,    #0x0040
lri $IX1,    #0xa9f3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43508 (0xa9f4)

lri $AR1,    #0x0040
lri $IX1,    #0xa9f4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43509 (0xa9f5)

lri $AR1,    #0x0040
lri $IX1,    #0xa9f5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43510 (0xa9f6)

lri $AR1,    #0x0040
lri $IX1,    #0xa9f6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43511 (0xa9f7)

lri $AR1,    #0x0040
lri $IX1,    #0xa9f7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43512 (0xa9f8)

lri $AR1,    #0x0040
lri $IX1,    #0xa9f8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43513 (0xa9f9)

lri $AR1,    #0x0040
lri $IX1,    #0xa9f9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43514 (0xa9fa)

lri $AR1,    #0x0040
lri $IX1,    #0xa9fa
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43515 (0xa9fb)

lri $AR1,    #0x0040
lri $IX1,    #0xa9fb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43516 (0xa9fc)

lri $AR1,    #0x0040
lri $IX1,    #0xa9fc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43517 (0xa9fd)

lri $AR1,    #0x0040
lri $IX1,    #0xa9fd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43518 (0xa9fe)

lri $AR1,    #0x0040
lri $IX1,    #0xa9fe
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43519 (0xa9ff)

lri $AR1,    #0x0040
lri $IX1,    #0xa9ff
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43520 (0xaa00)

lri $AR1,    #0x0040
lri $IX1,    #0xaa00
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43521 (0xaa01)

lri $AR1,    #0x0040
lri $IX1,    #0xaa01
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43522 (0xaa02)

lri $AR1,    #0x0040
lri $IX1,    #0xaa02
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43523 (0xaa03)

lri $AR1,    #0x0040
lri $IX1,    #0xaa03
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43524 (0xaa04)

lri $AR1,    #0x0040
lri $IX1,    #0xaa04
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43525 (0xaa05)

lri $AR1,    #0x0040
lri $IX1,    #0xaa05
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43526 (0xaa06)

lri $AR1,    #0x0040
lri $IX1,    #0xaa06
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43527 (0xaa07)

lri $AR1,    #0x0040
lri $IX1,    #0xaa07
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43528 (0xaa08)

lri $AR1,    #0x0040
lri $IX1,    #0xaa08
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43529 (0xaa09)

lri $AR1,    #0x0040
lri $IX1,    #0xaa09
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43530 (0xaa0a)

lri $AR1,    #0x0040
lri $IX1,    #0xaa0a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43531 (0xaa0b)

lri $AR1,    #0x0040
lri $IX1,    #0xaa0b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43532 (0xaa0c)

lri $AR1,    #0x0040
lri $IX1,    #0xaa0c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43533 (0xaa0d)

lri $AR1,    #0x0040
lri $IX1,    #0xaa0d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43534 (0xaa0e)

lri $AR1,    #0x0040
lri $IX1,    #0xaa0e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43535 (0xaa0f)

lri $AR1,    #0x0040
lri $IX1,    #0xaa0f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43536 (0xaa10)

lri $AR1,    #0x0040
lri $IX1,    #0xaa10
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43537 (0xaa11)

lri $AR1,    #0x0040
lri $IX1,    #0xaa11
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43538 (0xaa12)

lri $AR1,    #0x0040
lri $IX1,    #0xaa12
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43539 (0xaa13)

lri $AR1,    #0x0040
lri $IX1,    #0xaa13
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43540 (0xaa14)

lri $AR1,    #0x0040
lri $IX1,    #0xaa14
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43541 (0xaa15)

lri $AR1,    #0x0040
lri $IX1,    #0xaa15
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43542 (0xaa16)

lri $AR1,    #0x0040
lri $IX1,    #0xaa16
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43543 (0xaa17)

lri $AR1,    #0x0040
lri $IX1,    #0xaa17
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43544 (0xaa18)

lri $AR1,    #0x0040
lri $IX1,    #0xaa18
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43545 (0xaa19)

lri $AR1,    #0x0040
lri $IX1,    #0xaa19
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43546 (0xaa1a)

lri $AR1,    #0x0040
lri $IX1,    #0xaa1a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43547 (0xaa1b)

lri $AR1,    #0x0040
lri $IX1,    #0xaa1b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43548 (0xaa1c)

lri $AR1,    #0x0040
lri $IX1,    #0xaa1c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43549 (0xaa1d)

lri $AR1,    #0x0040
lri $IX1,    #0xaa1d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43550 (0xaa1e)

lri $AR1,    #0x0040
lri $IX1,    #0xaa1e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43551 (0xaa1f)

lri $AR1,    #0x0040
lri $IX1,    #0xaa1f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43552 (0xaa20)

lri $AR1,    #0x0040
lri $IX1,    #0xaa20
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43553 (0xaa21)

lri $AR1,    #0x0040
lri $IX1,    #0xaa21
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43554 (0xaa22)

lri $AR1,    #0x0040
lri $IX1,    #0xaa22
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43555 (0xaa23)

lri $AR1,    #0x0040
lri $IX1,    #0xaa23
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43556 (0xaa24)

lri $AR1,    #0x0040
lri $IX1,    #0xaa24
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43557 (0xaa25)

lri $AR1,    #0x0040
lri $IX1,    #0xaa25
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43558 (0xaa26)

lri $AR1,    #0x0040
lri $IX1,    #0xaa26
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43559 (0xaa27)

lri $AR1,    #0x0040
lri $IX1,    #0xaa27
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43560 (0xaa28)

lri $AR1,    #0x0040
lri $IX1,    #0xaa28
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43561 (0xaa29)

lri $AR1,    #0x0040
lri $IX1,    #0xaa29
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43562 (0xaa2a)

lri $AR1,    #0x0040
lri $IX1,    #0xaa2a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43563 (0xaa2b)

lri $AR1,    #0x0040
lri $IX1,    #0xaa2b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43564 (0xaa2c)

lri $AR1,    #0x0040
lri $IX1,    #0xaa2c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43565 (0xaa2d)

lri $AR1,    #0x0040
lri $IX1,    #0xaa2d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43566 (0xaa2e)

lri $AR1,    #0x0040
lri $IX1,    #0xaa2e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43567 (0xaa2f)

lri $AR1,    #0x0040
lri $IX1,    #0xaa2f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43568 (0xaa30)

lri $AR1,    #0x0040
lri $IX1,    #0xaa30
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43569 (0xaa31)

lri $AR1,    #0x0040
lri $IX1,    #0xaa31
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43570 (0xaa32)

lri $AR1,    #0x0040
lri $IX1,    #0xaa32
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43571 (0xaa33)

lri $AR1,    #0x0040
lri $IX1,    #0xaa33
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43572 (0xaa34)

lri $AR1,    #0x0040
lri $IX1,    #0xaa34
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43573 (0xaa35)

lri $AR1,    #0x0040
lri $IX1,    #0xaa35
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43574 (0xaa36)

lri $AR1,    #0x0040
lri $IX1,    #0xaa36
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43575 (0xaa37)

lri $AR1,    #0x0040
lri $IX1,    #0xaa37
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43576 (0xaa38)

lri $AR1,    #0x0040
lri $IX1,    #0xaa38
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43577 (0xaa39)

lri $AR1,    #0x0040
lri $IX1,    #0xaa39
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43578 (0xaa3a)

lri $AR1,    #0x0040
lri $IX1,    #0xaa3a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43579 (0xaa3b)

lri $AR1,    #0x0040
lri $IX1,    #0xaa3b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43580 (0xaa3c)

lri $AR1,    #0x0040
lri $IX1,    #0xaa3c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 43581 (0xaa3d)

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