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

lri $AR1,    #0x4000
lri $IX1,    #0xce00
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52737 (0xce01)

lri $AR1,    #0x4000
lri $IX1,    #0xce01
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52738 (0xce02)

lri $AR1,    #0x4000
lri $IX1,    #0xce02
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52739 (0xce03)

lri $AR1,    #0x4000
lri $IX1,    #0xce03
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52740 (0xce04)

lri $AR1,    #0x4000
lri $IX1,    #0xce04
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52741 (0xce05)

lri $AR1,    #0x4000
lri $IX1,    #0xce05
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52742 (0xce06)

lri $AR1,    #0x4000
lri $IX1,    #0xce06
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52743 (0xce07)

lri $AR1,    #0x4000
lri $IX1,    #0xce07
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52744 (0xce08)

lri $AR1,    #0x4000
lri $IX1,    #0xce08
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52745 (0xce09)

lri $AR1,    #0x4000
lri $IX1,    #0xce09
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52746 (0xce0a)

lri $AR1,    #0x4000
lri $IX1,    #0xce0a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52747 (0xce0b)

lri $AR1,    #0x4000
lri $IX1,    #0xce0b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52748 (0xce0c)

lri $AR1,    #0x4000
lri $IX1,    #0xce0c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52749 (0xce0d)

lri $AR1,    #0x4000
lri $IX1,    #0xce0d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52750 (0xce0e)

lri $AR1,    #0x4000
lri $IX1,    #0xce0e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52751 (0xce0f)

lri $AR1,    #0x4000
lri $IX1,    #0xce0f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52752 (0xce10)

lri $AR1,    #0x4000
lri $IX1,    #0xce10
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52753 (0xce11)

lri $AR1,    #0x4000
lri $IX1,    #0xce11
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52754 (0xce12)

lri $AR1,    #0x4000
lri $IX1,    #0xce12
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52755 (0xce13)

lri $AR1,    #0x4000
lri $IX1,    #0xce13
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52756 (0xce14)

lri $AR1,    #0x4000
lri $IX1,    #0xce14
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52757 (0xce15)

lri $AR1,    #0x4000
lri $IX1,    #0xce15
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52758 (0xce16)

lri $AR1,    #0x4000
lri $IX1,    #0xce16
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52759 (0xce17)

lri $AR1,    #0x4000
lri $IX1,    #0xce17
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52760 (0xce18)

lri $AR1,    #0x4000
lri $IX1,    #0xce18
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52761 (0xce19)

lri $AR1,    #0x4000
lri $IX1,    #0xce19
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52762 (0xce1a)

lri $AR1,    #0x4000
lri $IX1,    #0xce1a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52763 (0xce1b)

lri $AR1,    #0x4000
lri $IX1,    #0xce1b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52764 (0xce1c)

lri $AR1,    #0x4000
lri $IX1,    #0xce1c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52765 (0xce1d)

lri $AR1,    #0x4000
lri $IX1,    #0xce1d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52766 (0xce1e)

lri $AR1,    #0x4000
lri $IX1,    #0xce1e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52767 (0xce1f)

lri $AR1,    #0x4000
lri $IX1,    #0xce1f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52768 (0xce20)

lri $AR1,    #0x4000
lri $IX1,    #0xce20
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52769 (0xce21)

lri $AR1,    #0x4000
lri $IX1,    #0xce21
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52770 (0xce22)

lri $AR1,    #0x4000
lri $IX1,    #0xce22
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52771 (0xce23)

lri $AR1,    #0x4000
lri $IX1,    #0xce23
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52772 (0xce24)

lri $AR1,    #0x4000
lri $IX1,    #0xce24
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52773 (0xce25)

lri $AR1,    #0x4000
lri $IX1,    #0xce25
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52774 (0xce26)

lri $AR1,    #0x4000
lri $IX1,    #0xce26
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52775 (0xce27)

lri $AR1,    #0x4000
lri $IX1,    #0xce27
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52776 (0xce28)

lri $AR1,    #0x4000
lri $IX1,    #0xce28
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52777 (0xce29)

lri $AR1,    #0x4000
lri $IX1,    #0xce29
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52778 (0xce2a)

lri $AR1,    #0x4000
lri $IX1,    #0xce2a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52779 (0xce2b)

lri $AR1,    #0x4000
lri $IX1,    #0xce2b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52780 (0xce2c)

lri $AR1,    #0x4000
lri $IX1,    #0xce2c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52781 (0xce2d)

lri $AR1,    #0x4000
lri $IX1,    #0xce2d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52782 (0xce2e)

lri $AR1,    #0x4000
lri $IX1,    #0xce2e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52783 (0xce2f)

lri $AR1,    #0x4000
lri $IX1,    #0xce2f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52784 (0xce30)

lri $AR1,    #0x4000
lri $IX1,    #0xce30
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52785 (0xce31)

lri $AR1,    #0x4000
lri $IX1,    #0xce31
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52786 (0xce32)

lri $AR1,    #0x4000
lri $IX1,    #0xce32
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52787 (0xce33)

lri $AR1,    #0x4000
lri $IX1,    #0xce33
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52788 (0xce34)

lri $AR1,    #0x4000
lri $IX1,    #0xce34
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52789 (0xce35)

lri $AR1,    #0x4000
lri $IX1,    #0xce35
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52790 (0xce36)

lri $AR1,    #0x4000
lri $IX1,    #0xce36
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52791 (0xce37)

lri $AR1,    #0x4000
lri $IX1,    #0xce37
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52792 (0xce38)

lri $AR1,    #0x4000
lri $IX1,    #0xce38
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52793 (0xce39)

lri $AR1,    #0x4000
lri $IX1,    #0xce39
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52794 (0xce3a)

lri $AR1,    #0x4000
lri $IX1,    #0xce3a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52795 (0xce3b)

lri $AR1,    #0x4000
lri $IX1,    #0xce3b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52796 (0xce3c)

lri $AR1,    #0x4000
lri $IX1,    #0xce3c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52797 (0xce3d)

lri $AR1,    #0x4000
lri $IX1,    #0xce3d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52798 (0xce3e)

lri $AR1,    #0x4000
lri $IX1,    #0xce3e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52799 (0xce3f)

lri $AR1,    #0x4000
lri $IX1,    #0xce3f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52800 (0xce40)

lri $AR1,    #0x4000
lri $IX1,    #0xce40
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52801 (0xce41)

lri $AR1,    #0x4000
lri $IX1,    #0xce41
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52802 (0xce42)

lri $AR1,    #0x4000
lri $IX1,    #0xce42
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52803 (0xce43)

lri $AR1,    #0x4000
lri $IX1,    #0xce43
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52804 (0xce44)

lri $AR1,    #0x4000
lri $IX1,    #0xce44
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52805 (0xce45)

lri $AR1,    #0x4000
lri $IX1,    #0xce45
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52806 (0xce46)

lri $AR1,    #0x4000
lri $IX1,    #0xce46
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52807 (0xce47)

lri $AR1,    #0x4000
lri $IX1,    #0xce47
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52808 (0xce48)

lri $AR1,    #0x4000
lri $IX1,    #0xce48
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52809 (0xce49)

lri $AR1,    #0x4000
lri $IX1,    #0xce49
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52810 (0xce4a)

lri $AR1,    #0x4000
lri $IX1,    #0xce4a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52811 (0xce4b)

lri $AR1,    #0x4000
lri $IX1,    #0xce4b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52812 (0xce4c)

lri $AR1,    #0x4000
lri $IX1,    #0xce4c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52813 (0xce4d)

lri $AR1,    #0x4000
lri $IX1,    #0xce4d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52814 (0xce4e)

lri $AR1,    #0x4000
lri $IX1,    #0xce4e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52815 (0xce4f)

lri $AR1,    #0x4000
lri $IX1,    #0xce4f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52816 (0xce50)

lri $AR1,    #0x4000
lri $IX1,    #0xce50
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52817 (0xce51)

lri $AR1,    #0x4000
lri $IX1,    #0xce51
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52818 (0xce52)

lri $AR1,    #0x4000
lri $IX1,    #0xce52
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52819 (0xce53)

lri $AR1,    #0x4000
lri $IX1,    #0xce53
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52820 (0xce54)

lri $AR1,    #0x4000
lri $IX1,    #0xce54
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52821 (0xce55)

lri $AR1,    #0x4000
lri $IX1,    #0xce55
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52822 (0xce56)

lri $AR1,    #0x4000
lri $IX1,    #0xce56
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52823 (0xce57)

lri $AR1,    #0x4000
lri $IX1,    #0xce57
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52824 (0xce58)

lri $AR1,    #0x4000
lri $IX1,    #0xce58
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52825 (0xce59)

lri $AR1,    #0x4000
lri $IX1,    #0xce59
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52826 (0xce5a)

lri $AR1,    #0x4000
lri $IX1,    #0xce5a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52827 (0xce5b)

lri $AR1,    #0x4000
lri $IX1,    #0xce5b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52828 (0xce5c)

lri $AR1,    #0x4000
lri $IX1,    #0xce5c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52829 (0xce5d)

lri $AR1,    #0x4000
lri $IX1,    #0xce5d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52830 (0xce5e)

lri $AR1,    #0x4000
lri $IX1,    #0xce5e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52831 (0xce5f)

lri $AR1,    #0x4000
lri $IX1,    #0xce5f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52832 (0xce60)

lri $AR1,    #0x4000
lri $IX1,    #0xce60
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52833 (0xce61)

lri $AR1,    #0x4000
lri $IX1,    #0xce61
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52834 (0xce62)

lri $AR1,    #0x4000
lri $IX1,    #0xce62
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52835 (0xce63)

lri $AR1,    #0x4000
lri $IX1,    #0xce63
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52836 (0xce64)

lri $AR1,    #0x4000
lri $IX1,    #0xce64
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52837 (0xce65)

lri $AR1,    #0x4000
lri $IX1,    #0xce65
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52838 (0xce66)

lri $AR1,    #0x4000
lri $IX1,    #0xce66
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52839 (0xce67)

lri $AR1,    #0x4000
lri $IX1,    #0xce67
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52840 (0xce68)

lri $AR1,    #0x4000
lri $IX1,    #0xce68
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52841 (0xce69)

lri $AR1,    #0x4000
lri $IX1,    #0xce69
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52842 (0xce6a)

lri $AR1,    #0x4000
lri $IX1,    #0xce6a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52843 (0xce6b)

lri $AR1,    #0x4000
lri $IX1,    #0xce6b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52844 (0xce6c)

lri $AR1,    #0x4000
lri $IX1,    #0xce6c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52845 (0xce6d)

lri $AR1,    #0x4000
lri $IX1,    #0xce6d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52846 (0xce6e)

lri $AR1,    #0x4000
lri $IX1,    #0xce6e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52847 (0xce6f)

lri $AR1,    #0x4000
lri $IX1,    #0xce6f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52848 (0xce70)

lri $AR1,    #0x4000
lri $IX1,    #0xce70
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52849 (0xce71)

lri $AR1,    #0x4000
lri $IX1,    #0xce71
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52850 (0xce72)

lri $AR1,    #0x4000
lri $IX1,    #0xce72
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52851 (0xce73)

lri $AR1,    #0x4000
lri $IX1,    #0xce73
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52852 (0xce74)

lri $AR1,    #0x4000
lri $IX1,    #0xce74
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52853 (0xce75)

lri $AR1,    #0x4000
lri $IX1,    #0xce75
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52854 (0xce76)

lri $AR1,    #0x4000
lri $IX1,    #0xce76
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52855 (0xce77)

lri $AR1,    #0x4000
lri $IX1,    #0xce77
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52856 (0xce78)

lri $AR1,    #0x4000
lri $IX1,    #0xce78
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52857 (0xce79)

lri $AR1,    #0x4000
lri $IX1,    #0xce79
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52858 (0xce7a)

lri $AR1,    #0x4000
lri $IX1,    #0xce7a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52859 (0xce7b)

lri $AR1,    #0x4000
lri $IX1,    #0xce7b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52860 (0xce7c)

lri $AR1,    #0x4000
lri $IX1,    #0xce7c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52861 (0xce7d)

lri $AR1,    #0x4000
lri $IX1,    #0xce7d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52862 (0xce7e)

lri $AR1,    #0x4000
lri $IX1,    #0xce7e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52863 (0xce7f)

lri $AR1,    #0x4000
lri $IX1,    #0xce7f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 52864 (0xce80)

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

