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

lri $AR1,    #0x4000
lri $IX1,    #0x8f80
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36737 (0x8f81)

lri $AR1,    #0x4000
lri $IX1,    #0x8f81
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36738 (0x8f82)

lri $AR1,    #0x4000
lri $IX1,    #0x8f82
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36739 (0x8f83)

lri $AR1,    #0x4000
lri $IX1,    #0x8f83
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36740 (0x8f84)

lri $AR1,    #0x4000
lri $IX1,    #0x8f84
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36741 (0x8f85)

lri $AR1,    #0x4000
lri $IX1,    #0x8f85
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36742 (0x8f86)

lri $AR1,    #0x4000
lri $IX1,    #0x8f86
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36743 (0x8f87)

lri $AR1,    #0x4000
lri $IX1,    #0x8f87
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36744 (0x8f88)

lri $AR1,    #0x4000
lri $IX1,    #0x8f88
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36745 (0x8f89)

lri $AR1,    #0x4000
lri $IX1,    #0x8f89
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36746 (0x8f8a)

lri $AR1,    #0x4000
lri $IX1,    #0x8f8a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36747 (0x8f8b)

lri $AR1,    #0x4000
lri $IX1,    #0x8f8b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36748 (0x8f8c)

lri $AR1,    #0x4000
lri $IX1,    #0x8f8c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36749 (0x8f8d)

lri $AR1,    #0x4000
lri $IX1,    #0x8f8d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36750 (0x8f8e)

lri $AR1,    #0x4000
lri $IX1,    #0x8f8e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36751 (0x8f8f)

lri $AR1,    #0x4000
lri $IX1,    #0x8f8f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36752 (0x8f90)

lri $AR1,    #0x4000
lri $IX1,    #0x8f90
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36753 (0x8f91)

lri $AR1,    #0x4000
lri $IX1,    #0x8f91
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36754 (0x8f92)

lri $AR1,    #0x4000
lri $IX1,    #0x8f92
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36755 (0x8f93)

lri $AR1,    #0x4000
lri $IX1,    #0x8f93
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36756 (0x8f94)

lri $AR1,    #0x4000
lri $IX1,    #0x8f94
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36757 (0x8f95)

lri $AR1,    #0x4000
lri $IX1,    #0x8f95
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36758 (0x8f96)

lri $AR1,    #0x4000
lri $IX1,    #0x8f96
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36759 (0x8f97)

lri $AR1,    #0x4000
lri $IX1,    #0x8f97
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36760 (0x8f98)

lri $AR1,    #0x4000
lri $IX1,    #0x8f98
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36761 (0x8f99)

lri $AR1,    #0x4000
lri $IX1,    #0x8f99
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36762 (0x8f9a)

lri $AR1,    #0x4000
lri $IX1,    #0x8f9a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36763 (0x8f9b)

lri $AR1,    #0x4000
lri $IX1,    #0x8f9b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36764 (0x8f9c)

lri $AR1,    #0x4000
lri $IX1,    #0x8f9c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36765 (0x8f9d)

lri $AR1,    #0x4000
lri $IX1,    #0x8f9d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36766 (0x8f9e)

lri $AR1,    #0x4000
lri $IX1,    #0x8f9e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36767 (0x8f9f)

lri $AR1,    #0x4000
lri $IX1,    #0x8f9f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36768 (0x8fa0)

lri $AR1,    #0x4000
lri $IX1,    #0x8fa0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36769 (0x8fa1)

lri $AR1,    #0x4000
lri $IX1,    #0x8fa1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36770 (0x8fa2)

lri $AR1,    #0x4000
lri $IX1,    #0x8fa2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36771 (0x8fa3)

lri $AR1,    #0x4000
lri $IX1,    #0x8fa3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36772 (0x8fa4)

lri $AR1,    #0x4000
lri $IX1,    #0x8fa4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36773 (0x8fa5)

lri $AR1,    #0x4000
lri $IX1,    #0x8fa5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36774 (0x8fa6)

lri $AR1,    #0x4000
lri $IX1,    #0x8fa6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36775 (0x8fa7)

lri $AR1,    #0x4000
lri $IX1,    #0x8fa7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36776 (0x8fa8)

lri $AR1,    #0x4000
lri $IX1,    #0x8fa8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36777 (0x8fa9)

lri $AR1,    #0x4000
lri $IX1,    #0x8fa9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36778 (0x8faa)

lri $AR1,    #0x4000
lri $IX1,    #0x8faa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36779 (0x8fab)

lri $AR1,    #0x4000
lri $IX1,    #0x8fab
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36780 (0x8fac)

lri $AR1,    #0x4000
lri $IX1,    #0x8fac
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36781 (0x8fad)

lri $AR1,    #0x4000
lri $IX1,    #0x8fad
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36782 (0x8fae)

lri $AR1,    #0x4000
lri $IX1,    #0x8fae
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36783 (0x8faf)

lri $AR1,    #0x4000
lri $IX1,    #0x8faf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36784 (0x8fb0)

lri $AR1,    #0x4000
lri $IX1,    #0x8fb0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36785 (0x8fb1)

lri $AR1,    #0x4000
lri $IX1,    #0x8fb1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36786 (0x8fb2)

lri $AR1,    #0x4000
lri $IX1,    #0x8fb2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36787 (0x8fb3)

lri $AR1,    #0x4000
lri $IX1,    #0x8fb3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36788 (0x8fb4)

lri $AR1,    #0x4000
lri $IX1,    #0x8fb4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36789 (0x8fb5)

lri $AR1,    #0x4000
lri $IX1,    #0x8fb5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36790 (0x8fb6)

lri $AR1,    #0x4000
lri $IX1,    #0x8fb6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36791 (0x8fb7)

lri $AR1,    #0x4000
lri $IX1,    #0x8fb7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36792 (0x8fb8)

lri $AR1,    #0x4000
lri $IX1,    #0x8fb8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36793 (0x8fb9)

lri $AR1,    #0x4000
lri $IX1,    #0x8fb9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36794 (0x8fba)

lri $AR1,    #0x4000
lri $IX1,    #0x8fba
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36795 (0x8fbb)

lri $AR1,    #0x4000
lri $IX1,    #0x8fbb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36796 (0x8fbc)

lri $AR1,    #0x4000
lri $IX1,    #0x8fbc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36797 (0x8fbd)

lri $AR1,    #0x4000
lri $IX1,    #0x8fbd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36798 (0x8fbe)

lri $AR1,    #0x4000
lri $IX1,    #0x8fbe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36799 (0x8fbf)

lri $AR1,    #0x4000
lri $IX1,    #0x8fbf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36800 (0x8fc0)

lri $AR1,    #0x4000
lri $IX1,    #0x8fc0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36801 (0x8fc1)

lri $AR1,    #0x4000
lri $IX1,    #0x8fc1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36802 (0x8fc2)

lri $AR1,    #0x4000
lri $IX1,    #0x8fc2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36803 (0x8fc3)

lri $AR1,    #0x4000
lri $IX1,    #0x8fc3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36804 (0x8fc4)

lri $AR1,    #0x4000
lri $IX1,    #0x8fc4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36805 (0x8fc5)

lri $AR1,    #0x4000
lri $IX1,    #0x8fc5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36806 (0x8fc6)

lri $AR1,    #0x4000
lri $IX1,    #0x8fc6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36807 (0x8fc7)

lri $AR1,    #0x4000
lri $IX1,    #0x8fc7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36808 (0x8fc8)

lri $AR1,    #0x4000
lri $IX1,    #0x8fc8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36809 (0x8fc9)

lri $AR1,    #0x4000
lri $IX1,    #0x8fc9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36810 (0x8fca)

lri $AR1,    #0x4000
lri $IX1,    #0x8fca
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36811 (0x8fcb)

lri $AR1,    #0x4000
lri $IX1,    #0x8fcb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36812 (0x8fcc)

lri $AR1,    #0x4000
lri $IX1,    #0x8fcc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36813 (0x8fcd)

lri $AR1,    #0x4000
lri $IX1,    #0x8fcd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36814 (0x8fce)

lri $AR1,    #0x4000
lri $IX1,    #0x8fce
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36815 (0x8fcf)

lri $AR1,    #0x4000
lri $IX1,    #0x8fcf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36816 (0x8fd0)

lri $AR1,    #0x4000
lri $IX1,    #0x8fd0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36817 (0x8fd1)

lri $AR1,    #0x4000
lri $IX1,    #0x8fd1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36818 (0x8fd2)

lri $AR1,    #0x4000
lri $IX1,    #0x8fd2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36819 (0x8fd3)

lri $AR1,    #0x4000
lri $IX1,    #0x8fd3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36820 (0x8fd4)

lri $AR1,    #0x4000
lri $IX1,    #0x8fd4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36821 (0x8fd5)

lri $AR1,    #0x4000
lri $IX1,    #0x8fd5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36822 (0x8fd6)

lri $AR1,    #0x4000
lri $IX1,    #0x8fd6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36823 (0x8fd7)

lri $AR1,    #0x4000
lri $IX1,    #0x8fd7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36824 (0x8fd8)

lri $AR1,    #0x4000
lri $IX1,    #0x8fd8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36825 (0x8fd9)

lri $AR1,    #0x4000
lri $IX1,    #0x8fd9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36826 (0x8fda)

lri $AR1,    #0x4000
lri $IX1,    #0x8fda
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36827 (0x8fdb)

lri $AR1,    #0x4000
lri $IX1,    #0x8fdb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36828 (0x8fdc)

lri $AR1,    #0x4000
lri $IX1,    #0x8fdc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36829 (0x8fdd)

lri $AR1,    #0x4000
lri $IX1,    #0x8fdd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36830 (0x8fde)

lri $AR1,    #0x4000
lri $IX1,    #0x8fde
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36831 (0x8fdf)

lri $AR1,    #0x4000
lri $IX1,    #0x8fdf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36832 (0x8fe0)

lri $AR1,    #0x4000
lri $IX1,    #0x8fe0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36833 (0x8fe1)

lri $AR1,    #0x4000
lri $IX1,    #0x8fe1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36834 (0x8fe2)

lri $AR1,    #0x4000
lri $IX1,    #0x8fe2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36835 (0x8fe3)

lri $AR1,    #0x4000
lri $IX1,    #0x8fe3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36836 (0x8fe4)

lri $AR1,    #0x4000
lri $IX1,    #0x8fe4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36837 (0x8fe5)

lri $AR1,    #0x4000
lri $IX1,    #0x8fe5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36838 (0x8fe6)

lri $AR1,    #0x4000
lri $IX1,    #0x8fe6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36839 (0x8fe7)

lri $AR1,    #0x4000
lri $IX1,    #0x8fe7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36840 (0x8fe8)

lri $AR1,    #0x4000
lri $IX1,    #0x8fe8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36841 (0x8fe9)

lri $AR1,    #0x4000
lri $IX1,    #0x8fe9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36842 (0x8fea)

lri $AR1,    #0x4000
lri $IX1,    #0x8fea
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36843 (0x8feb)

lri $AR1,    #0x4000
lri $IX1,    #0x8feb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36844 (0x8fec)

lri $AR1,    #0x4000
lri $IX1,    #0x8fec
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36845 (0x8fed)

lri $AR1,    #0x4000
lri $IX1,    #0x8fed
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36846 (0x8fee)

lri $AR1,    #0x4000
lri $IX1,    #0x8fee
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36847 (0x8fef)

lri $AR1,    #0x4000
lri $IX1,    #0x8fef
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36848 (0x8ff0)

lri $AR1,    #0x4000
lri $IX1,    #0x8ff0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36849 (0x8ff1)

lri $AR1,    #0x4000
lri $IX1,    #0x8ff1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36850 (0x8ff2)

lri $AR1,    #0x4000
lri $IX1,    #0x8ff2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36851 (0x8ff3)

lri $AR1,    #0x4000
lri $IX1,    #0x8ff3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36852 (0x8ff4)

lri $AR1,    #0x4000
lri $IX1,    #0x8ff4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36853 (0x8ff5)

lri $AR1,    #0x4000
lri $IX1,    #0x8ff5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36854 (0x8ff6)

lri $AR1,    #0x4000
lri $IX1,    #0x8ff6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36855 (0x8ff7)

lri $AR1,    #0x4000
lri $IX1,    #0x8ff7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36856 (0x8ff8)

lri $AR1,    #0x4000
lri $IX1,    #0x8ff8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36857 (0x8ff9)

lri $AR1,    #0x4000
lri $IX1,    #0x8ff9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36858 (0x8ffa)

lri $AR1,    #0x4000
lri $IX1,    #0x8ffa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36859 (0x8ffb)

lri $AR1,    #0x4000
lri $IX1,    #0x8ffb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36860 (0x8ffc)

lri $AR1,    #0x4000
lri $IX1,    #0x8ffc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36861 (0x8ffd)

lri $AR1,    #0x4000
lri $IX1,    #0x8ffd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36862 (0x8ffe)

lri $AR1,    #0x4000
lri $IX1,    #0x8ffe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36863 (0x8fff)

lri $AR1,    #0x4000
lri $IX1,    #0x8fff
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 36864 (0x9000)

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

