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

lri $AR1,    #0x0040
lri $IX1,    #0xbdde
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48607 (0xbddf)

lri $AR1,    #0x0040
lri $IX1,    #0xbddf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48608 (0xbde0)

lri $AR1,    #0x0040
lri $IX1,    #0xbde0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48609 (0xbde1)

lri $AR1,    #0x0040
lri $IX1,    #0xbde1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48610 (0xbde2)

lri $AR1,    #0x0040
lri $IX1,    #0xbde2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48611 (0xbde3)

lri $AR1,    #0x0040
lri $IX1,    #0xbde3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48612 (0xbde4)

lri $AR1,    #0x0040
lri $IX1,    #0xbde4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48613 (0xbde5)

lri $AR1,    #0x0040
lri $IX1,    #0xbde5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48614 (0xbde6)

lri $AR1,    #0x0040
lri $IX1,    #0xbde6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48615 (0xbde7)

lri $AR1,    #0x0040
lri $IX1,    #0xbde7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48616 (0xbde8)

lri $AR1,    #0x0040
lri $IX1,    #0xbde8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48617 (0xbde9)

lri $AR1,    #0x0040
lri $IX1,    #0xbde9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48618 (0xbdea)

lri $AR1,    #0x0040
lri $IX1,    #0xbdea
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48619 (0xbdeb)

lri $AR1,    #0x0040
lri $IX1,    #0xbdeb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48620 (0xbdec)

lri $AR1,    #0x0040
lri $IX1,    #0xbdec
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48621 (0xbded)

lri $AR1,    #0x0040
lri $IX1,    #0xbded
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48622 (0xbdee)

lri $AR1,    #0x0040
lri $IX1,    #0xbdee
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48623 (0xbdef)

lri $AR1,    #0x0040
lri $IX1,    #0xbdef
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48624 (0xbdf0)

lri $AR1,    #0x0040
lri $IX1,    #0xbdf0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48625 (0xbdf1)

lri $AR1,    #0x0040
lri $IX1,    #0xbdf1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48626 (0xbdf2)

lri $AR1,    #0x0040
lri $IX1,    #0xbdf2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48627 (0xbdf3)

lri $AR1,    #0x0040
lri $IX1,    #0xbdf3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48628 (0xbdf4)

lri $AR1,    #0x0040
lri $IX1,    #0xbdf4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48629 (0xbdf5)

lri $AR1,    #0x0040
lri $IX1,    #0xbdf5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48630 (0xbdf6)

lri $AR1,    #0x0040
lri $IX1,    #0xbdf6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48631 (0xbdf7)

lri $AR1,    #0x0040
lri $IX1,    #0xbdf7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48632 (0xbdf8)

lri $AR1,    #0x0040
lri $IX1,    #0xbdf8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48633 (0xbdf9)

lri $AR1,    #0x0040
lri $IX1,    #0xbdf9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48634 (0xbdfa)

lri $AR1,    #0x0040
lri $IX1,    #0xbdfa
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48635 (0xbdfb)

lri $AR1,    #0x0040
lri $IX1,    #0xbdfb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48636 (0xbdfc)

lri $AR1,    #0x0040
lri $IX1,    #0xbdfc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48637 (0xbdfd)

lri $AR1,    #0x0040
lri $IX1,    #0xbdfd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48638 (0xbdfe)

lri $AR1,    #0x0040
lri $IX1,    #0xbdfe
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48639 (0xbdff)

lri $AR1,    #0x0040
lri $IX1,    #0xbdff
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48640 (0xbe00)

lri $AR1,    #0x0040
lri $IX1,    #0xbe00
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48641 (0xbe01)

lri $AR1,    #0x0040
lri $IX1,    #0xbe01
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48642 (0xbe02)

lri $AR1,    #0x0040
lri $IX1,    #0xbe02
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48643 (0xbe03)

lri $AR1,    #0x0040
lri $IX1,    #0xbe03
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48644 (0xbe04)

lri $AR1,    #0x0040
lri $IX1,    #0xbe04
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48645 (0xbe05)

lri $AR1,    #0x0040
lri $IX1,    #0xbe05
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48646 (0xbe06)

lri $AR1,    #0x0040
lri $IX1,    #0xbe06
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48647 (0xbe07)

lri $AR1,    #0x0040
lri $IX1,    #0xbe07
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48648 (0xbe08)

lri $AR1,    #0x0040
lri $IX1,    #0xbe08
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48649 (0xbe09)

lri $AR1,    #0x0040
lri $IX1,    #0xbe09
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48650 (0xbe0a)

lri $AR1,    #0x0040
lri $IX1,    #0xbe0a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48651 (0xbe0b)

lri $AR1,    #0x0040
lri $IX1,    #0xbe0b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48652 (0xbe0c)

lri $AR1,    #0x0040
lri $IX1,    #0xbe0c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48653 (0xbe0d)

lri $AR1,    #0x0040
lri $IX1,    #0xbe0d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48654 (0xbe0e)

lri $AR1,    #0x0040
lri $IX1,    #0xbe0e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48655 (0xbe0f)

lri $AR1,    #0x0040
lri $IX1,    #0xbe0f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48656 (0xbe10)

lri $AR1,    #0x0040
lri $IX1,    #0xbe10
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48657 (0xbe11)

lri $AR1,    #0x0040
lri $IX1,    #0xbe11
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48658 (0xbe12)

lri $AR1,    #0x0040
lri $IX1,    #0xbe12
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48659 (0xbe13)

lri $AR1,    #0x0040
lri $IX1,    #0xbe13
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48660 (0xbe14)

lri $AR1,    #0x0040
lri $IX1,    #0xbe14
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48661 (0xbe15)

lri $AR1,    #0x0040
lri $IX1,    #0xbe15
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48662 (0xbe16)

lri $AR1,    #0x0040
lri $IX1,    #0xbe16
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48663 (0xbe17)

lri $AR1,    #0x0040
lri $IX1,    #0xbe17
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48664 (0xbe18)

lri $AR1,    #0x0040
lri $IX1,    #0xbe18
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48665 (0xbe19)

lri $AR1,    #0x0040
lri $IX1,    #0xbe19
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48666 (0xbe1a)

lri $AR1,    #0x0040
lri $IX1,    #0xbe1a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48667 (0xbe1b)

lri $AR1,    #0x0040
lri $IX1,    #0xbe1b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48668 (0xbe1c)

lri $AR1,    #0x0040
lri $IX1,    #0xbe1c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48669 (0xbe1d)

lri $AR1,    #0x0040
lri $IX1,    #0xbe1d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48670 (0xbe1e)

lri $AR1,    #0x0040
lri $IX1,    #0xbe1e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48671 (0xbe1f)

lri $AR1,    #0x0040
lri $IX1,    #0xbe1f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48672 (0xbe20)

lri $AR1,    #0x0040
lri $IX1,    #0xbe20
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48673 (0xbe21)

lri $AR1,    #0x0040
lri $IX1,    #0xbe21
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48674 (0xbe22)

lri $AR1,    #0x0040
lri $IX1,    #0xbe22
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48675 (0xbe23)

lri $AR1,    #0x0040
lri $IX1,    #0xbe23
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48676 (0xbe24)

lri $AR1,    #0x0040
lri $IX1,    #0xbe24
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48677 (0xbe25)

lri $AR1,    #0x0040
lri $IX1,    #0xbe25
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48678 (0xbe26)

lri $AR1,    #0x0040
lri $IX1,    #0xbe26
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48679 (0xbe27)

lri $AR1,    #0x0040
lri $IX1,    #0xbe27
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48680 (0xbe28)

lri $AR1,    #0x0040
lri $IX1,    #0xbe28
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48681 (0xbe29)

lri $AR1,    #0x0040
lri $IX1,    #0xbe29
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48682 (0xbe2a)

lri $AR1,    #0x0040
lri $IX1,    #0xbe2a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48683 (0xbe2b)

lri $AR1,    #0x0040
lri $IX1,    #0xbe2b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48684 (0xbe2c)

lri $AR1,    #0x0040
lri $IX1,    #0xbe2c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48685 (0xbe2d)

lri $AR1,    #0x0040
lri $IX1,    #0xbe2d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48686 (0xbe2e)

lri $AR1,    #0x0040
lri $IX1,    #0xbe2e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48687 (0xbe2f)

lri $AR1,    #0x0040
lri $IX1,    #0xbe2f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48688 (0xbe30)

lri $AR1,    #0x0040
lri $IX1,    #0xbe30
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48689 (0xbe31)

lri $AR1,    #0x0040
lri $IX1,    #0xbe31
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48690 (0xbe32)

lri $AR1,    #0x0040
lri $IX1,    #0xbe32
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48691 (0xbe33)

lri $AR1,    #0x0040
lri $IX1,    #0xbe33
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48692 (0xbe34)

lri $AR1,    #0x0040
lri $IX1,    #0xbe34
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48693 (0xbe35)

lri $AR1,    #0x0040
lri $IX1,    #0xbe35
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48694 (0xbe36)

lri $AR1,    #0x0040
lri $IX1,    #0xbe36
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48695 (0xbe37)

lri $AR1,    #0x0040
lri $IX1,    #0xbe37
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48696 (0xbe38)

lri $AR1,    #0x0040
lri $IX1,    #0xbe38
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48697 (0xbe39)

lri $AR1,    #0x0040
lri $IX1,    #0xbe39
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48698 (0xbe3a)

lri $AR1,    #0x0040
lri $IX1,    #0xbe3a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48699 (0xbe3b)

lri $AR1,    #0x0040
lri $IX1,    #0xbe3b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48700 (0xbe3c)

lri $AR1,    #0x0040
lri $IX1,    #0xbe3c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48701 (0xbe3d)

lri $AR1,    #0x0040
lri $IX1,    #0xbe3d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48702 (0xbe3e)

lri $AR1,    #0x0040
lri $IX1,    #0xbe3e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48703 (0xbe3f)

lri $AR1,    #0x0040
lri $IX1,    #0xbe3f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48704 (0xbe40)

lri $AR1,    #0x0040
lri $IX1,    #0xbe40
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48705 (0xbe41)

lri $AR1,    #0x0040
lri $IX1,    #0xbe41
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48706 (0xbe42)

lri $AR1,    #0x0040
lri $IX1,    #0xbe42
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48707 (0xbe43)

lri $AR1,    #0x0040
lri $IX1,    #0xbe43
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48708 (0xbe44)

lri $AR1,    #0x0040
lri $IX1,    #0xbe44
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48709 (0xbe45)

lri $AR1,    #0x0040
lri $IX1,    #0xbe45
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48710 (0xbe46)

lri $AR1,    #0x0040
lri $IX1,    #0xbe46
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48711 (0xbe47)

lri $AR1,    #0x0040
lri $IX1,    #0xbe47
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48712 (0xbe48)

lri $AR1,    #0x0040
lri $IX1,    #0xbe48
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48713 (0xbe49)

lri $AR1,    #0x0040
lri $IX1,    #0xbe49
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48714 (0xbe4a)

lri $AR1,    #0x0040
lri $IX1,    #0xbe4a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 48715 (0xbe4b)

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