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

lri $AR1,    #0x4000
lri $IX1,    #0x4880
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18561 (0x4881)

lri $AR1,    #0x4000
lri $IX1,    #0x4881
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18562 (0x4882)

lri $AR1,    #0x4000
lri $IX1,    #0x4882
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18563 (0x4883)

lri $AR1,    #0x4000
lri $IX1,    #0x4883
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18564 (0x4884)

lri $AR1,    #0x4000
lri $IX1,    #0x4884
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18565 (0x4885)

lri $AR1,    #0x4000
lri $IX1,    #0x4885
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18566 (0x4886)

lri $AR1,    #0x4000
lri $IX1,    #0x4886
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18567 (0x4887)

lri $AR1,    #0x4000
lri $IX1,    #0x4887
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18568 (0x4888)

lri $AR1,    #0x4000
lri $IX1,    #0x4888
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18569 (0x4889)

lri $AR1,    #0x4000
lri $IX1,    #0x4889
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18570 (0x488a)

lri $AR1,    #0x4000
lri $IX1,    #0x488a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18571 (0x488b)

lri $AR1,    #0x4000
lri $IX1,    #0x488b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18572 (0x488c)

lri $AR1,    #0x4000
lri $IX1,    #0x488c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18573 (0x488d)

lri $AR1,    #0x4000
lri $IX1,    #0x488d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18574 (0x488e)

lri $AR1,    #0x4000
lri $IX1,    #0x488e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18575 (0x488f)

lri $AR1,    #0x4000
lri $IX1,    #0x488f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18576 (0x4890)

lri $AR1,    #0x4000
lri $IX1,    #0x4890
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18577 (0x4891)

lri $AR1,    #0x4000
lri $IX1,    #0x4891
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18578 (0x4892)

lri $AR1,    #0x4000
lri $IX1,    #0x4892
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18579 (0x4893)

lri $AR1,    #0x4000
lri $IX1,    #0x4893
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18580 (0x4894)

lri $AR1,    #0x4000
lri $IX1,    #0x4894
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18581 (0x4895)

lri $AR1,    #0x4000
lri $IX1,    #0x4895
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18582 (0x4896)

lri $AR1,    #0x4000
lri $IX1,    #0x4896
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18583 (0x4897)

lri $AR1,    #0x4000
lri $IX1,    #0x4897
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18584 (0x4898)

lri $AR1,    #0x4000
lri $IX1,    #0x4898
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18585 (0x4899)

lri $AR1,    #0x4000
lri $IX1,    #0x4899
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18586 (0x489a)

lri $AR1,    #0x4000
lri $IX1,    #0x489a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18587 (0x489b)

lri $AR1,    #0x4000
lri $IX1,    #0x489b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18588 (0x489c)

lri $AR1,    #0x4000
lri $IX1,    #0x489c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18589 (0x489d)

lri $AR1,    #0x4000
lri $IX1,    #0x489d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18590 (0x489e)

lri $AR1,    #0x4000
lri $IX1,    #0x489e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18591 (0x489f)

lri $AR1,    #0x4000
lri $IX1,    #0x489f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18592 (0x48a0)

lri $AR1,    #0x4000
lri $IX1,    #0x48a0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18593 (0x48a1)

lri $AR1,    #0x4000
lri $IX1,    #0x48a1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18594 (0x48a2)

lri $AR1,    #0x4000
lri $IX1,    #0x48a2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18595 (0x48a3)

lri $AR1,    #0x4000
lri $IX1,    #0x48a3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18596 (0x48a4)

lri $AR1,    #0x4000
lri $IX1,    #0x48a4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18597 (0x48a5)

lri $AR1,    #0x4000
lri $IX1,    #0x48a5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18598 (0x48a6)

lri $AR1,    #0x4000
lri $IX1,    #0x48a6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18599 (0x48a7)

lri $AR1,    #0x4000
lri $IX1,    #0x48a7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18600 (0x48a8)

lri $AR1,    #0x4000
lri $IX1,    #0x48a8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18601 (0x48a9)

lri $AR1,    #0x4000
lri $IX1,    #0x48a9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18602 (0x48aa)

lri $AR1,    #0x4000
lri $IX1,    #0x48aa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18603 (0x48ab)

lri $AR1,    #0x4000
lri $IX1,    #0x48ab
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18604 (0x48ac)

lri $AR1,    #0x4000
lri $IX1,    #0x48ac
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18605 (0x48ad)

lri $AR1,    #0x4000
lri $IX1,    #0x48ad
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18606 (0x48ae)

lri $AR1,    #0x4000
lri $IX1,    #0x48ae
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18607 (0x48af)

lri $AR1,    #0x4000
lri $IX1,    #0x48af
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18608 (0x48b0)

lri $AR1,    #0x4000
lri $IX1,    #0x48b0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18609 (0x48b1)

lri $AR1,    #0x4000
lri $IX1,    #0x48b1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18610 (0x48b2)

lri $AR1,    #0x4000
lri $IX1,    #0x48b2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18611 (0x48b3)

lri $AR1,    #0x4000
lri $IX1,    #0x48b3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18612 (0x48b4)

lri $AR1,    #0x4000
lri $IX1,    #0x48b4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18613 (0x48b5)

lri $AR1,    #0x4000
lri $IX1,    #0x48b5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18614 (0x48b6)

lri $AR1,    #0x4000
lri $IX1,    #0x48b6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18615 (0x48b7)

lri $AR1,    #0x4000
lri $IX1,    #0x48b7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18616 (0x48b8)

lri $AR1,    #0x4000
lri $IX1,    #0x48b8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18617 (0x48b9)

lri $AR1,    #0x4000
lri $IX1,    #0x48b9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18618 (0x48ba)

lri $AR1,    #0x4000
lri $IX1,    #0x48ba
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18619 (0x48bb)

lri $AR1,    #0x4000
lri $IX1,    #0x48bb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18620 (0x48bc)

lri $AR1,    #0x4000
lri $IX1,    #0x48bc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18621 (0x48bd)

lri $AR1,    #0x4000
lri $IX1,    #0x48bd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18622 (0x48be)

lri $AR1,    #0x4000
lri $IX1,    #0x48be
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18623 (0x48bf)

lri $AR1,    #0x4000
lri $IX1,    #0x48bf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18624 (0x48c0)

lri $AR1,    #0x4000
lri $IX1,    #0x48c0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18625 (0x48c1)

lri $AR1,    #0x4000
lri $IX1,    #0x48c1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18626 (0x48c2)

lri $AR1,    #0x4000
lri $IX1,    #0x48c2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18627 (0x48c3)

lri $AR1,    #0x4000
lri $IX1,    #0x48c3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18628 (0x48c4)

lri $AR1,    #0x4000
lri $IX1,    #0x48c4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18629 (0x48c5)

lri $AR1,    #0x4000
lri $IX1,    #0x48c5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18630 (0x48c6)

lri $AR1,    #0x4000
lri $IX1,    #0x48c6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18631 (0x48c7)

lri $AR1,    #0x4000
lri $IX1,    #0x48c7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18632 (0x48c8)

lri $AR1,    #0x4000
lri $IX1,    #0x48c8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18633 (0x48c9)

lri $AR1,    #0x4000
lri $IX1,    #0x48c9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18634 (0x48ca)

lri $AR1,    #0x4000
lri $IX1,    #0x48ca
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18635 (0x48cb)

lri $AR1,    #0x4000
lri $IX1,    #0x48cb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18636 (0x48cc)

lri $AR1,    #0x4000
lri $IX1,    #0x48cc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18637 (0x48cd)

lri $AR1,    #0x4000
lri $IX1,    #0x48cd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18638 (0x48ce)

lri $AR1,    #0x4000
lri $IX1,    #0x48ce
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18639 (0x48cf)

lri $AR1,    #0x4000
lri $IX1,    #0x48cf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18640 (0x48d0)

lri $AR1,    #0x4000
lri $IX1,    #0x48d0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18641 (0x48d1)

lri $AR1,    #0x4000
lri $IX1,    #0x48d1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18642 (0x48d2)

lri $AR1,    #0x4000
lri $IX1,    #0x48d2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18643 (0x48d3)

lri $AR1,    #0x4000
lri $IX1,    #0x48d3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18644 (0x48d4)

lri $AR1,    #0x4000
lri $IX1,    #0x48d4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18645 (0x48d5)

lri $AR1,    #0x4000
lri $IX1,    #0x48d5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18646 (0x48d6)

lri $AR1,    #0x4000
lri $IX1,    #0x48d6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18647 (0x48d7)

lri $AR1,    #0x4000
lri $IX1,    #0x48d7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18648 (0x48d8)

lri $AR1,    #0x4000
lri $IX1,    #0x48d8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18649 (0x48d9)

lri $AR1,    #0x4000
lri $IX1,    #0x48d9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18650 (0x48da)

lri $AR1,    #0x4000
lri $IX1,    #0x48da
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18651 (0x48db)

lri $AR1,    #0x4000
lri $IX1,    #0x48db
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18652 (0x48dc)

lri $AR1,    #0x4000
lri $IX1,    #0x48dc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18653 (0x48dd)

lri $AR1,    #0x4000
lri $IX1,    #0x48dd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18654 (0x48de)

lri $AR1,    #0x4000
lri $IX1,    #0x48de
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18655 (0x48df)

lri $AR1,    #0x4000
lri $IX1,    #0x48df
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18656 (0x48e0)

lri $AR1,    #0x4000
lri $IX1,    #0x48e0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18657 (0x48e1)

lri $AR1,    #0x4000
lri $IX1,    #0x48e1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18658 (0x48e2)

lri $AR1,    #0x4000
lri $IX1,    #0x48e2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18659 (0x48e3)

lri $AR1,    #0x4000
lri $IX1,    #0x48e3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18660 (0x48e4)

lri $AR1,    #0x4000
lri $IX1,    #0x48e4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18661 (0x48e5)

lri $AR1,    #0x4000
lri $IX1,    #0x48e5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18662 (0x48e6)

lri $AR1,    #0x4000
lri $IX1,    #0x48e6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18663 (0x48e7)

lri $AR1,    #0x4000
lri $IX1,    #0x48e7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18664 (0x48e8)

lri $AR1,    #0x4000
lri $IX1,    #0x48e8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18665 (0x48e9)

lri $AR1,    #0x4000
lri $IX1,    #0x48e9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18666 (0x48ea)

lri $AR1,    #0x4000
lri $IX1,    #0x48ea
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18667 (0x48eb)

lri $AR1,    #0x4000
lri $IX1,    #0x48eb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18668 (0x48ec)

lri $AR1,    #0x4000
lri $IX1,    #0x48ec
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18669 (0x48ed)

lri $AR1,    #0x4000
lri $IX1,    #0x48ed
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18670 (0x48ee)

lri $AR1,    #0x4000
lri $IX1,    #0x48ee
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18671 (0x48ef)

lri $AR1,    #0x4000
lri $IX1,    #0x48ef
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18672 (0x48f0)

lri $AR1,    #0x4000
lri $IX1,    #0x48f0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18673 (0x48f1)

lri $AR1,    #0x4000
lri $IX1,    #0x48f1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18674 (0x48f2)

lri $AR1,    #0x4000
lri $IX1,    #0x48f2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18675 (0x48f3)

lri $AR1,    #0x4000
lri $IX1,    #0x48f3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18676 (0x48f4)

lri $AR1,    #0x4000
lri $IX1,    #0x48f4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18677 (0x48f5)

lri $AR1,    #0x4000
lri $IX1,    #0x48f5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18678 (0x48f6)

lri $AR1,    #0x4000
lri $IX1,    #0x48f6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18679 (0x48f7)

lri $AR1,    #0x4000
lri $IX1,    #0x48f7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18680 (0x48f8)

lri $AR1,    #0x4000
lri $IX1,    #0x48f8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18681 (0x48f9)

lri $AR1,    #0x4000
lri $IX1,    #0x48f9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18682 (0x48fa)

lri $AR1,    #0x4000
lri $IX1,    #0x48fa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18683 (0x48fb)

lri $AR1,    #0x4000
lri $IX1,    #0x48fb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18684 (0x48fc)

lri $AR1,    #0x4000
lri $IX1,    #0x48fc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18685 (0x48fd)

lri $AR1,    #0x4000
lri $IX1,    #0x48fd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18686 (0x48fe)

lri $AR1,    #0x4000
lri $IX1,    #0x48fe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18687 (0x48ff)

lri $AR1,    #0x4000
lri $IX1,    #0x48ff
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 18688 (0x4900)

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

