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

lri $AR1,    #0xcfab
lri $IX1,    #0x4d2c
lri $WR1,    #0x5580
cw 0xd
call send_back  ; 58655 (0xe51f)

lri $AR1,    #0xb545
lri $IX1,    #0xa81c
lri $WR1,    #0x87c1
cw 0xd
call send_back  ; 58656 (0xe520)

lri $AR1,    #0xa7ba
lri $IX1,    #0xe1b4
lri $WR1,    #0x72ec
cw 0xd
call send_back  ; 58657 (0xe521)

lri $AR1,    #0xa989
lri $IX1,    #0x3718
lri $WR1,    #0xb421
cw 0xd
call send_back  ; 58658 (0xe522)

lri $AR1,    #0xc7d3
lri $IX1,    #0x11a0
lri $WR1,    #0xa57f
cw 0xd
call send_back  ; 58659 (0xe523)

lri $AR1,    #0x7713
lri $IX1,    #0xde40
lri $WR1,    #0xa48a
cw 0xd
call send_back  ; 58660 (0xe524)

lri $AR1,    #0x912c
lri $IX1,    #0xdc16
lri $WR1,    #0x7f0a
cw 0xd
call send_back  ; 58661 (0xe525)

lri $AR1,    #0x8cef
lri $IX1,    #0xdce2
lri $WR1,    #0x35ef
cw 0xd
call send_back  ; 58662 (0xe526)

lri $AR1,    #0xab0e
lri $IX1,    #0xb1f2
lri $WR1,    #0x874d
cw 0xd
call send_back  ; 58663 (0xe527)

lri $AR1,    #0xebb3
lri $IX1,    #0x5308
lri $WR1,    #0xb5f8
cw 0xd
call send_back  ; 58664 (0xe528)

lri $AR1,    #0x8b9c
lri $IX1,    #0x94c8
lri $WR1,    #0x2ee0
cw 0xd
call send_back  ; 58665 (0xe529)

lri $AR1,    #0xe701
lri $IX1,    #0x5f4c
lri $WR1,    #0xd9aa
cw 0xd
call send_back  ; 58666 (0xe52a)

lri $AR1,    #0xd41d
lri $IX1,    #0xa566
lri $WR1,    #0x73a1
cw 0xd
call send_back  ; 58667 (0xe52b)

lri $AR1,    #0x2e98
lri $IX1,    #0xc01c
lri $WR1,    #0x2991
cw 0xd
call send_back  ; 58668 (0xe52c)

lri $AR1,    #0xc8c4
lri $IX1,    #0x29e8
lri $WR1,    #0x9e94
cw 0xd
call send_back  ; 58669 (0xe52d)

lri $AR1,    #0xa6d3
lri $IX1,    #0xc07c
lri $WR1,    #0x8b65
cw 0xd
call send_back  ; 58670 (0xe52e)

lri $AR1,    #0x2bf8
lri $IX1,    #0x9336
lri $WR1,    #0x834e
cw 0xd
call send_back  ; 58671 (0xe52f)

lri $AR1,    #0x18b4
lri $IX1,    #0xb858
lri $WR1,    #0x9134
cw 0xd
call send_back  ; 58672 (0xe530)

lri $AR1,    #0xc51b
lri $IX1,    #0x8a10
lri $WR1,    #0xa8e1
cw 0xd
call send_back  ; 58673 (0xe531)

lri $AR1,    #0xc16e
lri $IX1,    #0xe84a
lri $WR1,    #0xb60b
cw 0xd
call send_back  ; 58674 (0xe532)

lri $AR1,    #0xdad1
lri $IX1,    #0x8b94
lri $WR1,    #0x443d
cw 0xd
call send_back  ; 58675 (0xe533)

lri $AR1,    #0x496b
lri $IX1,    #0xf8da
lri $WR1,    #0xb01a
cw 0xd
call send_back  ; 58676 (0xe534)

lri $AR1,    #0x68cb
lri $IX1,    #0x1d4c
lri $WR1,    #0x6c1d
cw 0xd
call send_back  ; 58677 (0xe535)

lri $AR1,    #0x2ad4
lri $IX1,    #0xe54e
lri $WR1,    #0x805f
cw 0xd
call send_back  ; 58678 (0xe536)

lri $AR1,    #0x590e
lri $IX1,    #0x20ac
lri $WR1,    #0x6e6f
cw 0xd
call send_back  ; 58679 (0xe537)

lri $AR1,    #0x0f9c
lri $IX1,    #0x99ee
lri $WR1,    #0x67d0
cw 0xd
call send_back  ; 58680 (0xe538)

lri $AR1,    #0x88ba
lri $IX1,    #0x4e22
lri $WR1,    #0x2f36
cw 0xd
call send_back  ; 58681 (0xe539)

lri $AR1,    #0x2f01
lri $IX1,    #0x0dd2
lri $WR1,    #0xe9fd
cw 0xd
call send_back  ; 58682 (0xe53a)

lri $AR1,    #0x6050
lri $IX1,    #0x5f9c
lri $WR1,    #0x78fc
cw 0xd
call send_back  ; 58683 (0xe53b)

lri $AR1,    #0x329c
lri $IX1,    #0x2020
lri $WR1,    #0x853e
cw 0xd
call send_back  ; 58684 (0xe53c)

lri $AR1,    #0xc782
lri $IX1,    #0xf290
lri $WR1,    #0xa6b1
cw 0xd
call send_back  ; 58685 (0xe53d)

lri $AR1,    #0xaae6
lri $IX1,    #0x00dc
lri $WR1,    #0x4858
cw 0xd
call send_back  ; 58686 (0xe53e)

lri $AR1,    #0x3c70
lri $IX1,    #0xa982
lri $WR1,    #0x8f17
cw 0xd
call send_back  ; 58687 (0xe53f)

lri $AR1,    #0x1b3b
lri $IX1,    #0x6d2c
lri $WR1,    #0x6da4
cw 0xd
call send_back  ; 58688 (0xe540)

lri $AR1,    #0x5679
lri $IX1,    #0x950e
lri $WR1,    #0x99ab
cw 0xd
call send_back  ; 58689 (0xe541)

lri $AR1,    #0xa56d
lri $IX1,    #0x8726
lri $WR1,    #0x23bb
cw 0xd
call send_back  ; 58690 (0xe542)

lri $AR1,    #0x7c7e
lri $IX1,    #0x6c70
lri $WR1,    #0xe509
cw 0xd
call send_back  ; 58691 (0xe543)

lri $AR1,    #0xdcbf
lri $IX1,    #0x910e
lri $WR1,    #0xab98
cw 0xd
call send_back  ; 58692 (0xe544)

lri $AR1,    #0x16ab
lri $IX1,    #0x9d8a
lri $WR1,    #0x66d8
cw 0xd
call send_back  ; 58693 (0xe545)

lri $AR1,    #0x4878
lri $IX1,    #0x5426
lri $WR1,    #0xf449
cw 0xd
call send_back  ; 58694 (0xe546)

lri $AR1,    #0x83c2
lri $IX1,    #0xbc6e
lri $WR1,    #0x6d32
cw 0xd
call send_back  ; 58695 (0xe547)

lri $AR1,    #0x9de5
lri $IX1,    #0x7af4
lri $WR1,    #0x5c0b
cw 0xd
call send_back  ; 58696 (0xe548)

lri $AR1,    #0x99dc
lri $IX1,    #0x5a68
lri $WR1,    #0x6988
cw 0xd
call send_back  ; 58697 (0xe549)

lri $AR1,    #0xb9e2
lri $IX1,    #0xa708
lri $WR1,    #0xbefd
cw 0xd
call send_back  ; 58698 (0xe54a)

lri $AR1,    #0x7abb
lri $IX1,    #0xcc82
lri $WR1,    #0x6d0d
cw 0xd
call send_back  ; 58699 (0xe54b)

lri $AR1,    #0x61e4
lri $IX1,    #0x8a46
lri $WR1,    #0x7b43
cw 0xd
call send_back  ; 58700 (0xe54c)

lri $AR1,    #0x8389
lri $IX1,    #0xe98a
lri $WR1,    #0xbe9f
cw 0xd
call send_back  ; 58701 (0xe54d)

lri $AR1,    #0x547e
lri $IX1,    #0xcbb0
lri $WR1,    #0x92ac
cw 0xd
call send_back  ; 58702 (0xe54e)

lri $AR1,    #0xa023
lri $IX1,    #0x47a2
lri $WR1,    #0x722a
cw 0xd
call send_back  ; 58703 (0xe54f)

lri $AR1,    #0xb16a
lri $IX1,    #0xffa8
lri $WR1,    #0x91df
cw 0xd
call send_back  ; 58704 (0xe550)

lri $AR1,    #0xc9e4
lri $IX1,    #0x0142
lri $WR1,    #0x6998
cw 0xd
call send_back  ; 58705 (0xe551)

lri $AR1,    #0x4114
lri $IX1,    #0x7bba
lri $WR1,    #0xe4ff
cw 0xd
call send_back  ; 58706 (0xe552)

lri $AR1,    #0x79e9
lri $IX1,    #0x89c2
lri $WR1,    #0xa733
cw 0xd
call send_back  ; 58707 (0xe553)

lri $AR1,    #0xa39f
lri $IX1,    #0x4dec
lri $WR1,    #0xc1d7
cw 0xd
call send_back  ; 58708 (0xe554)

lri $AR1,    #0x56dc
lri $IX1,    #0x9960
lri $WR1,    #0x598c
cw 0xd
call send_back  ; 58709 (0xe555)

lri $AR1,    #0x6f69
lri $IX1,    #0x1f7c
lri $WR1,    #0xcf7b
cw 0xd
call send_back  ; 58710 (0xe556)

lri $AR1,    #0x6637
lri $IX1,    #0xb8cc
lri $WR1,    #0x88e9
cw 0xd
call send_back  ; 58711 (0xe557)

lri $AR1,    #0x471e
lri $IX1,    #0x4b28
lri $WR1,    #0xb37a
cw 0xd
call send_back  ; 58712 (0xe558)

lri $AR1,    #0x8914
lri $IX1,    #0x742c
lri $WR1,    #0x4e27
cw 0xd
call send_back  ; 58713 (0xe559)

lri $AR1,    #0x6f36
lri $IX1,    #0xef00
lri $WR1,    #0x2c7b
cw 0xd
call send_back  ; 58714 (0xe55a)

lri $AR1,    #0x8c6c
lri $IX1,    #0xbda4
lri $WR1,    #0x7b25
cw 0xd
call send_back  ; 58715 (0xe55b)

lri $AR1,    #0x6b00
lri $IX1,    #0x41a2
lri $WR1,    #0x626e
cw 0xd
call send_back  ; 58716 (0xe55c)

lri $AR1,    #0x94e8
lri $IX1,    #0x8762
lri $WR1,    #0x9cac
cw 0xd
call send_back  ; 58717 (0xe55d)

lri $AR1,    #0xa92c
lri $IX1,    #0xf30a
lri $WR1,    #0x9431
cw 0xd
call send_back  ; 58718 (0xe55e)

lri $AR1,    #0xae21
lri $IX1,    #0x1d22
lri $WR1,    #0xbdd8
cw 0xd
call send_back  ; 58719 (0xe55f)

lri $AR1,    #0xc7d2
lri $IX1,    #0xe0d8
lri $WR1,    #0x4ab5
cw 0xd
call send_back  ; 58720 (0xe560)

lri $AR1,    #0x456d
lri $IX1,    #0x4538
lri $WR1,    #0x54fc
cw 0xd
call send_back  ; 58721 (0xe561)

lri $AR1,    #0x77f7
lri $IX1,    #0xe618
lri $WR1,    #0x39aa
cw 0xd
call send_back  ; 58722 (0xe562)

lri $AR1,    #0x5825
lri $IX1,    #0xb118
lri $WR1,    #0xc20c
cw 0xd
call send_back  ; 58723 (0xe563)

lri $AR1,    #0x889a
lri $IX1,    #0x0e86
lri $WR1,    #0xf5a4
cw 0xd
call send_back  ; 58724 (0xe564)

lri $AR1,    #0x9d6e
lri $IX1,    #0xc55e
lri $WR1,    #0x4689
cw 0xd
call send_back  ; 58725 (0xe565)

lri $AR1,    #0xa139
lri $IX1,    #0xf55e
lri $WR1,    #0xa7c7
cw 0xd
call send_back  ; 58726 (0xe566)

lri $AR1,    #0x7381
lri $IX1,    #0x4154
lri $WR1,    #0x5ee1
cw 0xd
call send_back  ; 58727 (0xe567)

lri $AR1,    #0xb3d7
lri $IX1,    #0x979a
lri $WR1,    #0x66eb
cw 0xd
call send_back  ; 58728 (0xe568)

lri $AR1,    #0x5871
lri $IX1,    #0xcdfa
lri $WR1,    #0xe561
cw 0xd
call send_back  ; 58729 (0xe569)

lri $AR1,    #0xae8b
lri $IX1,    #0x61c6
lri $WR1,    #0xde46
cw 0xd
call send_back  ; 58730 (0xe56a)

lri $AR1,    #0x3675
lri $IX1,    #0xfc94
lri $WR1,    #0x6693
cw 0xd
call send_back  ; 58731 (0xe56b)

lri $AR1,    #0x747f
lri $IX1,    #0xc13e
lri $WR1,    #0x6991
cw 0xd
call send_back  ; 58732 (0xe56c)

lri $AR1,    #0x4bb0
lri $IX1,    #0xbcaa
lri $WR1,    #0x8f2b
cw 0xd
call send_back  ; 58733 (0xe56d)

lri $AR1,    #0x2680
lri $IX1,    #0x00f8
lri $WR1,    #0x4eb8
cw 0xd
call send_back  ; 58734 (0xe56e)

lri $AR1,    #0x7579
lri $IX1,    #0xd194
lri $WR1,    #0x9b70
cw 0xd
call send_back  ; 58735 (0xe56f)

lri $AR1,    #0xc300
lri $IX1,    #0xb9d0
lri $WR1,    #0xbcf6
cw 0xd
call send_back  ; 58736 (0xe570)

lri $AR1,    #0xa721
lri $IX1,    #0x4f82
lri $WR1,    #0xb022
cw 0xd
call send_back  ; 58737 (0xe571)

lri $AR1,    #0x25a3
lri $IX1,    #0x9e4e
lri $WR1,    #0xb989
cw 0xd
call send_back  ; 58738 (0xe572)

lri $AR1,    #0x543e
lri $IX1,    #0xa806
lri $WR1,    #0x84e3
cw 0xd
call send_back  ; 58739 (0xe573)

lri $AR1,    #0x6e41
lri $IX1,    #0xe9ea
lri $WR1,    #0xa1d1
cw 0xd
call send_back  ; 58740 (0xe574)

lri $AR1,    #0x9670
lri $IX1,    #0x4e14
lri $WR1,    #0x481d
cw 0xd
call send_back  ; 58741 (0xe575)

lri $AR1,    #0xd775
lri $IX1,    #0x3bdc
lri $WR1,    #0xeafd
cw 0xd
call send_back  ; 58742 (0xe576)

lri $AR1,    #0x56ad
lri $IX1,    #0x7994
lri $WR1,    #0xa46c
cw 0xd
call send_back  ; 58743 (0xe577)

lri $AR1,    #0x84a0
lri $IX1,    #0x255c
lri $WR1,    #0xc731
cw 0xd
call send_back  ; 58744 (0xe578)

lri $AR1,    #0xc202
lri $IX1,    #0x1264
lri $WR1,    #0x4f88
cw 0xd
call send_back  ; 58745 (0xe579)

lri $AR1,    #0xcf71
lri $IX1,    #0x3370
lri $WR1,    #0x582e
cw 0xd
call send_back  ; 58746 (0xe57a)

lri $AR1,    #0x51e4
lri $IX1,    #0x4ae2
lri $WR1,    #0x8aa7
cw 0xd
call send_back  ; 58747 (0xe57b)

lri $AR1,    #0x1cf2
lri $IX1,    #0xbc2e
lri $WR1,    #0x977c
cw 0xd
call send_back  ; 58748 (0xe57c)

lri $AR1,    #0xaff1
lri $IX1,    #0xf1f2
lri $WR1,    #0x7c69
cw 0xd
call send_back  ; 58749 (0xe57d)

lri $AR1,    #0x4209
lri $IX1,    #0x378c
lri $WR1,    #0x9c10
cw 0xd
call send_back  ; 58750 (0xe57e)

lri $AR1,    #0x3d3c
lri $IX1,    #0x0488
lri $WR1,    #0x4c42
cw 0xd
call send_back  ; 58751 (0xe57f)

lri $AR1,    #0x7f87
lri $IX1,    #0x6ba0
lri $WR1,    #0x6574
cw 0xd
call send_back  ; 58752 (0xe580)

lri $AR1,    #0x8513
lri $IX1,    #0x86b2
lri $WR1,    #0xe75d
cw 0xd
call send_back  ; 58753 (0xe581)

lri $AR1,    #0x1da8
lri $IX1,    #0x346e
lri $WR1,    #0xd46e
cw 0xd
call send_back  ; 58754 (0xe582)

lri $AR1,    #0x6346
lri $IX1,    #0x2c1a
lri $WR1,    #0xd709
cw 0xd
call send_back  ; 58755 (0xe583)

lri $AR1,    #0x2f24
lri $IX1,    #0x2f2a
lri $WR1,    #0x792e
cw 0xd
call send_back  ; 58756 (0xe584)

lri $AR1,    #0xa5f4
lri $IX1,    #0xd812
lri $WR1,    #0x909a
cw 0xd
call send_back  ; 58757 (0xe585)

lri $AR1,    #0x83b0
lri $IX1,    #0x1108
lri $WR1,    #0x5eeb
cw 0xd
call send_back  ; 58758 (0xe586)

lri $AR1,    #0x72cb
lri $IX1,    #0x7d20
lri $WR1,    #0xa6da
cw 0xd
call send_back  ; 58759 (0xe587)

lri $AR1,    #0x5208
lri $IX1,    #0xf17e
lri $WR1,    #0x7d19
cw 0xd
call send_back  ; 58760 (0xe588)

lri $AR1,    #0x37d7
lri $IX1,    #0x63fa
lri $WR1,    #0x44eb
cw 0xd
call send_back  ; 58761 (0xe589)

lri $AR1,    #0xa17b
lri $IX1,    #0x500a
lri $WR1,    #0x7604
cw 0xd
call send_back  ; 58762 (0xe58a)

lri $AR1,    #0x6fca
lri $IX1,    #0x621e
lri $WR1,    #0x5ab2
cw 0xd
call send_back  ; 58763 (0xe58b)

lri $AR1,    #0x7ae9
lri $IX1,    #0x1d80
lri $WR1,    #0x4afe
cw 0xd
call send_back  ; 58764 (0xe58c)

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