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

lri $AR1,    #0x0080
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59777 (0xe981)

lri $AR1,    #0x0081
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59778 (0xe982)

lri $AR1,    #0x0082
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59779 (0xe983)

lri $AR1,    #0x0083
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59780 (0xe984)

lri $AR1,    #0x0084
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59781 (0xe985)

lri $AR1,    #0x0085
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59782 (0xe986)

lri $AR1,    #0x0086
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59783 (0xe987)

lri $AR1,    #0x0087
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59784 (0xe988)

lri $AR1,    #0x0088
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59785 (0xe989)

lri $AR1,    #0x0089
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59786 (0xe98a)

lri $AR1,    #0x008a
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59787 (0xe98b)

lri $AR1,    #0x008b
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59788 (0xe98c)

lri $AR1,    #0x008c
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59789 (0xe98d)

lri $AR1,    #0x008d
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59790 (0xe98e)

lri $AR1,    #0x008e
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59791 (0xe98f)

lri $AR1,    #0x008f
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59792 (0xe990)

lri $AR1,    #0x0090
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59793 (0xe991)

lri $AR1,    #0x0091
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59794 (0xe992)

lri $AR1,    #0x0092
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59795 (0xe993)

lri $AR1,    #0x0093
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59796 (0xe994)

lri $AR1,    #0x0094
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59797 (0xe995)

lri $AR1,    #0x0095
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59798 (0xe996)

lri $AR1,    #0x0096
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59799 (0xe997)

lri $AR1,    #0x0097
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59800 (0xe998)

lri $AR1,    #0x0098
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59801 (0xe999)

lri $AR1,    #0x0099
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59802 (0xe99a)

lri $AR1,    #0x009a
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59803 (0xe99b)

lri $AR1,    #0x009b
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59804 (0xe99c)

lri $AR1,    #0x009c
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59805 (0xe99d)

lri $AR1,    #0x009d
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59806 (0xe99e)

lri $AR1,    #0x009e
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59807 (0xe99f)

lri $AR1,    #0x009f
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59808 (0xe9a0)

lri $AR1,    #0x00a0
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59809 (0xe9a1)

lri $AR1,    #0x00a1
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59810 (0xe9a2)

lri $AR1,    #0x00a2
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59811 (0xe9a3)

lri $AR1,    #0x00a3
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59812 (0xe9a4)

lri $AR1,    #0x00a4
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59813 (0xe9a5)

lri $AR1,    #0x00a5
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59814 (0xe9a6)

lri $AR1,    #0x00a6
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59815 (0xe9a7)

lri $AR1,    #0x00a7
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59816 (0xe9a8)

lri $AR1,    #0x00a8
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59817 (0xe9a9)

lri $AR1,    #0x00a9
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59818 (0xe9aa)

lri $AR1,    #0x00aa
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59819 (0xe9ab)

lri $AR1,    #0x00ab
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59820 (0xe9ac)

lri $AR1,    #0x00ac
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59821 (0xe9ad)

lri $AR1,    #0x00ad
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59822 (0xe9ae)

lri $AR1,    #0x00ae
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59823 (0xe9af)

lri $AR1,    #0x00af
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59824 (0xe9b0)

lri $AR1,    #0x00b0
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59825 (0xe9b1)

lri $AR1,    #0x00b1
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59826 (0xe9b2)

lri $AR1,    #0x00b2
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59827 (0xe9b3)

lri $AR1,    #0x00b3
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59828 (0xe9b4)

lri $AR1,    #0x00b4
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59829 (0xe9b5)

lri $AR1,    #0x00b5
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59830 (0xe9b6)

lri $AR1,    #0x00b6
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59831 (0xe9b7)

lri $AR1,    #0x00b7
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59832 (0xe9b8)

lri $AR1,    #0x00b8
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59833 (0xe9b9)

lri $AR1,    #0x00b9
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59834 (0xe9ba)

lri $AR1,    #0x00ba
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59835 (0xe9bb)

lri $AR1,    #0x00bb
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59836 (0xe9bc)

lri $AR1,    #0x00bc
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59837 (0xe9bd)

lri $AR1,    #0x00bd
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59838 (0xe9be)

lri $AR1,    #0x00be
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59839 (0xe9bf)

lri $AR1,    #0x00bf
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59840 (0xe9c0)

lri $AR1,    #0x00c0
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59841 (0xe9c1)

lri $AR1,    #0x00c1
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59842 (0xe9c2)

lri $AR1,    #0x00c2
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59843 (0xe9c3)

lri $AR1,    #0x00c3
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59844 (0xe9c4)

lri $AR1,    #0x00c4
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59845 (0xe9c5)

lri $AR1,    #0x00c5
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59846 (0xe9c6)

lri $AR1,    #0x00c6
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59847 (0xe9c7)

lri $AR1,    #0x00c7
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59848 (0xe9c8)

lri $AR1,    #0x00c8
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59849 (0xe9c9)

lri $AR1,    #0x00c9
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59850 (0xe9ca)

lri $AR1,    #0x00ca
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59851 (0xe9cb)

lri $AR1,    #0x00cb
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59852 (0xe9cc)

lri $AR1,    #0x00cc
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59853 (0xe9cd)

lri $AR1,    #0x00cd
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59854 (0xe9ce)

lri $AR1,    #0x00ce
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59855 (0xe9cf)

lri $AR1,    #0x00cf
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59856 (0xe9d0)

lri $AR1,    #0x00d0
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59857 (0xe9d1)

lri $AR1,    #0x00d1
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59858 (0xe9d2)

lri $AR1,    #0x00d2
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59859 (0xe9d3)

lri $AR1,    #0x00d3
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59860 (0xe9d4)

lri $AR1,    #0x00d4
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59861 (0xe9d5)

lri $AR1,    #0x00d5
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59862 (0xe9d6)

lri $AR1,    #0x00d6
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59863 (0xe9d7)

lri $AR1,    #0x00d7
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59864 (0xe9d8)

lri $AR1,    #0x00d8
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59865 (0xe9d9)

lri $AR1,    #0x00d9
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59866 (0xe9da)

lri $AR1,    #0x00da
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59867 (0xe9db)

lri $AR1,    #0x00db
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59868 (0xe9dc)

lri $AR1,    #0x00dc
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59869 (0xe9dd)

lri $AR1,    #0x00dd
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59870 (0xe9de)

lri $AR1,    #0x00de
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59871 (0xe9df)

lri $AR1,    #0x00df
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59872 (0xe9e0)

lri $AR1,    #0x00e0
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59873 (0xe9e1)

lri $AR1,    #0x00e1
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59874 (0xe9e2)

lri $AR1,    #0x00e2
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59875 (0xe9e3)

lri $AR1,    #0x00e3
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59876 (0xe9e4)

lri $AR1,    #0x00e4
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59877 (0xe9e5)

lri $AR1,    #0x00e5
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59878 (0xe9e6)

lri $AR1,    #0x00e6
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59879 (0xe9e7)

lri $AR1,    #0x00e7
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59880 (0xe9e8)

lri $AR1,    #0x00e8
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59881 (0xe9e9)

lri $AR1,    #0x00e9
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59882 (0xe9ea)

lri $AR1,    #0x00ea
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59883 (0xe9eb)

lri $AR1,    #0x00eb
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59884 (0xe9ec)

lri $AR1,    #0x00ec
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59885 (0xe9ed)

lri $AR1,    #0x00ed
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59886 (0xe9ee)

lri $AR1,    #0x00ee
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59887 (0xe9ef)

lri $AR1,    #0x00ef
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59888 (0xe9f0)

lri $AR1,    #0x00f0
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59889 (0xe9f1)

lri $AR1,    #0x00f1
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59890 (0xe9f2)

lri $AR1,    #0x00f2
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59891 (0xe9f3)

lri $AR1,    #0x00f3
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59892 (0xe9f4)

lri $AR1,    #0x00f4
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59893 (0xe9f5)

lri $AR1,    #0x00f5
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59894 (0xe9f6)

lri $AR1,    #0x00f6
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59895 (0xe9f7)

lri $AR1,    #0x00f7
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59896 (0xe9f8)

lri $AR1,    #0x00f8
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59897 (0xe9f9)

lri $AR1,    #0x00f9
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59898 (0xe9fa)

lri $AR1,    #0x00fa
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59899 (0xe9fb)

lri $AR1,    #0x00fb
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59900 (0xe9fc)

lri $AR1,    #0x00fc
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59901 (0xe9fd)

lri $AR1,    #0x00fd
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59902 (0xe9fe)

lri $AR1,    #0x00fe
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59903 (0xe9ff)

lri $AR1,    #0x00ff
lri $IX1,    #0x0000
lri $WR1,    #0x00e9
cw 0x5
call send_back  ; 59904 (0xea00)

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