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

lri $AR1,    #0x7d03
lri $IX1,    #0xb32a
lri $WR1,    #0x4f29
cw 0xd
call send_back  ; 6555 (0x199b)

lri $AR1,    #0xa4b0
lri $IX1,    #0x9e06
lri $WR1,    #0x47cb
cw 0xd
call send_back  ; 6556 (0x199c)

lri $AR1,    #0x79dd
lri $IX1,    #0xc8a0
lri $WR1,    #0x7bed
cw 0xd
call send_back  ; 6557 (0x199d)

lri $AR1,    #0xa1b7
lri $IX1,    #0xaa74
lri $WR1,    #0x37df
cw 0xd
call send_back  ; 6558 (0x199e)

lri $AR1,    #0x74c6
lri $IX1,    #0xbbee
lri $WR1,    #0x8ccb
cw 0xd
call send_back  ; 6559 (0x199f)

lri $AR1,    #0x82de
lri $IX1,    #0xbe38
lri $WR1,    #0x55e1
cw 0xd
call send_back  ; 6560 (0x19a0)

lri $AR1,    #0x5203
lri $IX1,    #0x61de
lri $WR1,    #0xacc4
cw 0xd
call send_back  ; 6561 (0x19a1)

lri $AR1,    #0xaaa0
lri $IX1,    #0x514e
lri $WR1,    #0x5eb1
cw 0xd
call send_back  ; 6562 (0x19a2)

lri $AR1,    #0xd6dd
lri $IX1,    #0xd350
lri $WR1,    #0x6580
cw 0xd
call send_back  ; 6563 (0x19a3)

lri $AR1,    #0x4266
lri $IX1,    #0x7d64
lri $WR1,    #0x9d13
cw 0xd
call send_back  ; 6564 (0x19a4)

lri $AR1,    #0xc369
lri $IX1,    #0xa550
lri $WR1,    #0xc72e
cw 0xd
call send_back  ; 6565 (0x19a5)

lri $AR1,    #0x6522
lri $IX1,    #0x4ca4
lri $WR1,    #0xcd5c
cw 0xd
call send_back  ; 6566 (0x19a6)

lri $AR1,    #0xafd0
lri $IX1,    #0x0098
lri $WR1,    #0x71ed
cw 0xd
call send_back  ; 6567 (0x19a7)

lri $AR1,    #0x8147
lri $IX1,    #0x7bfc
lri $WR1,    #0xa692
cw 0xd
call send_back  ; 6568 (0x19a8)

lri $AR1,    #0x7514
lri $IX1,    #0xa09c
lri $WR1,    #0x68b7
cw 0xd
call send_back  ; 6569 (0x19a9)

lri $AR1,    #0x7a5b
lri $IX1,    #0x78e2
lri $WR1,    #0xb11c
cw 0xd
call send_back  ; 6570 (0x19aa)

lri $AR1,    #0xe95e
lri $IX1,    #0x420a
lri $WR1,    #0x95c8
cw 0xd
call send_back  ; 6571 (0x19ab)

lri $AR1,    #0x91f8
lri $IX1,    #0xe2a6
lri $WR1,    #0x92e3
cw 0xd
call send_back  ; 6572 (0x19ac)

lri $AR1,    #0x37c1
lri $IX1,    #0x88de
lri $WR1,    #0x6885
cw 0xd
call send_back  ; 6573 (0x19ad)

lri $AR1,    #0x205a
lri $IX1,    #0x572e
lri $WR1,    #0x7904
cw 0xd
call send_back  ; 6574 (0x19ae)

lri $AR1,    #0x9b82
lri $IX1,    #0xe5e0
lri $WR1,    #0x74e4
cw 0xd
call send_back  ; 6575 (0x19af)

lri $AR1,    #0xa465
lri $IX1,    #0xd344
lri $WR1,    #0x46e8
cw 0xd
call send_back  ; 6576 (0x19b0)

lri $AR1,    #0x46e4
lri $IX1,    #0x83b0
lri $WR1,    #0xfc55
cw 0xd
call send_back  ; 6577 (0x19b1)

lri $AR1,    #0xb32b
lri $IX1,    #0x6e60
lri $WR1,    #0x32fd
cw 0xd
call send_back  ; 6578 (0x19b2)

lri $AR1,    #0x3d6b
lri $IX1,    #0xc34c
lri $WR1,    #0x4829
cw 0xd
call send_back  ; 6579 (0x19b3)

lri $AR1,    #0x4ef6
lri $IX1,    #0xb9ec
lri $WR1,    #0x78d6
cw 0xd
call send_back  ; 6580 (0x19b4)

lri $AR1,    #0x69a8
lri $IX1,    #0x501e
lri $WR1,    #0xbd7c
cw 0xd
call send_back  ; 6581 (0x19b5)

lri $AR1,    #0xadcf
lri $IX1,    #0x8c10
lri $WR1,    #0x48cf
cw 0xd
call send_back  ; 6582 (0x19b6)

lri $AR1,    #0xb67f
lri $IX1,    #0x537a
lri $WR1,    #0x9299
cw 0xd
call send_back  ; 6583 (0x19b7)

lri $AR1,    #0x7788
lri $IX1,    #0x7df2
lri $WR1,    #0x9d3c
cw 0xd
call send_back  ; 6584 (0x19b8)

lri $AR1,    #0x73f2
lri $IX1,    #0xcfae
lri $WR1,    #0x8de8
cw 0xd
call send_back  ; 6585 (0x19b9)

lri $AR1,    #0x8341
lri $IX1,    #0xe588
lri $WR1,    #0x9d11
cw 0xd
call send_back  ; 6586 (0x19ba)

lri $AR1,    #0xcf61
lri $IX1,    #0xaa88
lri $WR1,    #0xb64e
cw 0xd
call send_back  ; 6587 (0x19bb)

lri $AR1,    #0x9c72
lri $IX1,    #0x92da
lri $WR1,    #0xb404
cw 0xd
call send_back  ; 6588 (0x19bc)

lri $AR1,    #0xa75d
lri $IX1,    #0x6f5e
lri $WR1,    #0xdd1d
cw 0xd
call send_back  ; 6589 (0x19bd)

lri $AR1,    #0x5774
lri $IX1,    #0x18cc
lri $WR1,    #0x8838
cw 0xd
call send_back  ; 6590 (0x19be)

lri $AR1,    #0x82e9
lri $IX1,    #0x5094
lri $WR1,    #0x6977
cw 0xd
call send_back  ; 6591 (0x19bf)

lri $AR1,    #0x7d83
lri $IX1,    #0xe966
lri $WR1,    #0x756a
cw 0xd
call send_back  ; 6592 (0x19c0)

lri $AR1,    #0x7441
lri $IX1,    #0x70a6
lri $WR1,    #0xcd39
cw 0xd
call send_back  ; 6593 (0x19c1)

lri $AR1,    #0x9850
lri $IX1,    #0x0d9a
lri $WR1,    #0xb590
cw 0xd
call send_back  ; 6594 (0x19c2)

lri $AR1,    #0xaf26
lri $IX1,    #0xfab0
lri $WR1,    #0x8b60
cw 0xd
call send_back  ; 6595 (0x19c3)

lri $AR1,    #0xa500
lri $IX1,    #0xc090
lri $WR1,    #0x5f08
cw 0xd
call send_back  ; 6596 (0x19c4)

lri $AR1,    #0x1aa6
lri $IX1,    #0x1272
lri $WR1,    #0x37f2
cw 0xd
call send_back  ; 6597 (0x19c5)

lri $AR1,    #0x76ba
lri $IX1,    #0xb666
lri $WR1,    #0x603c
cw 0xd
call send_back  ; 6598 (0x19c6)

lri $AR1,    #0xa662
lri $IX1,    #0x23e4
lri $WR1,    #0x5968
cw 0xd
call send_back  ; 6599 (0x19c7)

lri $AR1,    #0x50a9
lri $IX1,    #0x5686
lri $WR1,    #0xa0cb
cw 0xd
call send_back  ; 6600 (0x19c8)

lri $AR1,    #0xab53
lri $IX1,    #0x9a2c
lri $WR1,    #0x9395
cw 0xd
call send_back  ; 6601 (0x19c9)

lri $AR1,    #0x3f8a
lri $IX1,    #0xb15c
lri $WR1,    #0x7034
cw 0xd
call send_back  ; 6602 (0x19ca)

lri $AR1,    #0xa01b
lri $IX1,    #0x8634
lri $WR1,    #0x840a
cw 0xd
call send_back  ; 6603 (0x19cb)

lri $AR1,    #0x3ab2
lri $IX1,    #0x79b0
lri $WR1,    #0x69fb
cw 0xd
call send_back  ; 6604 (0x19cc)

lri $AR1,    #0x68c3
lri $IX1,    #0x3cae
lri $WR1,    #0x3806
cw 0xd
call send_back  ; 6605 (0x19cd)

lri $AR1,    #0x9493
lri $IX1,    #0xc960
lri $WR1,    #0x7750
cw 0xd
call send_back  ; 6606 (0x19ce)

lri $AR1,    #0x8a0b
lri $IX1,    #0x739a
lri $WR1,    #0x23d6
cw 0xd
call send_back  ; 6607 (0x19cf)

lri $AR1,    #0x42c9
lri $IX1,    #0xf9b0
lri $WR1,    #0x9638
cw 0xd
call send_back  ; 6608 (0x19d0)

lri $AR1,    #0x882b
lri $IX1,    #0xe750
lri $WR1,    #0x83c2
cw 0xd
call send_back  ; 6609 (0x19d1)

lri $AR1,    #0x859f
lri $IX1,    #0x570e
lri $WR1,    #0x8e38
cw 0xd
call send_back  ; 6610 (0x19d2)

lri $AR1,    #0xb921
lri $IX1,    #0x0f08
lri $WR1,    #0x8e75
cw 0xd
call send_back  ; 6611 (0x19d3)

lri $AR1,    #0x7717
lri $IX1,    #0xf85e
lri $WR1,    #0xba79
cw 0xd
call send_back  ; 6612 (0x19d4)

lri $AR1,    #0x5276
lri $IX1,    #0xe8e0
lri $WR1,    #0x60e1
cw 0xd
call send_back  ; 6613 (0x19d5)

lri $AR1,    #0x8971
lri $IX1,    #0x81ba
lri $WR1,    #0x9171
cw 0xd
call send_back  ; 6614 (0x19d6)

lri $AR1,    #0x7a87
lri $IX1,    #0x6568
lri $WR1,    #0x0ba9
cw 0xd
call send_back  ; 6615 (0x19d7)

lri $AR1,    #0x7d38
lri $IX1,    #0x1ac8
lri $WR1,    #0x920c
cw 0xd
call send_back  ; 6616 (0x19d8)

lri $AR1,    #0xa54a
lri $IX1,    #0x7aa6
lri $WR1,    #0xaa0e
cw 0xd
call send_back  ; 6617 (0x19d9)

lri $AR1,    #0x56c4
lri $IX1,    #0x6072
lri $WR1,    #0x3e56
cw 0xd
call send_back  ; 6618 (0x19da)

lri $AR1,    #0x849b
lri $IX1,    #0x669c
lri $WR1,    #0xea4d
cw 0xd
call send_back  ; 6619 (0x19db)

lri $AR1,    #0x5b44
lri $IX1,    #0x9a3a
lri $WR1,    #0x4b9a
cw 0xd
call send_back  ; 6620 (0x19dc)

lri $AR1,    #0xd401
lri $IX1,    #0x295c
lri $WR1,    #0x6f8e
cw 0xd
call send_back  ; 6621 (0x19dd)

lri $AR1,    #0x9d48
lri $IX1,    #0xfaf8
lri $WR1,    #0xb018
cw 0xd
call send_back  ; 6622 (0x19de)

lri $AR1,    #0x47f7
lri $IX1,    #0xbe80
lri $WR1,    #0x754e
cw 0xd
call send_back  ; 6623 (0x19df)

lri $AR1,    #0x20c8
lri $IX1,    #0x3530
lri $WR1,    #0x3621
cw 0xd
call send_back  ; 6624 (0x19e0)

lri $AR1,    #0x68b2
lri $IX1,    #0x1e3e
lri $WR1,    #0x9c40
cw 0xd
call send_back  ; 6625 (0x19e1)

lri $AR1,    #0x9ea8
lri $IX1,    #0x2aca
lri $WR1,    #0x3cc6
cw 0xd
call send_back  ; 6626 (0x19e2)

lri $AR1,    #0xa06b
lri $IX1,    #0x8de6
lri $WR1,    #0x48b9
cw 0xd
call send_back  ; 6627 (0x19e3)

lri $AR1,    #0xefc9
lri $IX1,    #0x0066
lri $WR1,    #0xcdf9
cw 0xd
call send_back  ; 6628 (0x19e4)

lri $AR1,    #0x4527
lri $IX1,    #0x47f6
lri $WR1,    #0x7a98
cw 0xd
call send_back  ; 6629 (0x19e5)

lri $AR1,    #0xa788
lri $IX1,    #0x5c1c
lri $WR1,    #0x3240
cw 0xd
call send_back  ; 6630 (0x19e6)

lri $AR1,    #0x65ff
lri $IX1,    #0x0396
lri $WR1,    #0x86ad
cw 0xd
call send_back  ; 6631 (0x19e7)

lri $AR1,    #0x65c8
lri $IX1,    #0x17ca
lri $WR1,    #0xa9d1
cw 0xd
call send_back  ; 6632 (0x19e8)

lri $AR1,    #0x23e5
lri $IX1,    #0x63aa
lri $WR1,    #0x99a4
cw 0xd
call send_back  ; 6633 (0x19e9)

lri $AR1,    #0xe87f
lri $IX1,    #0x2eda
lri $WR1,    #0xf343
cw 0xd
call send_back  ; 6634 (0x19ea)

lri $AR1,    #0x5df3
lri $IX1,    #0xd554
lri $WR1,    #0xec65
cw 0xd
call send_back  ; 6635 (0x19eb)

lri $AR1,    #0x64ba
lri $IX1,    #0x2f86
lri $WR1,    #0xc7b0
cw 0xd
call send_back  ; 6636 (0x19ec)

lri $AR1,    #0x7928
lri $IX1,    #0xe5fc
lri $WR1,    #0x9207
cw 0xd
call send_back  ; 6637 (0x19ed)

lri $AR1,    #0xaf23
lri $IX1,    #0xf7a6
lri $WR1,    #0x7462
cw 0xd
call send_back  ; 6638 (0x19ee)

lri $AR1,    #0x8bbf
lri $IX1,    #0x98da
lri $WR1,    #0x4732
cw 0xd
call send_back  ; 6639 (0x19ef)

lri $AR1,    #0xbc0d
lri $IX1,    #0x04f8
lri $WR1,    #0xb9f6
cw 0xd
call send_back  ; 6640 (0x19f0)

lri $AR1,    #0xb3e6
lri $IX1,    #0xc3fe
lri $WR1,    #0x2b02
cw 0xd
call send_back  ; 6641 (0x19f1)

lri $AR1,    #0x7efb
lri $IX1,    #0x20e0
lri $WR1,    #0x9908
cw 0xd
call send_back  ; 6642 (0x19f2)

lri $AR1,    #0xe213
lri $IX1,    #0xfcda
lri $WR1,    #0x497c
cw 0xd
call send_back  ; 6643 (0x19f3)

lri $AR1,    #0x31a8
lri $IX1,    #0xafba
lri $WR1,    #0x3459
cw 0xd
call send_back  ; 6644 (0x19f4)

lri $AR1,    #0xdec8
lri $IX1,    #0x1c42
lri $WR1,    #0x5f68
cw 0xd
call send_back  ; 6645 (0x19f5)

lri $AR1,    #0x0a8c
lri $IX1,    #0x6b9a
lri $WR1,    #0x7078
cw 0xd
call send_back  ; 6646 (0x19f6)

lri $AR1,    #0x53d9
lri $IX1,    #0xe1fe
lri $WR1,    #0xbfc4
cw 0xd
call send_back  ; 6647 (0x19f7)

lri $AR1,    #0x6ae8
lri $IX1,    #0xd29a
lri $WR1,    #0x78e9
cw 0xd
call send_back  ; 6648 (0x19f8)

lri $AR1,    #0xa136
lri $IX1,    #0xbfcc
lri $WR1,    #0x42a6
cw 0xd
call send_back  ; 6649 (0x19f9)

lri $AR1,    #0x8c4d
lri $IX1,    #0x10a0
lri $WR1,    #0x52cf
cw 0xd
call send_back  ; 6650 (0x19fa)

lri $AR1,    #0x4530
lri $IX1,    #0x53ea
lri $WR1,    #0xa5a4
cw 0xd
call send_back  ; 6651 (0x19fb)

lri $AR1,    #0x35a4
lri $IX1,    #0xaca4
lri $WR1,    #0x250e
cw 0xd
call send_back  ; 6652 (0x19fc)

lri $AR1,    #0xa049
lri $IX1,    #0x9b1a
lri $WR1,    #0xc5c1
cw 0xd
call send_back  ; 6653 (0x19fd)

lri $AR1,    #0x7fb3
lri $IX1,    #0xc178
lri $WR1,    #0x5dfd
cw 0xd
call send_back  ; 6654 (0x19fe)

lri $AR1,    #0x5c71
lri $IX1,    #0x6236
lri $WR1,    #0x9acf
cw 0xd
call send_back  ; 6655 (0x19ff)

lri $AR1,    #0x312a
lri $IX1,    #0x0a16
lri $WR1,    #0x5e86
cw 0xd
call send_back  ; 6656 (0x1a00)

lri $AR1,    #0x3fd6
lri $IX1,    #0xff24
lri $WR1,    #0xdc59
cw 0xd
call send_back  ; 6657 (0x1a01)

lri $AR1,    #0x3a29
lri $IX1,    #0x895e
lri $WR1,    #0xd2d0
cw 0xd
call send_back  ; 6658 (0x1a02)

lri $AR1,    #0x332b
lri $IX1,    #0xd974
lri $WR1,    #0x380c
cw 0xd
call send_back  ; 6659 (0x1a03)

lri $AR1,    #0xd742
lri $IX1,    #0x1568
lri $WR1,    #0x6068
cw 0xd
call send_back  ; 6660 (0x1a04)

lri $AR1,    #0x436b
lri $IX1,    #0xca58
lri $WR1,    #0x81a0
cw 0xd
call send_back  ; 6661 (0x1a05)

lri $AR1,    #0xe40e
lri $IX1,    #0x8e44
lri $WR1,    #0x51ea
cw 0xd
call send_back  ; 6662 (0x1a06)

lri $AR1,    #0x6727
lri $IX1,    #0xdc30
lri $WR1,    #0x443c
cw 0xd
call send_back  ; 6663 (0x1a07)

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