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

lri $AR1,    #0x9f00
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40705 (0x9f01)

lri $AR1,    #0x9f01
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40706 (0x9f02)

lri $AR1,    #0x9f02
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40707 (0x9f03)

lri $AR1,    #0x9f03
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40708 (0x9f04)

lri $AR1,    #0x9f04
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40709 (0x9f05)

lri $AR1,    #0x9f05
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40710 (0x9f06)

lri $AR1,    #0x9f06
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40711 (0x9f07)

lri $AR1,    #0x9f07
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40712 (0x9f08)

lri $AR1,    #0x9f08
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40713 (0x9f09)

lri $AR1,    #0x9f09
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40714 (0x9f0a)

lri $AR1,    #0x9f0a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40715 (0x9f0b)

lri $AR1,    #0x9f0b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40716 (0x9f0c)

lri $AR1,    #0x9f0c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40717 (0x9f0d)

lri $AR1,    #0x9f0d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40718 (0x9f0e)

lri $AR1,    #0x9f0e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40719 (0x9f0f)

lri $AR1,    #0x9f0f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40720 (0x9f10)

lri $AR1,    #0x9f10
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40721 (0x9f11)

lri $AR1,    #0x9f11
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40722 (0x9f12)

lri $AR1,    #0x9f12
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40723 (0x9f13)

lri $AR1,    #0x9f13
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40724 (0x9f14)

lri $AR1,    #0x9f14
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40725 (0x9f15)

lri $AR1,    #0x9f15
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40726 (0x9f16)

lri $AR1,    #0x9f16
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40727 (0x9f17)

lri $AR1,    #0x9f17
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40728 (0x9f18)

lri $AR1,    #0x9f18
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40729 (0x9f19)

lri $AR1,    #0x9f19
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40730 (0x9f1a)

lri $AR1,    #0x9f1a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40731 (0x9f1b)

lri $AR1,    #0x9f1b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40732 (0x9f1c)

lri $AR1,    #0x9f1c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40733 (0x9f1d)

lri $AR1,    #0x9f1d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40734 (0x9f1e)

lri $AR1,    #0x9f1e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40735 (0x9f1f)

lri $AR1,    #0x9f1f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40736 (0x9f20)

lri $AR1,    #0x9f20
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40737 (0x9f21)

lri $AR1,    #0x9f21
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40738 (0x9f22)

lri $AR1,    #0x9f22
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40739 (0x9f23)

lri $AR1,    #0x9f23
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40740 (0x9f24)

lri $AR1,    #0x9f24
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40741 (0x9f25)

lri $AR1,    #0x9f25
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40742 (0x9f26)

lri $AR1,    #0x9f26
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40743 (0x9f27)

lri $AR1,    #0x9f27
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40744 (0x9f28)

lri $AR1,    #0x9f28
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40745 (0x9f29)

lri $AR1,    #0x9f29
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40746 (0x9f2a)

lri $AR1,    #0x9f2a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40747 (0x9f2b)

lri $AR1,    #0x9f2b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40748 (0x9f2c)

lri $AR1,    #0x9f2c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40749 (0x9f2d)

lri $AR1,    #0x9f2d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40750 (0x9f2e)

lri $AR1,    #0x9f2e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40751 (0x9f2f)

lri $AR1,    #0x9f2f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40752 (0x9f30)

lri $AR1,    #0x9f30
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40753 (0x9f31)

lri $AR1,    #0x9f31
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40754 (0x9f32)

lri $AR1,    #0x9f32
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40755 (0x9f33)

lri $AR1,    #0x9f33
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40756 (0x9f34)

lri $AR1,    #0x9f34
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40757 (0x9f35)

lri $AR1,    #0x9f35
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40758 (0x9f36)

lri $AR1,    #0x9f36
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40759 (0x9f37)

lri $AR1,    #0x9f37
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40760 (0x9f38)

lri $AR1,    #0x9f38
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40761 (0x9f39)

lri $AR1,    #0x9f39
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40762 (0x9f3a)

lri $AR1,    #0x9f3a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40763 (0x9f3b)

lri $AR1,    #0x9f3b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40764 (0x9f3c)

lri $AR1,    #0x9f3c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40765 (0x9f3d)

lri $AR1,    #0x9f3d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40766 (0x9f3e)

lri $AR1,    #0x9f3e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40767 (0x9f3f)

lri $AR1,    #0x9f3f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40768 (0x9f40)

lri $AR1,    #0x9f40
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40769 (0x9f41)

lri $AR1,    #0x9f41
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40770 (0x9f42)

lri $AR1,    #0x9f42
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40771 (0x9f43)

lri $AR1,    #0x9f43
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40772 (0x9f44)

lri $AR1,    #0x9f44
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40773 (0x9f45)

lri $AR1,    #0x9f45
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40774 (0x9f46)

lri $AR1,    #0x9f46
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40775 (0x9f47)

lri $AR1,    #0x9f47
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40776 (0x9f48)

lri $AR1,    #0x9f48
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40777 (0x9f49)

lri $AR1,    #0x9f49
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40778 (0x9f4a)

lri $AR1,    #0x9f4a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40779 (0x9f4b)

lri $AR1,    #0x9f4b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40780 (0x9f4c)

lri $AR1,    #0x9f4c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40781 (0x9f4d)

lri $AR1,    #0x9f4d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40782 (0x9f4e)

lri $AR1,    #0x9f4e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40783 (0x9f4f)

lri $AR1,    #0x9f4f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40784 (0x9f50)

lri $AR1,    #0x9f50
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40785 (0x9f51)

lri $AR1,    #0x9f51
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40786 (0x9f52)

lri $AR1,    #0x9f52
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40787 (0x9f53)

lri $AR1,    #0x9f53
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40788 (0x9f54)

lri $AR1,    #0x9f54
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40789 (0x9f55)

lri $AR1,    #0x9f55
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40790 (0x9f56)

lri $AR1,    #0x9f56
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40791 (0x9f57)

lri $AR1,    #0x9f57
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40792 (0x9f58)

lri $AR1,    #0x9f58
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40793 (0x9f59)

lri $AR1,    #0x9f59
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40794 (0x9f5a)

lri $AR1,    #0x9f5a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40795 (0x9f5b)

lri $AR1,    #0x9f5b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40796 (0x9f5c)

lri $AR1,    #0x9f5c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40797 (0x9f5d)

lri $AR1,    #0x9f5d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40798 (0x9f5e)

lri $AR1,    #0x9f5e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40799 (0x9f5f)

lri $AR1,    #0x9f5f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40800 (0x9f60)

lri $AR1,    #0x9f60
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40801 (0x9f61)

lri $AR1,    #0x9f61
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40802 (0x9f62)

lri $AR1,    #0x9f62
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40803 (0x9f63)

lri $AR1,    #0x9f63
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40804 (0x9f64)

lri $AR1,    #0x9f64
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40805 (0x9f65)

lri $AR1,    #0x9f65
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40806 (0x9f66)

lri $AR1,    #0x9f66
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40807 (0x9f67)

lri $AR1,    #0x9f67
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40808 (0x9f68)

lri $AR1,    #0x9f68
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40809 (0x9f69)

lri $AR1,    #0x9f69
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40810 (0x9f6a)

lri $AR1,    #0x9f6a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40811 (0x9f6b)

lri $AR1,    #0x9f6b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40812 (0x9f6c)

lri $AR1,    #0x9f6c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40813 (0x9f6d)

lri $AR1,    #0x9f6d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40814 (0x9f6e)

lri $AR1,    #0x9f6e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40815 (0x9f6f)

lri $AR1,    #0x9f6f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40816 (0x9f70)

lri $AR1,    #0x9f70
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40817 (0x9f71)

lri $AR1,    #0x9f71
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40818 (0x9f72)

lri $AR1,    #0x9f72
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40819 (0x9f73)

lri $AR1,    #0x9f73
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40820 (0x9f74)

lri $AR1,    #0x9f74
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40821 (0x9f75)

lri $AR1,    #0x9f75
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40822 (0x9f76)

lri $AR1,    #0x9f76
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40823 (0x9f77)

lri $AR1,    #0x9f77
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40824 (0x9f78)

lri $AR1,    #0x9f78
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40825 (0x9f79)

lri $AR1,    #0x9f79
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40826 (0x9f7a)

lri $AR1,    #0x9f7a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40827 (0x9f7b)

lri $AR1,    #0x9f7b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40828 (0x9f7c)

lri $AR1,    #0x9f7c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40829 (0x9f7d)

lri $AR1,    #0x9f7d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40830 (0x9f7e)

lri $AR1,    #0x9f7e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40831 (0x9f7f)

lri $AR1,    #0x9f7f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 40832 (0x9f80)

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

