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

lri $AR1,    #0x7f80
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32641 (0x7f81)

lri $AR1,    #0x7f81
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32642 (0x7f82)

lri $AR1,    #0x7f82
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32643 (0x7f83)

lri $AR1,    #0x7f83
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32644 (0x7f84)

lri $AR1,    #0x7f84
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32645 (0x7f85)

lri $AR1,    #0x7f85
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32646 (0x7f86)

lri $AR1,    #0x7f86
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32647 (0x7f87)

lri $AR1,    #0x7f87
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32648 (0x7f88)

lri $AR1,    #0x7f88
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32649 (0x7f89)

lri $AR1,    #0x7f89
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32650 (0x7f8a)

lri $AR1,    #0x7f8a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32651 (0x7f8b)

lri $AR1,    #0x7f8b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32652 (0x7f8c)

lri $AR1,    #0x7f8c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32653 (0x7f8d)

lri $AR1,    #0x7f8d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32654 (0x7f8e)

lri $AR1,    #0x7f8e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32655 (0x7f8f)

lri $AR1,    #0x7f8f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32656 (0x7f90)

lri $AR1,    #0x7f90
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32657 (0x7f91)

lri $AR1,    #0x7f91
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32658 (0x7f92)

lri $AR1,    #0x7f92
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32659 (0x7f93)

lri $AR1,    #0x7f93
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32660 (0x7f94)

lri $AR1,    #0x7f94
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32661 (0x7f95)

lri $AR1,    #0x7f95
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32662 (0x7f96)

lri $AR1,    #0x7f96
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32663 (0x7f97)

lri $AR1,    #0x7f97
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32664 (0x7f98)

lri $AR1,    #0x7f98
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32665 (0x7f99)

lri $AR1,    #0x7f99
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32666 (0x7f9a)

lri $AR1,    #0x7f9a
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32667 (0x7f9b)

lri $AR1,    #0x7f9b
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32668 (0x7f9c)

lri $AR1,    #0x7f9c
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32669 (0x7f9d)

lri $AR1,    #0x7f9d
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32670 (0x7f9e)

lri $AR1,    #0x7f9e
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32671 (0x7f9f)

lri $AR1,    #0x7f9f
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32672 (0x7fa0)

lri $AR1,    #0x7fa0
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32673 (0x7fa1)

lri $AR1,    #0x7fa1
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32674 (0x7fa2)

lri $AR1,    #0x7fa2
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32675 (0x7fa3)

lri $AR1,    #0x7fa3
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32676 (0x7fa4)

lri $AR1,    #0x7fa4
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32677 (0x7fa5)

lri $AR1,    #0x7fa5
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32678 (0x7fa6)

lri $AR1,    #0x7fa6
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32679 (0x7fa7)

lri $AR1,    #0x7fa7
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32680 (0x7fa8)

lri $AR1,    #0x7fa8
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32681 (0x7fa9)

lri $AR1,    #0x7fa9
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32682 (0x7faa)

lri $AR1,    #0x7faa
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32683 (0x7fab)

lri $AR1,    #0x7fab
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32684 (0x7fac)

lri $AR1,    #0x7fac
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32685 (0x7fad)

lri $AR1,    #0x7fad
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32686 (0x7fae)

lri $AR1,    #0x7fae
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32687 (0x7faf)

lri $AR1,    #0x7faf
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32688 (0x7fb0)

lri $AR1,    #0x7fb0
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32689 (0x7fb1)

lri $AR1,    #0x7fb1
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32690 (0x7fb2)

lri $AR1,    #0x7fb2
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32691 (0x7fb3)

lri $AR1,    #0x7fb3
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32692 (0x7fb4)

lri $AR1,    #0x7fb4
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32693 (0x7fb5)

lri $AR1,    #0x7fb5
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32694 (0x7fb6)

lri $AR1,    #0x7fb6
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32695 (0x7fb7)

lri $AR1,    #0x7fb7
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32696 (0x7fb8)

lri $AR1,    #0x7fb8
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32697 (0x7fb9)

lri $AR1,    #0x7fb9
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32698 (0x7fba)

lri $AR1,    #0x7fba
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32699 (0x7fbb)

lri $AR1,    #0x7fbb
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32700 (0x7fbc)

lri $AR1,    #0x7fbc
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32701 (0x7fbd)

lri $AR1,    #0x7fbd
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32702 (0x7fbe)

lri $AR1,    #0x7fbe
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32703 (0x7fbf)

lri $AR1,    #0x7fbf
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32704 (0x7fc0)

lri $AR1,    #0x7fc0
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32705 (0x7fc1)

lri $AR1,    #0x7fc1
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32706 (0x7fc2)

lri $AR1,    #0x7fc2
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32707 (0x7fc3)

lri $AR1,    #0x7fc3
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32708 (0x7fc4)

lri $AR1,    #0x7fc4
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32709 (0x7fc5)

lri $AR1,    #0x7fc5
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32710 (0x7fc6)

lri $AR1,    #0x7fc6
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32711 (0x7fc7)

lri $AR1,    #0x7fc7
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32712 (0x7fc8)

lri $AR1,    #0x7fc8
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32713 (0x7fc9)

lri $AR1,    #0x7fc9
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32714 (0x7fca)

lri $AR1,    #0x7fca
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32715 (0x7fcb)

lri $AR1,    #0x7fcb
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32716 (0x7fcc)

lri $AR1,    #0x7fcc
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32717 (0x7fcd)

lri $AR1,    #0x7fcd
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32718 (0x7fce)

lri $AR1,    #0x7fce
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32719 (0x7fcf)

lri $AR1,    #0x7fcf
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32720 (0x7fd0)

lri $AR1,    #0x7fd0
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32721 (0x7fd1)

lri $AR1,    #0x7fd1
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32722 (0x7fd2)

lri $AR1,    #0x7fd2
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32723 (0x7fd3)

lri $AR1,    #0x7fd3
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32724 (0x7fd4)

lri $AR1,    #0x7fd4
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32725 (0x7fd5)

lri $AR1,    #0x7fd5
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32726 (0x7fd6)

lri $AR1,    #0x7fd6
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32727 (0x7fd7)

lri $AR1,    #0x7fd7
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32728 (0x7fd8)

lri $AR1,    #0x7fd8
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32729 (0x7fd9)

lri $AR1,    #0x7fd9
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32730 (0x7fda)

lri $AR1,    #0x7fda
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32731 (0x7fdb)

lri $AR1,    #0x7fdb
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32732 (0x7fdc)

lri $AR1,    #0x7fdc
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32733 (0x7fdd)

lri $AR1,    #0x7fdd
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32734 (0x7fde)

lri $AR1,    #0x7fde
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32735 (0x7fdf)

lri $AR1,    #0x7fdf
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32736 (0x7fe0)

lri $AR1,    #0x7fe0
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32737 (0x7fe1)

lri $AR1,    #0x7fe1
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32738 (0x7fe2)

lri $AR1,    #0x7fe2
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32739 (0x7fe3)

lri $AR1,    #0x7fe3
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32740 (0x7fe4)

lri $AR1,    #0x7fe4
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32741 (0x7fe5)

lri $AR1,    #0x7fe5
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32742 (0x7fe6)

lri $AR1,    #0x7fe6
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32743 (0x7fe7)

lri $AR1,    #0x7fe7
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32744 (0x7fe8)

lri $AR1,    #0x7fe8
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32745 (0x7fe9)

lri $AR1,    #0x7fe9
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32746 (0x7fea)

lri $AR1,    #0x7fea
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32747 (0x7feb)

lri $AR1,    #0x7feb
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32748 (0x7fec)

lri $AR1,    #0x7fec
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32749 (0x7fed)

lri $AR1,    #0x7fed
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32750 (0x7fee)

lri $AR1,    #0x7fee
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32751 (0x7fef)

lri $AR1,    #0x7fef
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32752 (0x7ff0)

lri $AR1,    #0x7ff0
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32753 (0x7ff1)

lri $AR1,    #0x7ff1
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32754 (0x7ff2)

lri $AR1,    #0x7ff2
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32755 (0x7ff3)

lri $AR1,    #0x7ff3
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32756 (0x7ff4)

lri $AR1,    #0x7ff4
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32757 (0x7ff5)

lri $AR1,    #0x7ff5
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32758 (0x7ff6)

lri $AR1,    #0x7ff6
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32759 (0x7ff7)

lri $AR1,    #0x7ff7
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32760 (0x7ff8)

lri $AR1,    #0x7ff8
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32761 (0x7ff9)

lri $AR1,    #0x7ff9
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32762 (0x7ffa)

lri $AR1,    #0x7ffa
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32763 (0x7ffb)

lri $AR1,    #0x7ffb
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32764 (0x7ffc)

lri $AR1,    #0x7ffc
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32765 (0x7ffd)

lri $AR1,    #0x7ffd
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32766 (0x7ffe)

lri $AR1,    #0x7ffe
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32767 (0x7fff)

lri $AR1,    #0x7fff
lri $IX1,    #0x0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 32768 (0x8000)

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

