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

lri $AR1,    #0xb2f6
lri $IX1,    #0x1a5a
lri $WR1,    #0x4808
cw 0xd
call send_back  ; 17696 (0x4520)

lri $AR1,    #0xaa2f
lri $IX1,    #0x66d6
lri $WR1,    #0x6287
cw 0xd
call send_back  ; 17697 (0x4521)

lri $AR1,    #0x9e23
lri $IX1,    #0x677c
lri $WR1,    #0xc9f0
cw 0xd
call send_back  ; 17698 (0x4522)

lri $AR1,    #0x24f0
lri $IX1,    #0xd6a8
lri $WR1,    #0x6563
cw 0xd
call send_back  ; 17699 (0x4523)

lri $AR1,    #0xd414
lri $IX1,    #0xca4e
lri $WR1,    #0x9762
cw 0xd
call send_back  ; 17700 (0x4524)

lri $AR1,    #0x7e72
lri $IX1,    #0xc286
lri $WR1,    #0x6ab5
cw 0xd
call send_back  ; 17701 (0x4525)

lri $AR1,    #0x2bd8
lri $IX1,    #0xaa18
lri $WR1,    #0x154e
cw 0xd
call send_back  ; 17702 (0x4526)

lri $AR1,    #0x85fb
lri $IX1,    #0x834c
lri $WR1,    #0xc240
cw 0xd
call send_back  ; 17703 (0x4527)

lri $AR1,    #0x8e04
lri $IX1,    #0xcee6
lri $WR1,    #0x995f
cw 0xd
call send_back  ; 17704 (0x4528)

lri $AR1,    #0x59b1
lri $IX1,    #0x8288
lri $WR1,    #0xa49c
cw 0xd
call send_back  ; 17705 (0x4529)

lri $AR1,    #0xb63c
lri $IX1,    #0x7f52
lri $WR1,    #0x609a
cw 0xd
call send_back  ; 17706 (0x452a)

lri $AR1,    #0x42db
lri $IX1,    #0xc910
lri $WR1,    #0x57a4
cw 0xd
call send_back  ; 17707 (0x452b)

lri $AR1,    #0x3c3b
lri $IX1,    #0x21c8
lri $WR1,    #0x7b88
cw 0xd
call send_back  ; 17708 (0x452c)

lri $AR1,    #0xadaa
lri $IX1,    #0x04fa
lri $WR1,    #0x6c5f
cw 0xd
call send_back  ; 17709 (0x452d)

lri $AR1,    #0x6c5c
lri $IX1,    #0x2950
lri $WR1,    #0xd7e5
cw 0xd
call send_back  ; 17710 (0x452e)

lri $AR1,    #0x8486
lri $IX1,    #0x8f30
lri $WR1,    #0x7e62
cw 0xd
call send_back  ; 17711 (0x452f)

lri $AR1,    #0x77a5
lri $IX1,    #0x95d6
lri $WR1,    #0x8fbb
cw 0xd
call send_back  ; 17712 (0x4530)

lri $AR1,    #0xb6d0
lri $IX1,    #0x7872
lri $WR1,    #0xdcbc
cw 0xd
call send_back  ; 17713 (0x4531)

lri $AR1,    #0x8347
lri $IX1,    #0xcff0
lri $WR1,    #0xa61a
cw 0xd
call send_back  ; 17714 (0x4532)

lri $AR1,    #0xb32f
lri $IX1,    #0x25de
lri $WR1,    #0x8460
cw 0xd
call send_back  ; 17715 (0x4533)

lri $AR1,    #0x1fac
lri $IX1,    #0x2828
lri $WR1,    #0x5931
cw 0xd
call send_back  ; 17716 (0x4534)

lri $AR1,    #0x9d51
lri $IX1,    #0x84fe
lri $WR1,    #0xd408
cw 0xd
call send_back  ; 17717 (0x4535)

lri $AR1,    #0xaefe
lri $IX1,    #0xc1c4
lri $WR1,    #0x31ff
cw 0xd
call send_back  ; 17718 (0x4536)

lri $AR1,    #0x873c
lri $IX1,    #0x5f44
lri $WR1,    #0x61a2
cw 0xd
call send_back  ; 17719 (0x4537)

lri $AR1,    #0xc32d
lri $IX1,    #0x310c
lri $WR1,    #0x7977
cw 0xd
call send_back  ; 17720 (0x4538)

lri $AR1,    #0x760f
lri $IX1,    #0xd524
lri $WR1,    #0xd932
cw 0xd
call send_back  ; 17721 (0x4539)

lri $AR1,    #0x7b7b
lri $IX1,    #0x9518
lri $WR1,    #0xbb2c
cw 0xd
call send_back  ; 17722 (0x453a)

lri $AR1,    #0x7a4e
lri $IX1,    #0x8886
lri $WR1,    #0x4d40
cw 0xd
call send_back  ; 17723 (0x453b)

lri $AR1,    #0x697e
lri $IX1,    #0x750e
lri $WR1,    #0x7d75
cw 0xd
call send_back  ; 17724 (0x453c)

lri $AR1,    #0x23a8
lri $IX1,    #0x7ee2
lri $WR1,    #0x60bc
cw 0xd
call send_back  ; 17725 (0x453d)

lri $AR1,    #0x85af
lri $IX1,    #0x28f0
lri $WR1,    #0x5717
cw 0xd
call send_back  ; 17726 (0x453e)

lri $AR1,    #0x983e
lri $IX1,    #0x42bc
lri $WR1,    #0xb26b
cw 0xd
call send_back  ; 17727 (0x453f)

lri $AR1,    #0x3b6d
lri $IX1,    #0x15ea
lri $WR1,    #0x8a6c
cw 0xd
call send_back  ; 17728 (0x4540)

lri $AR1,    #0x976f
lri $IX1,    #0x4cb0
lri $WR1,    #0x71c6
cw 0xd
call send_back  ; 17729 (0x4541)

lri $AR1,    #0x9486
lri $IX1,    #0x860c
lri $WR1,    #0xce0a
cw 0xd
call send_back  ; 17730 (0x4542)

lri $AR1,    #0x301c
lri $IX1,    #0x3bfa
lri $WR1,    #0x856c
cw 0xd
call send_back  ; 17731 (0x4543)

lri $AR1,    #0x8c40
lri $IX1,    #0x639c
lri $WR1,    #0x6aef
cw 0xd
call send_back  ; 17732 (0x4544)

lri $AR1,    #0x7271
lri $IX1,    #0xe67c
lri $WR1,    #0x2b05
cw 0xd
call send_back  ; 17733 (0x4545)

lri $AR1,    #0x91e1
lri $IX1,    #0x9fdc
lri $WR1,    #0x5828
cw 0xd
call send_back  ; 17734 (0x4546)

lri $AR1,    #0x652f
lri $IX1,    #0xc848
lri $WR1,    #0xf8a6
cw 0xd
call send_back  ; 17735 (0x4547)

lri $AR1,    #0x42b6
lri $IX1,    #0x8d52
lri $WR1,    #0x7bf2
cw 0xd
call send_back  ; 17736 (0x4548)

lri $AR1,    #0x8671
lri $IX1,    #0xdaaa
lri $WR1,    #0xa7c3
cw 0xd
call send_back  ; 17737 (0x4549)

lri $AR1,    #0xe39c
lri $IX1,    #0xf58e
lri $WR1,    #0xba6d
cw 0xd
call send_back  ; 17738 (0x454a)

lri $AR1,    #0x9ff8
lri $IX1,    #0x5aaa
lri $WR1,    #0x9191
cw 0xd
call send_back  ; 17739 (0x454b)

lri $AR1,    #0xa205
lri $IX1,    #0x3274
lri $WR1,    #0x79ba
cw 0xd
call send_back  ; 17740 (0x454c)

lri $AR1,    #0xb6ee
lri $IX1,    #0x871a
lri $WR1,    #0x44ea
cw 0xd
call send_back  ; 17741 (0x454d)

lri $AR1,    #0xa487
lri $IX1,    #0x1306
lri $WR1,    #0x43ab
cw 0xd
call send_back  ; 17742 (0x454e)

lri $AR1,    #0x5f30
lri $IX1,    #0xde1a
lri $WR1,    #0x1dbe
cw 0xd
call send_back  ; 17743 (0x454f)

lri $AR1,    #0x72dc
lri $IX1,    #0xd3a4
lri $WR1,    #0xace6
cw 0xd
call send_back  ; 17744 (0x4550)

lri $AR1,    #0x3a1a
lri $IX1,    #0xe224
lri $WR1,    #0xc5f4
cw 0xd
call send_back  ; 17745 (0x4551)

lri $AR1,    #0xbd6e
lri $IX1,    #0xf1e0
lri $WR1,    #0xa98e
cw 0xd
call send_back  ; 17746 (0x4552)

lri $AR1,    #0xe8c8
lri $IX1,    #0xee8c
lri $WR1,    #0x87d6
cw 0xd
call send_back  ; 17747 (0x4553)

lri $AR1,    #0x8c60
lri $IX1,    #0x23ba
lri $WR1,    #0xf76e
cw 0xd
call send_back  ; 17748 (0x4554)

lri $AR1,    #0xb9e1
lri $IX1,    #0x2392
lri $WR1,    #0x59f7
cw 0xd
call send_back  ; 17749 (0x4555)

lri $AR1,    #0x5e13
lri $IX1,    #0x3a70
lri $WR1,    #0x459b
cw 0xd
call send_back  ; 17750 (0x4556)

lri $AR1,    #0x5ae5
lri $IX1,    #0xf1e6
lri $WR1,    #0x8c9c
cw 0xd
call send_back  ; 17751 (0x4557)

lri $AR1,    #0xbd30
lri $IX1,    #0x38c6
lri $WR1,    #0x41a1
cw 0xd
call send_back  ; 17752 (0x4558)

lri $AR1,    #0xd4e9
lri $IX1,    #0x4dae
lri $WR1,    #0x80a2
cw 0xd
call send_back  ; 17753 (0x4559)

lri $AR1,    #0xd62f
lri $IX1,    #0x64c4
lri $WR1,    #0xb22a
cw 0xd
call send_back  ; 17754 (0x455a)

lri $AR1,    #0x9ce9
lri $IX1,    #0x110e
lri $WR1,    #0xcfe8
cw 0xd
call send_back  ; 17755 (0x455b)

lri $AR1,    #0x9461
lri $IX1,    #0x9d0e
lri $WR1,    #0x4726
cw 0xd
call send_back  ; 17756 (0x455c)

lri $AR1,    #0x7f8d
lri $IX1,    #0x9632
lri $WR1,    #0xcf38
cw 0xd
call send_back  ; 17757 (0x455d)

lri $AR1,    #0x4e75
lri $IX1,    #0xb9a0
lri $WR1,    #0x4770
cw 0xd
call send_back  ; 17758 (0x455e)

lri $AR1,    #0xb06e
lri $IX1,    #0x10dc
lri $WR1,    #0xd1ab
cw 0xd
call send_back  ; 17759 (0x455f)

lri $AR1,    #0x8a83
lri $IX1,    #0x4016
lri $WR1,    #0x43fd
cw 0xd
call send_back  ; 17760 (0x4560)

lri $AR1,    #0x44e2
lri $IX1,    #0xaf5a
lri $WR1,    #0x9597
cw 0xd
call send_back  ; 17761 (0x4561)

lri $AR1,    #0x6190
lri $IX1,    #0x337e
lri $WR1,    #0x7879
cw 0xd
call send_back  ; 17762 (0x4562)

lri $AR1,    #0xe242
lri $IX1,    #0x0b22
lri $WR1,    #0xc2f0
cw 0xd
call send_back  ; 17763 (0x4563)

lri $AR1,    #0x0a9b
lri $IX1,    #0x4794
lri $WR1,    #0x817b
cw 0xd
call send_back  ; 17764 (0x4564)

lri $AR1,    #0x67b3
lri $IX1,    #0xf0d0
lri $WR1,    #0xe334
cw 0xd
call send_back  ; 17765 (0x4565)

lri $AR1,    #0x9522
lri $IX1,    #0x3f92
lri $WR1,    #0x1026
cw 0xd
call send_back  ; 17766 (0x4566)

lri $AR1,    #0x5b6e
lri $IX1,    #0x07ae
lri $WR1,    #0x3ad6
cw 0xd
call send_back  ; 17767 (0x4567)

lri $AR1,    #0x5b28
lri $IX1,    #0xc078
lri $WR1,    #0xc353
cw 0xd
call send_back  ; 17768 (0x4568)

lri $AR1,    #0x6386
lri $IX1,    #0x60bc
lri $WR1,    #0x6c1c
cw 0xd
call send_back  ; 17769 (0x4569)

lri $AR1,    #0xb2c4
lri $IX1,    #0x5ecc
lri $WR1,    #0xce35
cw 0xd
call send_back  ; 17770 (0x456a)

lri $AR1,    #0x9232
lri $IX1,    #0x753e
lri $WR1,    #0x4b96
cw 0xd
call send_back  ; 17771 (0x456b)

lri $AR1,    #0x6720
lri $IX1,    #0x2fec
lri $WR1,    #0x9489
cw 0xd
call send_back  ; 17772 (0x456c)

lri $AR1,    #0xcd96
lri $IX1,    #0x9cba
lri $WR1,    #0x4df6
cw 0xd
call send_back  ; 17773 (0x456d)

lri $AR1,    #0x810a
lri $IX1,    #0xa6ce
lri $WR1,    #0xe437
cw 0xd
call send_back  ; 17774 (0x456e)

lri $AR1,    #0x1b07
lri $IX1,    #0x828e
lri $WR1,    #0x7784
cw 0xd
call send_back  ; 17775 (0x456f)

lri $AR1,    #0x66f2
lri $IX1,    #0x044e
lri $WR1,    #0x747e
cw 0xd
call send_back  ; 17776 (0x4570)

lri $AR1,    #0x95d7
lri $IX1,    #0xa2e4
lri $WR1,    #0xb4fd
cw 0xd
call send_back  ; 17777 (0x4571)

lri $AR1,    #0xdc7c
lri $IX1,    #0x22f4
lri $WR1,    #0x5299
cw 0xd
call send_back  ; 17778 (0x4572)

lri $AR1,    #0xd99c
lri $IX1,    #0x5750
lri $WR1,    #0x8606
cw 0xd
call send_back  ; 17779 (0x4573)

lri $AR1,    #0x6983
lri $IX1,    #0xe638
lri $WR1,    #0x63e8
cw 0xd
call send_back  ; 17780 (0x4574)

lri $AR1,    #0xa7f5
lri $IX1,    #0x7ac6
lri $WR1,    #0x6109
cw 0xd
call send_back  ; 17781 (0x4575)

lri $AR1,    #0xb09f
lri $IX1,    #0x1552
lri $WR1,    #0xa59c
cw 0xd
call send_back  ; 17782 (0x4576)

lri $AR1,    #0x91da
lri $IX1,    #0x2d2e
lri $WR1,    #0x38a1
cw 0xd
call send_back  ; 17783 (0x4577)

lri $AR1,    #0xbd31
lri $IX1,    #0xe97a
lri $WR1,    #0x51d8
cw 0xd
call send_back  ; 17784 (0x4578)

lri $AR1,    #0x6c57
lri $IX1,    #0xbe66
lri $WR1,    #0x8a84
cw 0xd
call send_back  ; 17785 (0x4579)

lri $AR1,    #0x50eb
lri $IX1,    #0x17b6
lri $WR1,    #0x125d
cw 0xd
call send_back  ; 17786 (0x457a)

lri $AR1,    #0xd8e1
lri $IX1,    #0x48cc
lri $WR1,    #0x5fea
cw 0xd
call send_back  ; 17787 (0x457b)

lri $AR1,    #0x38d3
lri $IX1,    #0x9e1c
lri $WR1,    #0xe8b4
cw 0xd
call send_back  ; 17788 (0x457c)

lri $AR1,    #0x2916
lri $IX1,    #0x0342
lri $WR1,    #0xa775
cw 0xd
call send_back  ; 17789 (0x457d)

lri $AR1,    #0xb1d4
lri $IX1,    #0x1ca2
lri $WR1,    #0x73cf
cw 0xd
call send_back  ; 17790 (0x457e)

lri $AR1,    #0x660a
lri $IX1,    #0xd2c2
lri $WR1,    #0x5095
cw 0xd
call send_back  ; 17791 (0x457f)

lri $AR1,    #0x64b8
lri $IX1,    #0x015e
lri $WR1,    #0x3b3b
cw 0xd
call send_back  ; 17792 (0x4580)

lri $AR1,    #0x4308
lri $IX1,    #0x2352
lri $WR1,    #0x9079
cw 0xd
call send_back  ; 17793 (0x4581)

lri $AR1,    #0x81c2
lri $IX1,    #0x5052
lri $WR1,    #0xa7bd
cw 0xd
call send_back  ; 17794 (0x4582)

lri $AR1,    #0x43e4
lri $IX1,    #0x90a2
lri $WR1,    #0x386c
cw 0xd
call send_back  ; 17795 (0x4583)

lri $AR1,    #0x83a6
lri $IX1,    #0x4eb8
lri $WR1,    #0x5185
cw 0xd
call send_back  ; 17796 (0x4584)

lri $AR1,    #0xdeba
lri $IX1,    #0x6604
lri $WR1,    #0x85c6
cw 0xd
call send_back  ; 17797 (0x4585)

lri $AR1,    #0xa219
lri $IX1,    #0xd9be
lri $WR1,    #0xcbcb
cw 0xd
call send_back  ; 17798 (0x4586)

lri $AR1,    #0x6138
lri $IX1,    #0x7dfa
lri $WR1,    #0x534e
cw 0xd
call send_back  ; 17799 (0x4587)

lri $AR1,    #0x7bda
lri $IX1,    #0xb0da
lri $WR1,    #0x9600
cw 0xd
call send_back  ; 17800 (0x4588)

lri $AR1,    #0x616e
lri $IX1,    #0x893c
lri $WR1,    #0x9428
cw 0xd
call send_back  ; 17801 (0x4589)

lri $AR1,    #0x8034
lri $IX1,    #0x7b8e
lri $WR1,    #0x5a73
cw 0xd
call send_back  ; 17802 (0x458a)

lri $AR1,    #0x8207
lri $IX1,    #0x4548
lri $WR1,    #0x8035
cw 0xd
call send_back  ; 17803 (0x458b)

lri $AR1,    #0x200b
lri $IX1,    #0xd2ae
lri $WR1,    #0xa276
cw 0xd
call send_back  ; 17804 (0x458c)

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