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

lri $AR1,    #0xc38b
lri $IX1,    #0xc4de
lri $WR1,    #0xf2fd
cw 0xd
call send_back  ; 32660 (0x7f94)

lri $AR1,    #0x9e32
lri $IX1,    #0x40f2
lri $WR1,    #0x27c3
cw 0xd
call send_back  ; 32661 (0x7f95)

lri $AR1,    #0xdb8f
lri $IX1,    #0x02c4
lri $WR1,    #0x13fb
cw 0xd
call send_back  ; 32662 (0x7f96)

lri $AR1,    #0x8d58
lri $IX1,    #0x5ddc
lri $WR1,    #0x8806
cw 0xd
call send_back  ; 32663 (0x7f97)

lri $AR1,    #0x9b3c
lri $IX1,    #0x2e92
lri $WR1,    #0x49f8
cw 0xd
call send_back  ; 32664 (0x7f98)

lri $AR1,    #0x5098
lri $IX1,    #0x661a
lri $WR1,    #0x7a07
cw 0xd
call send_back  ; 32665 (0x7f99)

lri $AR1,    #0x96fe
lri $IX1,    #0x95c2
lri $WR1,    #0xa54d
cw 0xd
call send_back  ; 32666 (0x7f9a)

lri $AR1,    #0x575d
lri $IX1,    #0xe1c2
lri $WR1,    #0x6dd5
cw 0xd
call send_back  ; 32667 (0x7f9b)

lri $AR1,    #0x6313
lri $IX1,    #0xe766
lri $WR1,    #0xc499
cw 0xd
call send_back  ; 32668 (0x7f9c)

lri $AR1,    #0x81be
lri $IX1,    #0x39f0
lri $WR1,    #0xeb6a
cw 0xd
call send_back  ; 32669 (0x7f9d)

lri $AR1,    #0xb01a
lri $IX1,    #0x04ea
lri $WR1,    #0x326a
cw 0xd
call send_back  ; 32670 (0x7f9e)

lri $AR1,    #0x9fc5
lri $IX1,    #0x0252
lri $WR1,    #0x8611
cw 0xd
call send_back  ; 32671 (0x7f9f)

lri $AR1,    #0x7f1e
lri $IX1,    #0x265e
lri $WR1,    #0xc861
cw 0xd
call send_back  ; 32672 (0x7fa0)

lri $AR1,    #0x5c38
lri $IX1,    #0x0a2c
lri $WR1,    #0x794b
cw 0xd
call send_back  ; 32673 (0x7fa1)

lri $AR1,    #0x7511
lri $IX1,    #0x1a3a
lri $WR1,    #0xbfdc
cw 0xd
call send_back  ; 32674 (0x7fa2)

lri $AR1,    #0x5ae1
lri $IX1,    #0xbce0
lri $WR1,    #0xd740
cw 0xd
call send_back  ; 32675 (0x7fa3)

lri $AR1,    #0x55e2
lri $IX1,    #0xe8b0
lri $WR1,    #0x9824
cw 0xd
call send_back  ; 32676 (0x7fa4)

lri $AR1,    #0x5253
lri $IX1,    #0xd9fa
lri $WR1,    #0xb09d
cw 0xd
call send_back  ; 32677 (0x7fa5)

lri $AR1,    #0xaf01
lri $IX1,    #0xa266
lri $WR1,    #0x7a08
cw 0xd
call send_back  ; 32678 (0x7fa6)

lri $AR1,    #0x6939
lri $IX1,    #0x0cb6
lri $WR1,    #0x9e05
cw 0xd
call send_back  ; 32679 (0x7fa7)

lri $AR1,    #0xb961
lri $IX1,    #0xa2cc
lri $WR1,    #0xc113
cw 0xd
call send_back  ; 32680 (0x7fa8)

lri $AR1,    #0x9f14
lri $IX1,    #0x6b04
lri $WR1,    #0x92ef
cw 0xd
call send_back  ; 32681 (0x7fa9)

lri $AR1,    #0x7b06
lri $IX1,    #0x0dd8
lri $WR1,    #0xd229
cw 0xd
call send_back  ; 32682 (0x7faa)

lri $AR1,    #0x088d
lri $IX1,    #0x6414
lri $WR1,    #0x6219
cw 0xd
call send_back  ; 32683 (0x7fab)

lri $AR1,    #0xb00e
lri $IX1,    #0xd15a
lri $WR1,    #0x67b6
cw 0xd
call send_back  ; 32684 (0x7fac)

lri $AR1,    #0xa735
lri $IX1,    #0x2664
lri $WR1,    #0x5b66
cw 0xd
call send_back  ; 32685 (0x7fad)

lri $AR1,    #0x8332
lri $IX1,    #0xf1b8
lri $WR1,    #0x7b52
cw 0xd
call send_back  ; 32686 (0x7fae)

lri $AR1,    #0xa4d4
lri $IX1,    #0x0538
lri $WR1,    #0x6b4e
cw 0xd
call send_back  ; 32687 (0x7faf)

lri $AR1,    #0x1dd8
lri $IX1,    #0x6a3e
lri $WR1,    #0x74eb
cw 0xd
call send_back  ; 32688 (0x7fb0)

lri $AR1,    #0x3a2c
lri $IX1,    #0xe5b2
lri $WR1,    #0x23c0
cw 0xd
call send_back  ; 32689 (0x7fb1)

lri $AR1,    #0x9790
lri $IX1,    #0x68e0
lri $WR1,    #0x476e
cw 0xd
call send_back  ; 32690 (0x7fb2)

lri $AR1,    #0x8942
lri $IX1,    #0x3b52
lri $WR1,    #0x968c
cw 0xd
call send_back  ; 32691 (0x7fb3)

lri $AR1,    #0x4d26
lri $IX1,    #0x2d8c
lri $WR1,    #0xa2eb
cw 0xd
call send_back  ; 32692 (0x7fb4)

lri $AR1,    #0x3326
lri $IX1,    #0x9bfc
lri $WR1,    #0xe94f
cw 0xd
call send_back  ; 32693 (0x7fb5)

lri $AR1,    #0xa722
lri $IX1,    #0x54e4
lri $WR1,    #0x6440
cw 0xd
call send_back  ; 32694 (0x7fb6)

lri $AR1,    #0x713c
lri $IX1,    #0x738a
lri $WR1,    #0x8ad5
cw 0xd
call send_back  ; 32695 (0x7fb7)

lri $AR1,    #0x57d4
lri $IX1,    #0xd694
lri $WR1,    #0x6a42
cw 0xd
call send_back  ; 32696 (0x7fb8)

lri $AR1,    #0x7a04
lri $IX1,    #0xdeca
lri $WR1,    #0x7204
cw 0xd
call send_back  ; 32697 (0x7fb9)

lri $AR1,    #0x98e1
lri $IX1,    #0x7f12
lri $WR1,    #0x7863
cw 0xd
call send_back  ; 32698 (0x7fba)

lri $AR1,    #0x7963
lri $IX1,    #0x3606
lri $WR1,    #0x4e43
cw 0xd
call send_back  ; 32699 (0x7fbb)

lri $AR1,    #0x703c
lri $IX1,    #0x2ce2
lri $WR1,    #0x4eda
cw 0xd
call send_back  ; 32700 (0x7fbc)

lri $AR1,    #0x6465
lri $IX1,    #0x4f18
lri $WR1,    #0x9163
cw 0xd
call send_back  ; 32701 (0x7fbd)

lri $AR1,    #0x84bf
lri $IX1,    #0x996c
lri $WR1,    #0xa04b
cw 0xd
call send_back  ; 32702 (0x7fbe)

lri $AR1,    #0x7090
lri $IX1,    #0xfee0
lri $WR1,    #0xbb05
cw 0xd
call send_back  ; 32703 (0x7fbf)

lri $AR1,    #0x8a2a
lri $IX1,    #0xf534
lri $WR1,    #0x8cf1
cw 0xd
call send_back  ; 32704 (0x7fc0)

lri $AR1,    #0x769d
lri $IX1,    #0xe25c
lri $WR1,    #0x4d88
cw 0xd
call send_back  ; 32705 (0x7fc1)

lri $AR1,    #0x4ca9
lri $IX1,    #0x1fae
lri $WR1,    #0x4b44
cw 0xd
call send_back  ; 32706 (0x7fc2)

lri $AR1,    #0x08d2
lri $IX1,    #0xf728
lri $WR1,    #0x5467
cw 0xd
call send_back  ; 32707 (0x7fc3)

lri $AR1,    #0xe3e4
lri $IX1,    #0xc282
lri $WR1,    #0x261f
cw 0xd
call send_back  ; 32708 (0x7fc4)

lri $AR1,    #0x84b8
lri $IX1,    #0x0b86
lri $WR1,    #0x642a
cw 0xd
call send_back  ; 32709 (0x7fc5)

lri $AR1,    #0x957f
lri $IX1,    #0x1850
lri $WR1,    #0x7870
cw 0xd
call send_back  ; 32710 (0x7fc6)

lri $AR1,    #0x6872
lri $IX1,    #0x8de8
lri $WR1,    #0x7bc8
cw 0xd
call send_back  ; 32711 (0x7fc7)

lri $AR1,    #0x6f29
lri $IX1,    #0xa6fc
lri $WR1,    #0xce55
cw 0xd
call send_back  ; 32712 (0x7fc8)

lri $AR1,    #0xb37a
lri $IX1,    #0xc3fc
lri $WR1,    #0x2f95
cw 0xd
call send_back  ; 32713 (0x7fc9)

lri $AR1,    #0xa01d
lri $IX1,    #0xb57a
lri $WR1,    #0xd3ca
cw 0xd
call send_back  ; 32714 (0x7fca)

lri $AR1,    #0x9af0
lri $IX1,    #0xf126
lri $WR1,    #0x85a3
cw 0xd
call send_back  ; 32715 (0x7fcb)

lri $AR1,    #0x9a2f
lri $IX1,    #0xc50c
lri $WR1,    #0xb8d6
cw 0xd
call send_back  ; 32716 (0x7fcc)

lri $AR1,    #0x595f
lri $IX1,    #0x749a
lri $WR1,    #0x6baf
cw 0xd
call send_back  ; 32717 (0x7fcd)

lri $AR1,    #0x8253
lri $IX1,    #0xd614
lri $WR1,    #0x3326
cw 0xd
call send_back  ; 32718 (0x7fce)

lri $AR1,    #0x6205
lri $IX1,    #0x66d8
lri $WR1,    #0x2e88
cw 0xd
call send_back  ; 32719 (0x7fcf)

lri $AR1,    #0x78a4
lri $IX1,    #0xc052
lri $WR1,    #0xc543
cw 0xd
call send_back  ; 32720 (0x7fd0)

lri $AR1,    #0x3f9c
lri $IX1,    #0xbeba
lri $WR1,    #0x5af5
cw 0xd
call send_back  ; 32721 (0x7fd1)

lri $AR1,    #0xbfec
lri $IX1,    #0x66b6
lri $WR1,    #0x7330
cw 0xd
call send_back  ; 32722 (0x7fd2)

lri $AR1,    #0x66a1
lri $IX1,    #0x85f4
lri $WR1,    #0x7020
cw 0xd
call send_back  ; 32723 (0x7fd3)

lri $AR1,    #0xccaf
lri $IX1,    #0x0ea4
lri $WR1,    #0x8c95
cw 0xd
call send_back  ; 32724 (0x7fd4)

lri $AR1,    #0xc31c
lri $IX1,    #0x2526
lri $WR1,    #0x4b7c
cw 0xd
call send_back  ; 32725 (0x7fd5)

lri $AR1,    #0x43ac
lri $IX1,    #0xa2b8
lri $WR1,    #0xb469
cw 0xd
call send_back  ; 32726 (0x7fd6)

lri $AR1,    #0x49eb
lri $IX1,    #0x4f62
lri $WR1,    #0xb62d
cw 0xd
call send_back  ; 32727 (0x7fd7)

lri $AR1,    #0x6fed
lri $IX1,    #0x2914
lri $WR1,    #0x4e1a
cw 0xd
call send_back  ; 32728 (0x7fd8)

lri $AR1,    #0xd584
lri $IX1,    #0x9528
lri $WR1,    #0x7bf3
cw 0xd
call send_back  ; 32729 (0x7fd9)

lri $AR1,    #0xb84b
lri $IX1,    #0x3524
lri $WR1,    #0x782f
cw 0xd
call send_back  ; 32730 (0x7fda)

lri $AR1,    #0x9645
lri $IX1,    #0x2704
lri $WR1,    #0xf389
cw 0xd
call send_back  ; 32731 (0x7fdb)

lri $AR1,    #0x9c75
lri $IX1,    #0x9cea
lri $WR1,    #0xbc78
cw 0xd
call send_back  ; 32732 (0x7fdc)

lri $AR1,    #0x5e31
lri $IX1,    #0xcf7e
lri $WR1,    #0x609c
cw 0xd
call send_back  ; 32733 (0x7fdd)

lri $AR1,    #0x417c
lri $IX1,    #0x39c0
lri $WR1,    #0x9db3
cw 0xd
call send_back  ; 32734 (0x7fde)

lri $AR1,    #0x9045
lri $IX1,    #0xacb4
lri $WR1,    #0x9725
cw 0xd
call send_back  ; 32735 (0x7fdf)

lri $AR1,    #0x95d6
lri $IX1,    #0xfca6
lri $WR1,    #0xaab0
cw 0xd
call send_back  ; 32736 (0x7fe0)

lri $AR1,    #0x7b37
lri $IX1,    #0xb15c
lri $WR1,    #0x4857
cw 0xd
call send_back  ; 32737 (0x7fe1)

lri $AR1,    #0x94e9
lri $IX1,    #0x1e06
lri $WR1,    #0xbf01
cw 0xd
call send_back  ; 32738 (0x7fe2)

lri $AR1,    #0x67bf
lri $IX1,    #0x7546
lri $WR1,    #0x6108
cw 0xd
call send_back  ; 32739 (0x7fe3)

lri $AR1,    #0xb215
lri $IX1,    #0xb100
lri $WR1,    #0x9919
cw 0xd
call send_back  ; 32740 (0x7fe4)

lri $AR1,    #0xa261
lri $IX1,    #0x5d70
lri $WR1,    #0x6197
cw 0xd
call send_back  ; 32741 (0x7fe5)

lri $AR1,    #0x7336
lri $IX1,    #0x622e
lri $WR1,    #0x6dfc
cw 0xd
call send_back  ; 32742 (0x7fe6)

lri $AR1,    #0xc8b7
lri $IX1,    #0xa384
lri $WR1,    #0x9755
cw 0xd
call send_back  ; 32743 (0x7fe7)

lri $AR1,    #0xc2b1
lri $IX1,    #0xa9ea
lri $WR1,    #0x2263
cw 0xd
call send_back  ; 32744 (0x7fe8)

lri $AR1,    #0xa234
lri $IX1,    #0x44e2
lri $WR1,    #0x9f6c
cw 0xd
call send_back  ; 32745 (0x7fe9)

lri $AR1,    #0x80fb
lri $IX1,    #0x3a20
lri $WR1,    #0x5161
cw 0xd
call send_back  ; 32746 (0x7fea)

lri $AR1,    #0x4c70
lri $IX1,    #0x612e
lri $WR1,    #0x9b47
cw 0xd
call send_back  ; 32747 (0x7feb)

lri $AR1,    #0x5da0
lri $IX1,    #0xef8a
lri $WR1,    #0xc893
cw 0xd
call send_back  ; 32748 (0x7fec)

lri $AR1,    #0x82ec
lri $IX1,    #0x1050
lri $WR1,    #0x7e7a
cw 0xd
call send_back  ; 32749 (0x7fed)

lri $AR1,    #0x7fcb
lri $IX1,    #0x0e82
lri $WR1,    #0xa1c1
cw 0xd
call send_back  ; 32750 (0x7fee)

lri $AR1,    #0xca61
lri $IX1,    #0x3802
lri $WR1,    #0x5e2c
cw 0xd
call send_back  ; 32751 (0x7fef)

lri $AR1,    #0x8650
lri $IX1,    #0x1342
lri $WR1,    #0xa209
cw 0xd
call send_back  ; 32752 (0x7ff0)

lri $AR1,    #0xc77f
lri $IX1,    #0x68d0
lri $WR1,    #0xa9fd
cw 0xd
call send_back  ; 32753 (0x7ff1)

lri $AR1,    #0x6731
lri $IX1,    #0xddb0
lri $WR1,    #0x8687
cw 0xd
call send_back  ; 32754 (0x7ff2)

lri $AR1,    #0x893b
lri $IX1,    #0x4aae
lri $WR1,    #0xb66e
cw 0xd
call send_back  ; 32755 (0x7ff3)

lri $AR1,    #0xb6a8
lri $IX1,    #0x80a8
lri $WR1,    #0x667e
cw 0xd
call send_back  ; 32756 (0x7ff4)

lri $AR1,    #0x8e96
lri $IX1,    #0xa0f2
lri $WR1,    #0x80cb
cw 0xd
call send_back  ; 32757 (0x7ff5)

lri $AR1,    #0x5dae
lri $IX1,    #0x7cc0
lri $WR1,    #0xd2f9
cw 0xd
call send_back  ; 32758 (0x7ff6)

lri $AR1,    #0x4fe6
lri $IX1,    #0x6de0
lri $WR1,    #0x9490
cw 0xd
call send_back  ; 32759 (0x7ff7)

lri $AR1,    #0x4804
lri $IX1,    #0xae8e
lri $WR1,    #0x5bfe
cw 0xd
call send_back  ; 32760 (0x7ff8)

lri $AR1,    #0x9398
lri $IX1,    #0x3db8
lri $WR1,    #0x7a52
cw 0xd
call send_back  ; 32761 (0x7ff9)

lri $AR1,    #0x91bc
lri $IX1,    #0xb87a
lri $WR1,    #0x2330
cw 0xd
call send_back  ; 32762 (0x7ffa)

lri $AR1,    #0xd682
lri $IX1,    #0x2138
lri $WR1,    #0x982a
cw 0xd
call send_back  ; 32763 (0x7ffb)

lri $AR1,    #0x3c3e
lri $IX1,    #0x2ffc
lri $WR1,    #0x23f4
cw 0xd
call send_back  ; 32764 (0x7ffc)

lri $AR1,    #0x8fa1
lri $IX1,    #0x5fa4
lri $WR1,    #0x6b97
cw 0xd
call send_back  ; 32765 (0x7ffd)

lri $AR1,    #0x72d0
lri $IX1,    #0x5668
lri $WR1,    #0x5920
cw 0xd
call send_back  ; 32766 (0x7ffe)

lri $AR1,    #0x9768
lri $IX1,    #0x6850
lri $WR1,    #0x04ed
cw 0xd
call send_back  ; 32767 (0x7fff)

lri $AR1,    #0xe6a2
lri $IX1,    #0xa534
lri $WR1,    #0x681e
cw 0xd
call send_back  ; 32768 (0x8000)

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