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

lri $AR1,    #0x4000
lri $IX1,    #0xf500
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62721 (0xf501)

lri $AR1,    #0x4000
lri $IX1,    #0xf501
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62722 (0xf502)

lri $AR1,    #0x4000
lri $IX1,    #0xf502
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62723 (0xf503)

lri $AR1,    #0x4000
lri $IX1,    #0xf503
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62724 (0xf504)

lri $AR1,    #0x4000
lri $IX1,    #0xf504
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62725 (0xf505)

lri $AR1,    #0x4000
lri $IX1,    #0xf505
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62726 (0xf506)

lri $AR1,    #0x4000
lri $IX1,    #0xf506
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62727 (0xf507)

lri $AR1,    #0x4000
lri $IX1,    #0xf507
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62728 (0xf508)

lri $AR1,    #0x4000
lri $IX1,    #0xf508
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62729 (0xf509)

lri $AR1,    #0x4000
lri $IX1,    #0xf509
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62730 (0xf50a)

lri $AR1,    #0x4000
lri $IX1,    #0xf50a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62731 (0xf50b)

lri $AR1,    #0x4000
lri $IX1,    #0xf50b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62732 (0xf50c)

lri $AR1,    #0x4000
lri $IX1,    #0xf50c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62733 (0xf50d)

lri $AR1,    #0x4000
lri $IX1,    #0xf50d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62734 (0xf50e)

lri $AR1,    #0x4000
lri $IX1,    #0xf50e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62735 (0xf50f)

lri $AR1,    #0x4000
lri $IX1,    #0xf50f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62736 (0xf510)

lri $AR1,    #0x4000
lri $IX1,    #0xf510
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62737 (0xf511)

lri $AR1,    #0x4000
lri $IX1,    #0xf511
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62738 (0xf512)

lri $AR1,    #0x4000
lri $IX1,    #0xf512
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62739 (0xf513)

lri $AR1,    #0x4000
lri $IX1,    #0xf513
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62740 (0xf514)

lri $AR1,    #0x4000
lri $IX1,    #0xf514
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62741 (0xf515)

lri $AR1,    #0x4000
lri $IX1,    #0xf515
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62742 (0xf516)

lri $AR1,    #0x4000
lri $IX1,    #0xf516
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62743 (0xf517)

lri $AR1,    #0x4000
lri $IX1,    #0xf517
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62744 (0xf518)

lri $AR1,    #0x4000
lri $IX1,    #0xf518
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62745 (0xf519)

lri $AR1,    #0x4000
lri $IX1,    #0xf519
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62746 (0xf51a)

lri $AR1,    #0x4000
lri $IX1,    #0xf51a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62747 (0xf51b)

lri $AR1,    #0x4000
lri $IX1,    #0xf51b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62748 (0xf51c)

lri $AR1,    #0x4000
lri $IX1,    #0xf51c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62749 (0xf51d)

lri $AR1,    #0x4000
lri $IX1,    #0xf51d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62750 (0xf51e)

lri $AR1,    #0x4000
lri $IX1,    #0xf51e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62751 (0xf51f)

lri $AR1,    #0x4000
lri $IX1,    #0xf51f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62752 (0xf520)

lri $AR1,    #0x4000
lri $IX1,    #0xf520
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62753 (0xf521)

lri $AR1,    #0x4000
lri $IX1,    #0xf521
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62754 (0xf522)

lri $AR1,    #0x4000
lri $IX1,    #0xf522
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62755 (0xf523)

lri $AR1,    #0x4000
lri $IX1,    #0xf523
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62756 (0xf524)

lri $AR1,    #0x4000
lri $IX1,    #0xf524
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62757 (0xf525)

lri $AR1,    #0x4000
lri $IX1,    #0xf525
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62758 (0xf526)

lri $AR1,    #0x4000
lri $IX1,    #0xf526
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62759 (0xf527)

lri $AR1,    #0x4000
lri $IX1,    #0xf527
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62760 (0xf528)

lri $AR1,    #0x4000
lri $IX1,    #0xf528
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62761 (0xf529)

lri $AR1,    #0x4000
lri $IX1,    #0xf529
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62762 (0xf52a)

lri $AR1,    #0x4000
lri $IX1,    #0xf52a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62763 (0xf52b)

lri $AR1,    #0x4000
lri $IX1,    #0xf52b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62764 (0xf52c)

lri $AR1,    #0x4000
lri $IX1,    #0xf52c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62765 (0xf52d)

lri $AR1,    #0x4000
lri $IX1,    #0xf52d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62766 (0xf52e)

lri $AR1,    #0x4000
lri $IX1,    #0xf52e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62767 (0xf52f)

lri $AR1,    #0x4000
lri $IX1,    #0xf52f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62768 (0xf530)

lri $AR1,    #0x4000
lri $IX1,    #0xf530
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62769 (0xf531)

lri $AR1,    #0x4000
lri $IX1,    #0xf531
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62770 (0xf532)

lri $AR1,    #0x4000
lri $IX1,    #0xf532
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62771 (0xf533)

lri $AR1,    #0x4000
lri $IX1,    #0xf533
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62772 (0xf534)

lri $AR1,    #0x4000
lri $IX1,    #0xf534
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62773 (0xf535)

lri $AR1,    #0x4000
lri $IX1,    #0xf535
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62774 (0xf536)

lri $AR1,    #0x4000
lri $IX1,    #0xf536
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62775 (0xf537)

lri $AR1,    #0x4000
lri $IX1,    #0xf537
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62776 (0xf538)

lri $AR1,    #0x4000
lri $IX1,    #0xf538
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62777 (0xf539)

lri $AR1,    #0x4000
lri $IX1,    #0xf539
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62778 (0xf53a)

lri $AR1,    #0x4000
lri $IX1,    #0xf53a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62779 (0xf53b)

lri $AR1,    #0x4000
lri $IX1,    #0xf53b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62780 (0xf53c)

lri $AR1,    #0x4000
lri $IX1,    #0xf53c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62781 (0xf53d)

lri $AR1,    #0x4000
lri $IX1,    #0xf53d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62782 (0xf53e)

lri $AR1,    #0x4000
lri $IX1,    #0xf53e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62783 (0xf53f)

lri $AR1,    #0x4000
lri $IX1,    #0xf53f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62784 (0xf540)

lri $AR1,    #0x4000
lri $IX1,    #0xf540
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62785 (0xf541)

lri $AR1,    #0x4000
lri $IX1,    #0xf541
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62786 (0xf542)

lri $AR1,    #0x4000
lri $IX1,    #0xf542
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62787 (0xf543)

lri $AR1,    #0x4000
lri $IX1,    #0xf543
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62788 (0xf544)

lri $AR1,    #0x4000
lri $IX1,    #0xf544
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62789 (0xf545)

lri $AR1,    #0x4000
lri $IX1,    #0xf545
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62790 (0xf546)

lri $AR1,    #0x4000
lri $IX1,    #0xf546
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62791 (0xf547)

lri $AR1,    #0x4000
lri $IX1,    #0xf547
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62792 (0xf548)

lri $AR1,    #0x4000
lri $IX1,    #0xf548
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62793 (0xf549)

lri $AR1,    #0x4000
lri $IX1,    #0xf549
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62794 (0xf54a)

lri $AR1,    #0x4000
lri $IX1,    #0xf54a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62795 (0xf54b)

lri $AR1,    #0x4000
lri $IX1,    #0xf54b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62796 (0xf54c)

lri $AR1,    #0x4000
lri $IX1,    #0xf54c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62797 (0xf54d)

lri $AR1,    #0x4000
lri $IX1,    #0xf54d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62798 (0xf54e)

lri $AR1,    #0x4000
lri $IX1,    #0xf54e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62799 (0xf54f)

lri $AR1,    #0x4000
lri $IX1,    #0xf54f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62800 (0xf550)

lri $AR1,    #0x4000
lri $IX1,    #0xf550
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62801 (0xf551)

lri $AR1,    #0x4000
lri $IX1,    #0xf551
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62802 (0xf552)

lri $AR1,    #0x4000
lri $IX1,    #0xf552
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62803 (0xf553)

lri $AR1,    #0x4000
lri $IX1,    #0xf553
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62804 (0xf554)

lri $AR1,    #0x4000
lri $IX1,    #0xf554
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62805 (0xf555)

lri $AR1,    #0x4000
lri $IX1,    #0xf555
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62806 (0xf556)

lri $AR1,    #0x4000
lri $IX1,    #0xf556
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62807 (0xf557)

lri $AR1,    #0x4000
lri $IX1,    #0xf557
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62808 (0xf558)

lri $AR1,    #0x4000
lri $IX1,    #0xf558
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62809 (0xf559)

lri $AR1,    #0x4000
lri $IX1,    #0xf559
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62810 (0xf55a)

lri $AR1,    #0x4000
lri $IX1,    #0xf55a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62811 (0xf55b)

lri $AR1,    #0x4000
lri $IX1,    #0xf55b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62812 (0xf55c)

lri $AR1,    #0x4000
lri $IX1,    #0xf55c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62813 (0xf55d)

lri $AR1,    #0x4000
lri $IX1,    #0xf55d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62814 (0xf55e)

lri $AR1,    #0x4000
lri $IX1,    #0xf55e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62815 (0xf55f)

lri $AR1,    #0x4000
lri $IX1,    #0xf55f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62816 (0xf560)

lri $AR1,    #0x4000
lri $IX1,    #0xf560
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62817 (0xf561)

lri $AR1,    #0x4000
lri $IX1,    #0xf561
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62818 (0xf562)

lri $AR1,    #0x4000
lri $IX1,    #0xf562
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62819 (0xf563)

lri $AR1,    #0x4000
lri $IX1,    #0xf563
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62820 (0xf564)

lri $AR1,    #0x4000
lri $IX1,    #0xf564
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62821 (0xf565)

lri $AR1,    #0x4000
lri $IX1,    #0xf565
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62822 (0xf566)

lri $AR1,    #0x4000
lri $IX1,    #0xf566
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62823 (0xf567)

lri $AR1,    #0x4000
lri $IX1,    #0xf567
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62824 (0xf568)

lri $AR1,    #0x4000
lri $IX1,    #0xf568
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62825 (0xf569)

lri $AR1,    #0x4000
lri $IX1,    #0xf569
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62826 (0xf56a)

lri $AR1,    #0x4000
lri $IX1,    #0xf56a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62827 (0xf56b)

lri $AR1,    #0x4000
lri $IX1,    #0xf56b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62828 (0xf56c)

lri $AR1,    #0x4000
lri $IX1,    #0xf56c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62829 (0xf56d)

lri $AR1,    #0x4000
lri $IX1,    #0xf56d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62830 (0xf56e)

lri $AR1,    #0x4000
lri $IX1,    #0xf56e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62831 (0xf56f)

lri $AR1,    #0x4000
lri $IX1,    #0xf56f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62832 (0xf570)

lri $AR1,    #0x4000
lri $IX1,    #0xf570
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62833 (0xf571)

lri $AR1,    #0x4000
lri $IX1,    #0xf571
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62834 (0xf572)

lri $AR1,    #0x4000
lri $IX1,    #0xf572
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62835 (0xf573)

lri $AR1,    #0x4000
lri $IX1,    #0xf573
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62836 (0xf574)

lri $AR1,    #0x4000
lri $IX1,    #0xf574
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62837 (0xf575)

lri $AR1,    #0x4000
lri $IX1,    #0xf575
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62838 (0xf576)

lri $AR1,    #0x4000
lri $IX1,    #0xf576
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62839 (0xf577)

lri $AR1,    #0x4000
lri $IX1,    #0xf577
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62840 (0xf578)

lri $AR1,    #0x4000
lri $IX1,    #0xf578
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62841 (0xf579)

lri $AR1,    #0x4000
lri $IX1,    #0xf579
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62842 (0xf57a)

lri $AR1,    #0x4000
lri $IX1,    #0xf57a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62843 (0xf57b)

lri $AR1,    #0x4000
lri $IX1,    #0xf57b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62844 (0xf57c)

lri $AR1,    #0x4000
lri $IX1,    #0xf57c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62845 (0xf57d)

lri $AR1,    #0x4000
lri $IX1,    #0xf57d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62846 (0xf57e)

lri $AR1,    #0x4000
lri $IX1,    #0xf57e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62847 (0xf57f)

lri $AR1,    #0x4000
lri $IX1,    #0xf57f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62848 (0xf580)

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

