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

lri $AR1,    #0x4000
lri $IX1,    #0xa700
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42753 (0xa701)

lri $AR1,    #0x4000
lri $IX1,    #0xa701
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42754 (0xa702)

lri $AR1,    #0x4000
lri $IX1,    #0xa702
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42755 (0xa703)

lri $AR1,    #0x4000
lri $IX1,    #0xa703
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42756 (0xa704)

lri $AR1,    #0x4000
lri $IX1,    #0xa704
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42757 (0xa705)

lri $AR1,    #0x4000
lri $IX1,    #0xa705
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42758 (0xa706)

lri $AR1,    #0x4000
lri $IX1,    #0xa706
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42759 (0xa707)

lri $AR1,    #0x4000
lri $IX1,    #0xa707
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42760 (0xa708)

lri $AR1,    #0x4000
lri $IX1,    #0xa708
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42761 (0xa709)

lri $AR1,    #0x4000
lri $IX1,    #0xa709
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42762 (0xa70a)

lri $AR1,    #0x4000
lri $IX1,    #0xa70a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42763 (0xa70b)

lri $AR1,    #0x4000
lri $IX1,    #0xa70b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42764 (0xa70c)

lri $AR1,    #0x4000
lri $IX1,    #0xa70c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42765 (0xa70d)

lri $AR1,    #0x4000
lri $IX1,    #0xa70d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42766 (0xa70e)

lri $AR1,    #0x4000
lri $IX1,    #0xa70e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42767 (0xa70f)

lri $AR1,    #0x4000
lri $IX1,    #0xa70f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42768 (0xa710)

lri $AR1,    #0x4000
lri $IX1,    #0xa710
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42769 (0xa711)

lri $AR1,    #0x4000
lri $IX1,    #0xa711
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42770 (0xa712)

lri $AR1,    #0x4000
lri $IX1,    #0xa712
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42771 (0xa713)

lri $AR1,    #0x4000
lri $IX1,    #0xa713
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42772 (0xa714)

lri $AR1,    #0x4000
lri $IX1,    #0xa714
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42773 (0xa715)

lri $AR1,    #0x4000
lri $IX1,    #0xa715
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42774 (0xa716)

lri $AR1,    #0x4000
lri $IX1,    #0xa716
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42775 (0xa717)

lri $AR1,    #0x4000
lri $IX1,    #0xa717
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42776 (0xa718)

lri $AR1,    #0x4000
lri $IX1,    #0xa718
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42777 (0xa719)

lri $AR1,    #0x4000
lri $IX1,    #0xa719
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42778 (0xa71a)

lri $AR1,    #0x4000
lri $IX1,    #0xa71a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42779 (0xa71b)

lri $AR1,    #0x4000
lri $IX1,    #0xa71b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42780 (0xa71c)

lri $AR1,    #0x4000
lri $IX1,    #0xa71c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42781 (0xa71d)

lri $AR1,    #0x4000
lri $IX1,    #0xa71d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42782 (0xa71e)

lri $AR1,    #0x4000
lri $IX1,    #0xa71e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42783 (0xa71f)

lri $AR1,    #0x4000
lri $IX1,    #0xa71f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42784 (0xa720)

lri $AR1,    #0x4000
lri $IX1,    #0xa720
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42785 (0xa721)

lri $AR1,    #0x4000
lri $IX1,    #0xa721
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42786 (0xa722)

lri $AR1,    #0x4000
lri $IX1,    #0xa722
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42787 (0xa723)

lri $AR1,    #0x4000
lri $IX1,    #0xa723
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42788 (0xa724)

lri $AR1,    #0x4000
lri $IX1,    #0xa724
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42789 (0xa725)

lri $AR1,    #0x4000
lri $IX1,    #0xa725
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42790 (0xa726)

lri $AR1,    #0x4000
lri $IX1,    #0xa726
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42791 (0xa727)

lri $AR1,    #0x4000
lri $IX1,    #0xa727
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42792 (0xa728)

lri $AR1,    #0x4000
lri $IX1,    #0xa728
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42793 (0xa729)

lri $AR1,    #0x4000
lri $IX1,    #0xa729
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42794 (0xa72a)

lri $AR1,    #0x4000
lri $IX1,    #0xa72a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42795 (0xa72b)

lri $AR1,    #0x4000
lri $IX1,    #0xa72b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42796 (0xa72c)

lri $AR1,    #0x4000
lri $IX1,    #0xa72c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42797 (0xa72d)

lri $AR1,    #0x4000
lri $IX1,    #0xa72d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42798 (0xa72e)

lri $AR1,    #0x4000
lri $IX1,    #0xa72e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42799 (0xa72f)

lri $AR1,    #0x4000
lri $IX1,    #0xa72f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42800 (0xa730)

lri $AR1,    #0x4000
lri $IX1,    #0xa730
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42801 (0xa731)

lri $AR1,    #0x4000
lri $IX1,    #0xa731
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42802 (0xa732)

lri $AR1,    #0x4000
lri $IX1,    #0xa732
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42803 (0xa733)

lri $AR1,    #0x4000
lri $IX1,    #0xa733
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42804 (0xa734)

lri $AR1,    #0x4000
lri $IX1,    #0xa734
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42805 (0xa735)

lri $AR1,    #0x4000
lri $IX1,    #0xa735
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42806 (0xa736)

lri $AR1,    #0x4000
lri $IX1,    #0xa736
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42807 (0xa737)

lri $AR1,    #0x4000
lri $IX1,    #0xa737
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42808 (0xa738)

lri $AR1,    #0x4000
lri $IX1,    #0xa738
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42809 (0xa739)

lri $AR1,    #0x4000
lri $IX1,    #0xa739
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42810 (0xa73a)

lri $AR1,    #0x4000
lri $IX1,    #0xa73a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42811 (0xa73b)

lri $AR1,    #0x4000
lri $IX1,    #0xa73b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42812 (0xa73c)

lri $AR1,    #0x4000
lri $IX1,    #0xa73c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42813 (0xa73d)

lri $AR1,    #0x4000
lri $IX1,    #0xa73d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42814 (0xa73e)

lri $AR1,    #0x4000
lri $IX1,    #0xa73e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42815 (0xa73f)

lri $AR1,    #0x4000
lri $IX1,    #0xa73f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42816 (0xa740)

lri $AR1,    #0x4000
lri $IX1,    #0xa740
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42817 (0xa741)

lri $AR1,    #0x4000
lri $IX1,    #0xa741
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42818 (0xa742)

lri $AR1,    #0x4000
lri $IX1,    #0xa742
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42819 (0xa743)

lri $AR1,    #0x4000
lri $IX1,    #0xa743
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42820 (0xa744)

lri $AR1,    #0x4000
lri $IX1,    #0xa744
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42821 (0xa745)

lri $AR1,    #0x4000
lri $IX1,    #0xa745
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42822 (0xa746)

lri $AR1,    #0x4000
lri $IX1,    #0xa746
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42823 (0xa747)

lri $AR1,    #0x4000
lri $IX1,    #0xa747
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42824 (0xa748)

lri $AR1,    #0x4000
lri $IX1,    #0xa748
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42825 (0xa749)

lri $AR1,    #0x4000
lri $IX1,    #0xa749
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42826 (0xa74a)

lri $AR1,    #0x4000
lri $IX1,    #0xa74a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42827 (0xa74b)

lri $AR1,    #0x4000
lri $IX1,    #0xa74b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42828 (0xa74c)

lri $AR1,    #0x4000
lri $IX1,    #0xa74c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42829 (0xa74d)

lri $AR1,    #0x4000
lri $IX1,    #0xa74d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42830 (0xa74e)

lri $AR1,    #0x4000
lri $IX1,    #0xa74e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42831 (0xa74f)

lri $AR1,    #0x4000
lri $IX1,    #0xa74f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42832 (0xa750)

lri $AR1,    #0x4000
lri $IX1,    #0xa750
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42833 (0xa751)

lri $AR1,    #0x4000
lri $IX1,    #0xa751
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42834 (0xa752)

lri $AR1,    #0x4000
lri $IX1,    #0xa752
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42835 (0xa753)

lri $AR1,    #0x4000
lri $IX1,    #0xa753
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42836 (0xa754)

lri $AR1,    #0x4000
lri $IX1,    #0xa754
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42837 (0xa755)

lri $AR1,    #0x4000
lri $IX1,    #0xa755
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42838 (0xa756)

lri $AR1,    #0x4000
lri $IX1,    #0xa756
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42839 (0xa757)

lri $AR1,    #0x4000
lri $IX1,    #0xa757
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42840 (0xa758)

lri $AR1,    #0x4000
lri $IX1,    #0xa758
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42841 (0xa759)

lri $AR1,    #0x4000
lri $IX1,    #0xa759
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42842 (0xa75a)

lri $AR1,    #0x4000
lri $IX1,    #0xa75a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42843 (0xa75b)

lri $AR1,    #0x4000
lri $IX1,    #0xa75b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42844 (0xa75c)

lri $AR1,    #0x4000
lri $IX1,    #0xa75c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42845 (0xa75d)

lri $AR1,    #0x4000
lri $IX1,    #0xa75d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42846 (0xa75e)

lri $AR1,    #0x4000
lri $IX1,    #0xa75e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42847 (0xa75f)

lri $AR1,    #0x4000
lri $IX1,    #0xa75f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42848 (0xa760)

lri $AR1,    #0x4000
lri $IX1,    #0xa760
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42849 (0xa761)

lri $AR1,    #0x4000
lri $IX1,    #0xa761
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42850 (0xa762)

lri $AR1,    #0x4000
lri $IX1,    #0xa762
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42851 (0xa763)

lri $AR1,    #0x4000
lri $IX1,    #0xa763
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42852 (0xa764)

lri $AR1,    #0x4000
lri $IX1,    #0xa764
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42853 (0xa765)

lri $AR1,    #0x4000
lri $IX1,    #0xa765
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42854 (0xa766)

lri $AR1,    #0x4000
lri $IX1,    #0xa766
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42855 (0xa767)

lri $AR1,    #0x4000
lri $IX1,    #0xa767
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42856 (0xa768)

lri $AR1,    #0x4000
lri $IX1,    #0xa768
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42857 (0xa769)

lri $AR1,    #0x4000
lri $IX1,    #0xa769
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42858 (0xa76a)

lri $AR1,    #0x4000
lri $IX1,    #0xa76a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42859 (0xa76b)

lri $AR1,    #0x4000
lri $IX1,    #0xa76b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42860 (0xa76c)

lri $AR1,    #0x4000
lri $IX1,    #0xa76c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42861 (0xa76d)

lri $AR1,    #0x4000
lri $IX1,    #0xa76d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42862 (0xa76e)

lri $AR1,    #0x4000
lri $IX1,    #0xa76e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42863 (0xa76f)

lri $AR1,    #0x4000
lri $IX1,    #0xa76f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42864 (0xa770)

lri $AR1,    #0x4000
lri $IX1,    #0xa770
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42865 (0xa771)

lri $AR1,    #0x4000
lri $IX1,    #0xa771
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42866 (0xa772)

lri $AR1,    #0x4000
lri $IX1,    #0xa772
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42867 (0xa773)

lri $AR1,    #0x4000
lri $IX1,    #0xa773
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42868 (0xa774)

lri $AR1,    #0x4000
lri $IX1,    #0xa774
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42869 (0xa775)

lri $AR1,    #0x4000
lri $IX1,    #0xa775
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42870 (0xa776)

lri $AR1,    #0x4000
lri $IX1,    #0xa776
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42871 (0xa777)

lri $AR1,    #0x4000
lri $IX1,    #0xa777
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42872 (0xa778)

lri $AR1,    #0x4000
lri $IX1,    #0xa778
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42873 (0xa779)

lri $AR1,    #0x4000
lri $IX1,    #0xa779
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42874 (0xa77a)

lri $AR1,    #0x4000
lri $IX1,    #0xa77a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42875 (0xa77b)

lri $AR1,    #0x4000
lri $IX1,    #0xa77b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42876 (0xa77c)

lri $AR1,    #0x4000
lri $IX1,    #0xa77c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42877 (0xa77d)

lri $AR1,    #0x4000
lri $IX1,    #0xa77d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42878 (0xa77e)

lri $AR1,    #0x4000
lri $IX1,    #0xa77e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42879 (0xa77f)

lri $AR1,    #0x4000
lri $IX1,    #0xa77f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 42880 (0xa780)

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

