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

lri $AR1,    #0x4000
lri $IX1,    #0xdd80
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56705 (0xdd81)

lri $AR1,    #0x4000
lri $IX1,    #0xdd81
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56706 (0xdd82)

lri $AR1,    #0x4000
lri $IX1,    #0xdd82
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56707 (0xdd83)

lri $AR1,    #0x4000
lri $IX1,    #0xdd83
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56708 (0xdd84)

lri $AR1,    #0x4000
lri $IX1,    #0xdd84
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56709 (0xdd85)

lri $AR1,    #0x4000
lri $IX1,    #0xdd85
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56710 (0xdd86)

lri $AR1,    #0x4000
lri $IX1,    #0xdd86
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56711 (0xdd87)

lri $AR1,    #0x4000
lri $IX1,    #0xdd87
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56712 (0xdd88)

lri $AR1,    #0x4000
lri $IX1,    #0xdd88
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56713 (0xdd89)

lri $AR1,    #0x4000
lri $IX1,    #0xdd89
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56714 (0xdd8a)

lri $AR1,    #0x4000
lri $IX1,    #0xdd8a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56715 (0xdd8b)

lri $AR1,    #0x4000
lri $IX1,    #0xdd8b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56716 (0xdd8c)

lri $AR1,    #0x4000
lri $IX1,    #0xdd8c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56717 (0xdd8d)

lri $AR1,    #0x4000
lri $IX1,    #0xdd8d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56718 (0xdd8e)

lri $AR1,    #0x4000
lri $IX1,    #0xdd8e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56719 (0xdd8f)

lri $AR1,    #0x4000
lri $IX1,    #0xdd8f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56720 (0xdd90)

lri $AR1,    #0x4000
lri $IX1,    #0xdd90
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56721 (0xdd91)

lri $AR1,    #0x4000
lri $IX1,    #0xdd91
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56722 (0xdd92)

lri $AR1,    #0x4000
lri $IX1,    #0xdd92
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56723 (0xdd93)

lri $AR1,    #0x4000
lri $IX1,    #0xdd93
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56724 (0xdd94)

lri $AR1,    #0x4000
lri $IX1,    #0xdd94
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56725 (0xdd95)

lri $AR1,    #0x4000
lri $IX1,    #0xdd95
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56726 (0xdd96)

lri $AR1,    #0x4000
lri $IX1,    #0xdd96
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56727 (0xdd97)

lri $AR1,    #0x4000
lri $IX1,    #0xdd97
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56728 (0xdd98)

lri $AR1,    #0x4000
lri $IX1,    #0xdd98
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56729 (0xdd99)

lri $AR1,    #0x4000
lri $IX1,    #0xdd99
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56730 (0xdd9a)

lri $AR1,    #0x4000
lri $IX1,    #0xdd9a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56731 (0xdd9b)

lri $AR1,    #0x4000
lri $IX1,    #0xdd9b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56732 (0xdd9c)

lri $AR1,    #0x4000
lri $IX1,    #0xdd9c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56733 (0xdd9d)

lri $AR1,    #0x4000
lri $IX1,    #0xdd9d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56734 (0xdd9e)

lri $AR1,    #0x4000
lri $IX1,    #0xdd9e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56735 (0xdd9f)

lri $AR1,    #0x4000
lri $IX1,    #0xdd9f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56736 (0xdda0)

lri $AR1,    #0x4000
lri $IX1,    #0xdda0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56737 (0xdda1)

lri $AR1,    #0x4000
lri $IX1,    #0xdda1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56738 (0xdda2)

lri $AR1,    #0x4000
lri $IX1,    #0xdda2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56739 (0xdda3)

lri $AR1,    #0x4000
lri $IX1,    #0xdda3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56740 (0xdda4)

lri $AR1,    #0x4000
lri $IX1,    #0xdda4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56741 (0xdda5)

lri $AR1,    #0x4000
lri $IX1,    #0xdda5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56742 (0xdda6)

lri $AR1,    #0x4000
lri $IX1,    #0xdda6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56743 (0xdda7)

lri $AR1,    #0x4000
lri $IX1,    #0xdda7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56744 (0xdda8)

lri $AR1,    #0x4000
lri $IX1,    #0xdda8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56745 (0xdda9)

lri $AR1,    #0x4000
lri $IX1,    #0xdda9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56746 (0xddaa)

lri $AR1,    #0x4000
lri $IX1,    #0xddaa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56747 (0xddab)

lri $AR1,    #0x4000
lri $IX1,    #0xddab
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56748 (0xddac)

lri $AR1,    #0x4000
lri $IX1,    #0xddac
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56749 (0xddad)

lri $AR1,    #0x4000
lri $IX1,    #0xddad
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56750 (0xddae)

lri $AR1,    #0x4000
lri $IX1,    #0xddae
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56751 (0xddaf)

lri $AR1,    #0x4000
lri $IX1,    #0xddaf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56752 (0xddb0)

lri $AR1,    #0x4000
lri $IX1,    #0xddb0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56753 (0xddb1)

lri $AR1,    #0x4000
lri $IX1,    #0xddb1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56754 (0xddb2)

lri $AR1,    #0x4000
lri $IX1,    #0xddb2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56755 (0xddb3)

lri $AR1,    #0x4000
lri $IX1,    #0xddb3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56756 (0xddb4)

lri $AR1,    #0x4000
lri $IX1,    #0xddb4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56757 (0xddb5)

lri $AR1,    #0x4000
lri $IX1,    #0xddb5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56758 (0xddb6)

lri $AR1,    #0x4000
lri $IX1,    #0xddb6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56759 (0xddb7)

lri $AR1,    #0x4000
lri $IX1,    #0xddb7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56760 (0xddb8)

lri $AR1,    #0x4000
lri $IX1,    #0xddb8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56761 (0xddb9)

lri $AR1,    #0x4000
lri $IX1,    #0xddb9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56762 (0xddba)

lri $AR1,    #0x4000
lri $IX1,    #0xddba
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56763 (0xddbb)

lri $AR1,    #0x4000
lri $IX1,    #0xddbb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56764 (0xddbc)

lri $AR1,    #0x4000
lri $IX1,    #0xddbc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56765 (0xddbd)

lri $AR1,    #0x4000
lri $IX1,    #0xddbd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56766 (0xddbe)

lri $AR1,    #0x4000
lri $IX1,    #0xddbe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56767 (0xddbf)

lri $AR1,    #0x4000
lri $IX1,    #0xddbf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56768 (0xddc0)

lri $AR1,    #0x4000
lri $IX1,    #0xddc0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56769 (0xddc1)

lri $AR1,    #0x4000
lri $IX1,    #0xddc1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56770 (0xddc2)

lri $AR1,    #0x4000
lri $IX1,    #0xddc2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56771 (0xddc3)

lri $AR1,    #0x4000
lri $IX1,    #0xddc3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56772 (0xddc4)

lri $AR1,    #0x4000
lri $IX1,    #0xddc4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56773 (0xddc5)

lri $AR1,    #0x4000
lri $IX1,    #0xddc5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56774 (0xddc6)

lri $AR1,    #0x4000
lri $IX1,    #0xddc6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56775 (0xddc7)

lri $AR1,    #0x4000
lri $IX1,    #0xddc7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56776 (0xddc8)

lri $AR1,    #0x4000
lri $IX1,    #0xddc8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56777 (0xddc9)

lri $AR1,    #0x4000
lri $IX1,    #0xddc9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56778 (0xddca)

lri $AR1,    #0x4000
lri $IX1,    #0xddca
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56779 (0xddcb)

lri $AR1,    #0x4000
lri $IX1,    #0xddcb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56780 (0xddcc)

lri $AR1,    #0x4000
lri $IX1,    #0xddcc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56781 (0xddcd)

lri $AR1,    #0x4000
lri $IX1,    #0xddcd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56782 (0xddce)

lri $AR1,    #0x4000
lri $IX1,    #0xddce
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56783 (0xddcf)

lri $AR1,    #0x4000
lri $IX1,    #0xddcf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56784 (0xddd0)

lri $AR1,    #0x4000
lri $IX1,    #0xddd0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56785 (0xddd1)

lri $AR1,    #0x4000
lri $IX1,    #0xddd1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56786 (0xddd2)

lri $AR1,    #0x4000
lri $IX1,    #0xddd2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56787 (0xddd3)

lri $AR1,    #0x4000
lri $IX1,    #0xddd3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56788 (0xddd4)

lri $AR1,    #0x4000
lri $IX1,    #0xddd4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56789 (0xddd5)

lri $AR1,    #0x4000
lri $IX1,    #0xddd5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56790 (0xddd6)

lri $AR1,    #0x4000
lri $IX1,    #0xddd6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56791 (0xddd7)

lri $AR1,    #0x4000
lri $IX1,    #0xddd7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56792 (0xddd8)

lri $AR1,    #0x4000
lri $IX1,    #0xddd8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56793 (0xddd9)

lri $AR1,    #0x4000
lri $IX1,    #0xddd9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56794 (0xddda)

lri $AR1,    #0x4000
lri $IX1,    #0xddda
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56795 (0xdddb)

lri $AR1,    #0x4000
lri $IX1,    #0xdddb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56796 (0xdddc)

lri $AR1,    #0x4000
lri $IX1,    #0xdddc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56797 (0xdddd)

lri $AR1,    #0x4000
lri $IX1,    #0xdddd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56798 (0xddde)

lri $AR1,    #0x4000
lri $IX1,    #0xddde
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56799 (0xdddf)

lri $AR1,    #0x4000
lri $IX1,    #0xdddf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56800 (0xdde0)

lri $AR1,    #0x4000
lri $IX1,    #0xdde0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56801 (0xdde1)

lri $AR1,    #0x4000
lri $IX1,    #0xdde1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56802 (0xdde2)

lri $AR1,    #0x4000
lri $IX1,    #0xdde2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56803 (0xdde3)

lri $AR1,    #0x4000
lri $IX1,    #0xdde3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56804 (0xdde4)

lri $AR1,    #0x4000
lri $IX1,    #0xdde4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56805 (0xdde5)

lri $AR1,    #0x4000
lri $IX1,    #0xdde5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56806 (0xdde6)

lri $AR1,    #0x4000
lri $IX1,    #0xdde6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56807 (0xdde7)

lri $AR1,    #0x4000
lri $IX1,    #0xdde7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56808 (0xdde8)

lri $AR1,    #0x4000
lri $IX1,    #0xdde8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56809 (0xdde9)

lri $AR1,    #0x4000
lri $IX1,    #0xdde9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56810 (0xddea)

lri $AR1,    #0x4000
lri $IX1,    #0xddea
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56811 (0xddeb)

lri $AR1,    #0x4000
lri $IX1,    #0xddeb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56812 (0xddec)

lri $AR1,    #0x4000
lri $IX1,    #0xddec
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56813 (0xdded)

lri $AR1,    #0x4000
lri $IX1,    #0xdded
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56814 (0xddee)

lri $AR1,    #0x4000
lri $IX1,    #0xddee
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56815 (0xddef)

lri $AR1,    #0x4000
lri $IX1,    #0xddef
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56816 (0xddf0)

lri $AR1,    #0x4000
lri $IX1,    #0xddf0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56817 (0xddf1)

lri $AR1,    #0x4000
lri $IX1,    #0xddf1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56818 (0xddf2)

lri $AR1,    #0x4000
lri $IX1,    #0xddf2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56819 (0xddf3)

lri $AR1,    #0x4000
lri $IX1,    #0xddf3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56820 (0xddf4)

lri $AR1,    #0x4000
lri $IX1,    #0xddf4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56821 (0xddf5)

lri $AR1,    #0x4000
lri $IX1,    #0xddf5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56822 (0xddf6)

lri $AR1,    #0x4000
lri $IX1,    #0xddf6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56823 (0xddf7)

lri $AR1,    #0x4000
lri $IX1,    #0xddf7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56824 (0xddf8)

lri $AR1,    #0x4000
lri $IX1,    #0xddf8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56825 (0xddf9)

lri $AR1,    #0x4000
lri $IX1,    #0xddf9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56826 (0xddfa)

lri $AR1,    #0x4000
lri $IX1,    #0xddfa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56827 (0xddfb)

lri $AR1,    #0x4000
lri $IX1,    #0xddfb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56828 (0xddfc)

lri $AR1,    #0x4000
lri $IX1,    #0xddfc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56829 (0xddfd)

lri $AR1,    #0x4000
lri $IX1,    #0xddfd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56830 (0xddfe)

lri $AR1,    #0x4000
lri $IX1,    #0xddfe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56831 (0xddff)

lri $AR1,    #0x4000
lri $IX1,    #0xddff
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 56832 (0xde00)

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

