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

lri $AR1,    #0x4000
lri $IX1,    #0xae80
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44673 (0xae81)

lri $AR1,    #0x4000
lri $IX1,    #0xae81
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44674 (0xae82)

lri $AR1,    #0x4000
lri $IX1,    #0xae82
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44675 (0xae83)

lri $AR1,    #0x4000
lri $IX1,    #0xae83
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44676 (0xae84)

lri $AR1,    #0x4000
lri $IX1,    #0xae84
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44677 (0xae85)

lri $AR1,    #0x4000
lri $IX1,    #0xae85
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44678 (0xae86)

lri $AR1,    #0x4000
lri $IX1,    #0xae86
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44679 (0xae87)

lri $AR1,    #0x4000
lri $IX1,    #0xae87
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44680 (0xae88)

lri $AR1,    #0x4000
lri $IX1,    #0xae88
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44681 (0xae89)

lri $AR1,    #0x4000
lri $IX1,    #0xae89
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44682 (0xae8a)

lri $AR1,    #0x4000
lri $IX1,    #0xae8a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44683 (0xae8b)

lri $AR1,    #0x4000
lri $IX1,    #0xae8b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44684 (0xae8c)

lri $AR1,    #0x4000
lri $IX1,    #0xae8c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44685 (0xae8d)

lri $AR1,    #0x4000
lri $IX1,    #0xae8d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44686 (0xae8e)

lri $AR1,    #0x4000
lri $IX1,    #0xae8e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44687 (0xae8f)

lri $AR1,    #0x4000
lri $IX1,    #0xae8f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44688 (0xae90)

lri $AR1,    #0x4000
lri $IX1,    #0xae90
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44689 (0xae91)

lri $AR1,    #0x4000
lri $IX1,    #0xae91
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44690 (0xae92)

lri $AR1,    #0x4000
lri $IX1,    #0xae92
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44691 (0xae93)

lri $AR1,    #0x4000
lri $IX1,    #0xae93
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44692 (0xae94)

lri $AR1,    #0x4000
lri $IX1,    #0xae94
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44693 (0xae95)

lri $AR1,    #0x4000
lri $IX1,    #0xae95
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44694 (0xae96)

lri $AR1,    #0x4000
lri $IX1,    #0xae96
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44695 (0xae97)

lri $AR1,    #0x4000
lri $IX1,    #0xae97
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44696 (0xae98)

lri $AR1,    #0x4000
lri $IX1,    #0xae98
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44697 (0xae99)

lri $AR1,    #0x4000
lri $IX1,    #0xae99
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44698 (0xae9a)

lri $AR1,    #0x4000
lri $IX1,    #0xae9a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44699 (0xae9b)

lri $AR1,    #0x4000
lri $IX1,    #0xae9b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44700 (0xae9c)

lri $AR1,    #0x4000
lri $IX1,    #0xae9c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44701 (0xae9d)

lri $AR1,    #0x4000
lri $IX1,    #0xae9d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44702 (0xae9e)

lri $AR1,    #0x4000
lri $IX1,    #0xae9e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44703 (0xae9f)

lri $AR1,    #0x4000
lri $IX1,    #0xae9f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44704 (0xaea0)

lri $AR1,    #0x4000
lri $IX1,    #0xaea0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44705 (0xaea1)

lri $AR1,    #0x4000
lri $IX1,    #0xaea1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44706 (0xaea2)

lri $AR1,    #0x4000
lri $IX1,    #0xaea2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44707 (0xaea3)

lri $AR1,    #0x4000
lri $IX1,    #0xaea3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44708 (0xaea4)

lri $AR1,    #0x4000
lri $IX1,    #0xaea4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44709 (0xaea5)

lri $AR1,    #0x4000
lri $IX1,    #0xaea5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44710 (0xaea6)

lri $AR1,    #0x4000
lri $IX1,    #0xaea6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44711 (0xaea7)

lri $AR1,    #0x4000
lri $IX1,    #0xaea7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44712 (0xaea8)

lri $AR1,    #0x4000
lri $IX1,    #0xaea8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44713 (0xaea9)

lri $AR1,    #0x4000
lri $IX1,    #0xaea9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44714 (0xaeaa)

lri $AR1,    #0x4000
lri $IX1,    #0xaeaa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44715 (0xaeab)

lri $AR1,    #0x4000
lri $IX1,    #0xaeab
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44716 (0xaeac)

lri $AR1,    #0x4000
lri $IX1,    #0xaeac
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44717 (0xaead)

lri $AR1,    #0x4000
lri $IX1,    #0xaead
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44718 (0xaeae)

lri $AR1,    #0x4000
lri $IX1,    #0xaeae
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44719 (0xaeaf)

lri $AR1,    #0x4000
lri $IX1,    #0xaeaf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44720 (0xaeb0)

lri $AR1,    #0x4000
lri $IX1,    #0xaeb0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44721 (0xaeb1)

lri $AR1,    #0x4000
lri $IX1,    #0xaeb1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44722 (0xaeb2)

lri $AR1,    #0x4000
lri $IX1,    #0xaeb2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44723 (0xaeb3)

lri $AR1,    #0x4000
lri $IX1,    #0xaeb3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44724 (0xaeb4)

lri $AR1,    #0x4000
lri $IX1,    #0xaeb4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44725 (0xaeb5)

lri $AR1,    #0x4000
lri $IX1,    #0xaeb5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44726 (0xaeb6)

lri $AR1,    #0x4000
lri $IX1,    #0xaeb6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44727 (0xaeb7)

lri $AR1,    #0x4000
lri $IX1,    #0xaeb7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44728 (0xaeb8)

lri $AR1,    #0x4000
lri $IX1,    #0xaeb8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44729 (0xaeb9)

lri $AR1,    #0x4000
lri $IX1,    #0xaeb9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44730 (0xaeba)

lri $AR1,    #0x4000
lri $IX1,    #0xaeba
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44731 (0xaebb)

lri $AR1,    #0x4000
lri $IX1,    #0xaebb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44732 (0xaebc)

lri $AR1,    #0x4000
lri $IX1,    #0xaebc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44733 (0xaebd)

lri $AR1,    #0x4000
lri $IX1,    #0xaebd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44734 (0xaebe)

lri $AR1,    #0x4000
lri $IX1,    #0xaebe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44735 (0xaebf)

lri $AR1,    #0x4000
lri $IX1,    #0xaebf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44736 (0xaec0)

lri $AR1,    #0x4000
lri $IX1,    #0xaec0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44737 (0xaec1)

lri $AR1,    #0x4000
lri $IX1,    #0xaec1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44738 (0xaec2)

lri $AR1,    #0x4000
lri $IX1,    #0xaec2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44739 (0xaec3)

lri $AR1,    #0x4000
lri $IX1,    #0xaec3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44740 (0xaec4)

lri $AR1,    #0x4000
lri $IX1,    #0xaec4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44741 (0xaec5)

lri $AR1,    #0x4000
lri $IX1,    #0xaec5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44742 (0xaec6)

lri $AR1,    #0x4000
lri $IX1,    #0xaec6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44743 (0xaec7)

lri $AR1,    #0x4000
lri $IX1,    #0xaec7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44744 (0xaec8)

lri $AR1,    #0x4000
lri $IX1,    #0xaec8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44745 (0xaec9)

lri $AR1,    #0x4000
lri $IX1,    #0xaec9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44746 (0xaeca)

lri $AR1,    #0x4000
lri $IX1,    #0xaeca
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44747 (0xaecb)

lri $AR1,    #0x4000
lri $IX1,    #0xaecb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44748 (0xaecc)

lri $AR1,    #0x4000
lri $IX1,    #0xaecc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44749 (0xaecd)

lri $AR1,    #0x4000
lri $IX1,    #0xaecd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44750 (0xaece)

lri $AR1,    #0x4000
lri $IX1,    #0xaece
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44751 (0xaecf)

lri $AR1,    #0x4000
lri $IX1,    #0xaecf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44752 (0xaed0)

lri $AR1,    #0x4000
lri $IX1,    #0xaed0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44753 (0xaed1)

lri $AR1,    #0x4000
lri $IX1,    #0xaed1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44754 (0xaed2)

lri $AR1,    #0x4000
lri $IX1,    #0xaed2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44755 (0xaed3)

lri $AR1,    #0x4000
lri $IX1,    #0xaed3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44756 (0xaed4)

lri $AR1,    #0x4000
lri $IX1,    #0xaed4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44757 (0xaed5)

lri $AR1,    #0x4000
lri $IX1,    #0xaed5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44758 (0xaed6)

lri $AR1,    #0x4000
lri $IX1,    #0xaed6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44759 (0xaed7)

lri $AR1,    #0x4000
lri $IX1,    #0xaed7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44760 (0xaed8)

lri $AR1,    #0x4000
lri $IX1,    #0xaed8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44761 (0xaed9)

lri $AR1,    #0x4000
lri $IX1,    #0xaed9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44762 (0xaeda)

lri $AR1,    #0x4000
lri $IX1,    #0xaeda
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44763 (0xaedb)

lri $AR1,    #0x4000
lri $IX1,    #0xaedb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44764 (0xaedc)

lri $AR1,    #0x4000
lri $IX1,    #0xaedc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44765 (0xaedd)

lri $AR1,    #0x4000
lri $IX1,    #0xaedd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44766 (0xaede)

lri $AR1,    #0x4000
lri $IX1,    #0xaede
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44767 (0xaedf)

lri $AR1,    #0x4000
lri $IX1,    #0xaedf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44768 (0xaee0)

lri $AR1,    #0x4000
lri $IX1,    #0xaee0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44769 (0xaee1)

lri $AR1,    #0x4000
lri $IX1,    #0xaee1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44770 (0xaee2)

lri $AR1,    #0x4000
lri $IX1,    #0xaee2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44771 (0xaee3)

lri $AR1,    #0x4000
lri $IX1,    #0xaee3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44772 (0xaee4)

lri $AR1,    #0x4000
lri $IX1,    #0xaee4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44773 (0xaee5)

lri $AR1,    #0x4000
lri $IX1,    #0xaee5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44774 (0xaee6)

lri $AR1,    #0x4000
lri $IX1,    #0xaee6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44775 (0xaee7)

lri $AR1,    #0x4000
lri $IX1,    #0xaee7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44776 (0xaee8)

lri $AR1,    #0x4000
lri $IX1,    #0xaee8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44777 (0xaee9)

lri $AR1,    #0x4000
lri $IX1,    #0xaee9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44778 (0xaeea)

lri $AR1,    #0x4000
lri $IX1,    #0xaeea
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44779 (0xaeeb)

lri $AR1,    #0x4000
lri $IX1,    #0xaeeb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44780 (0xaeec)

lri $AR1,    #0x4000
lri $IX1,    #0xaeec
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44781 (0xaeed)

lri $AR1,    #0x4000
lri $IX1,    #0xaeed
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44782 (0xaeee)

lri $AR1,    #0x4000
lri $IX1,    #0xaeee
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44783 (0xaeef)

lri $AR1,    #0x4000
lri $IX1,    #0xaeef
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44784 (0xaef0)

lri $AR1,    #0x4000
lri $IX1,    #0xaef0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44785 (0xaef1)

lri $AR1,    #0x4000
lri $IX1,    #0xaef1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44786 (0xaef2)

lri $AR1,    #0x4000
lri $IX1,    #0xaef2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44787 (0xaef3)

lri $AR1,    #0x4000
lri $IX1,    #0xaef3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44788 (0xaef4)

lri $AR1,    #0x4000
lri $IX1,    #0xaef4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44789 (0xaef5)

lri $AR1,    #0x4000
lri $IX1,    #0xaef5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44790 (0xaef6)

lri $AR1,    #0x4000
lri $IX1,    #0xaef6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44791 (0xaef7)

lri $AR1,    #0x4000
lri $IX1,    #0xaef7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44792 (0xaef8)

lri $AR1,    #0x4000
lri $IX1,    #0xaef8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44793 (0xaef9)

lri $AR1,    #0x4000
lri $IX1,    #0xaef9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44794 (0xaefa)

lri $AR1,    #0x4000
lri $IX1,    #0xaefa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44795 (0xaefb)

lri $AR1,    #0x4000
lri $IX1,    #0xaefb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44796 (0xaefc)

lri $AR1,    #0x4000
lri $IX1,    #0xaefc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44797 (0xaefd)

lri $AR1,    #0x4000
lri $IX1,    #0xaefd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44798 (0xaefe)

lri $AR1,    #0x4000
lri $IX1,    #0xaefe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44799 (0xaeff)

lri $AR1,    #0x4000
lri $IX1,    #0xaeff
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44800 (0xaf00)

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

