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

lri $AR1,    #0x36c7
lri $IX1,    #0x5b42
lri $WR1,    #0xa4ec
cw 0xd
call send_back  ; 30803 (0x7853)

lri $AR1,    #0x8c6c
lri $IX1,    #0x6e1e
lri $WR1,    #0x62bc
cw 0xd
call send_back  ; 30804 (0x7854)

lri $AR1,    #0x3575
lri $IX1,    #0xdef6
lri $WR1,    #0x7786
cw 0xd
call send_back  ; 30805 (0x7855)

lri $AR1,    #0x7c70
lri $IX1,    #0x9630
lri $WR1,    #0x7557
cw 0xd
call send_back  ; 30806 (0x7856)

lri $AR1,    #0x91d8
lri $IX1,    #0x3022
lri $WR1,    #0x461e
cw 0xd
call send_back  ; 30807 (0x7857)

lri $AR1,    #0xe3c9
lri $IX1,    #0xd72c
lri $WR1,    #0x99e8
cw 0xd
call send_back  ; 30808 (0x7858)

lri $AR1,    #0x8846
lri $IX1,    #0x102e
lri $WR1,    #0x89d4
cw 0xd
call send_back  ; 30809 (0x7859)

lri $AR1,    #0x6033
lri $IX1,    #0xf25e
lri $WR1,    #0xa557
cw 0xd
call send_back  ; 30810 (0x785a)

lri $AR1,    #0x8cff
lri $IX1,    #0x5280
lri $WR1,    #0x70c7
cw 0xd
call send_back  ; 30811 (0x785b)

lri $AR1,    #0xba3a
lri $IX1,    #0x8da6
lri $WR1,    #0xf1d5
cw 0xd
call send_back  ; 30812 (0x785c)

lri $AR1,    #0x77e5
lri $IX1,    #0xb684
lri $WR1,    #0x9ffe
cw 0xd
call send_back  ; 30813 (0x785d)

lri $AR1,    #0x51d0
lri $IX1,    #0xd442
lri $WR1,    #0x4c7e
cw 0xd
call send_back  ; 30814 (0x785e)

lri $AR1,    #0x53d5
lri $IX1,    #0x8134
lri $WR1,    #0x36d7
cw 0xd
call send_back  ; 30815 (0x785f)

lri $AR1,    #0x224a
lri $IX1,    #0x6b10
lri $WR1,    #0xe884
cw 0xd
call send_back  ; 30816 (0x7860)

lri $AR1,    #0x1965
lri $IX1,    #0xde28
lri $WR1,    #0x7be2
cw 0xd
call send_back  ; 30817 (0x7861)

lri $AR1,    #0x65f1
lri $IX1,    #0x805c
lri $WR1,    #0x7fd7
cw 0xd
call send_back  ; 30818 (0x7862)

lri $AR1,    #0x1d2c
lri $IX1,    #0x9012
lri $WR1,    #0x1b57
cw 0xd
call send_back  ; 30819 (0x7863)

lri $AR1,    #0x6101
lri $IX1,    #0x3f22
lri $WR1,    #0x494c
cw 0xd
call send_back  ; 30820 (0x7864)

lri $AR1,    #0x7991
lri $IX1,    #0xf8ce
lri $WR1,    #0x5ef4
cw 0xd
call send_back  ; 30821 (0x7865)

lri $AR1,    #0x5c39
lri $IX1,    #0x6ddc
lri $WR1,    #0x6c45
cw 0xd
call send_back  ; 30822 (0x7866)

lri $AR1,    #0x3c0a
lri $IX1,    #0x00e4
lri $WR1,    #0xc76a
cw 0xd
call send_back  ; 30823 (0x7867)

lri $AR1,    #0x56dd
lri $IX1,    #0x80c8
lri $WR1,    #0x99db
cw 0xd
call send_back  ; 30824 (0x7868)

lri $AR1,    #0x9ded
lri $IX1,    #0xe698
lri $WR1,    #0x6f41
cw 0xd
call send_back  ; 30825 (0x7869)

lri $AR1,    #0x7841
lri $IX1,    #0xe7b0
lri $WR1,    #0x7384
cw 0xd
call send_back  ; 30826 (0x786a)

lri $AR1,    #0x90b0
lri $IX1,    #0x7c6a
lri $WR1,    #0x1f47
cw 0xd
call send_back  ; 30827 (0x786b)

lri $AR1,    #0xc8d4
lri $IX1,    #0xdf2e
lri $WR1,    #0x673a
cw 0xd
call send_back  ; 30828 (0x786c)

lri $AR1,    #0x65b8
lri $IX1,    #0xdf26
lri $WR1,    #0x7c6f
cw 0xd
call send_back  ; 30829 (0x786d)

lri $AR1,    #0x3a9e
lri $IX1,    #0x8d7c
lri $WR1,    #0xa927
cw 0xd
call send_back  ; 30830 (0x786e)

lri $AR1,    #0x5998
lri $IX1,    #0x2b62
lri $WR1,    #0xb740
cw 0xd
call send_back  ; 30831 (0x786f)

lri $AR1,    #0x8953
lri $IX1,    #0xb2b4
lri $WR1,    #0x72c8
cw 0xd
call send_back  ; 30832 (0x7870)

lri $AR1,    #0x4ae3
lri $IX1,    #0x3a8e
lri $WR1,    #0xa4bb
cw 0xd
call send_back  ; 30833 (0x7871)

lri $AR1,    #0x79d7
lri $IX1,    #0xb49c
lri $WR1,    #0xaf98
cw 0xd
call send_back  ; 30834 (0x7872)

lri $AR1,    #0x646f
lri $IX1,    #0xef7a
lri $WR1,    #0xa8c0
cw 0xd
call send_back  ; 30835 (0x7873)

lri $AR1,    #0x8142
lri $IX1,    #0x4df0
lri $WR1,    #0xbf3a
cw 0xd
call send_back  ; 30836 (0x7874)

lri $AR1,    #0x831d
lri $IX1,    #0x1a5e
lri $WR1,    #0x59fb
cw 0xd
call send_back  ; 30837 (0x7875)

lri $AR1,    #0x5b70
lri $IX1,    #0xa924
lri $WR1,    #0xf51c
cw 0xd
call send_back  ; 30838 (0x7876)

lri $AR1,    #0x1f20
lri $IX1,    #0x7c5e
lri $WR1,    #0x4747
cw 0xd
call send_back  ; 30839 (0x7877)

lri $AR1,    #0x9900
lri $IX1,    #0x2eb4
lri $WR1,    #0x7da3
cw 0xd
call send_back  ; 30840 (0x7878)

lri $AR1,    #0x80c8
lri $IX1,    #0xf29c
lri $WR1,    #0xc69a
cw 0xd
call send_back  ; 30841 (0x7879)

lri $AR1,    #0x2ce3
lri $IX1,    #0xcee2
lri $WR1,    #0x50cf
cw 0xd
call send_back  ; 30842 (0x787a)

lri $AR1,    #0x88ca
lri $IX1,    #0x50b2
lri $WR1,    #0x356d
cw 0xd
call send_back  ; 30843 (0x787b)

lri $AR1,    #0x8161
lri $IX1,    #0x0f08
lri $WR1,    #0x5a67
cw 0xd
call send_back  ; 30844 (0x787c)

lri $AR1,    #0xd402
lri $IX1,    #0xf2c8
lri $WR1,    #0x129f
cw 0xd
call send_back  ; 30845 (0x787d)

lri $AR1,    #0x9ca2
lri $IX1,    #0xa258
lri $WR1,    #0x7fa0
cw 0xd
call send_back  ; 30846 (0x787e)

lri $AR1,    #0x82c5
lri $IX1,    #0x8f10
lri $WR1,    #0xd9e5
cw 0xd
call send_back  ; 30847 (0x787f)

lri $AR1,    #0xdcb4
lri $IX1,    #0xd62c
lri $WR1,    #0x2a47
cw 0xd
call send_back  ; 30848 (0x7880)

lri $AR1,    #0x6b9f
lri $IX1,    #0x4ed6
lri $WR1,    #0x88a8
cw 0xd
call send_back  ; 30849 (0x7881)

lri $AR1,    #0xd316
lri $IX1,    #0x99c4
lri $WR1,    #0x815f
cw 0xd
call send_back  ; 30850 (0x7882)

lri $AR1,    #0x81a1
lri $IX1,    #0xb706
lri $WR1,    #0x3477
cw 0xd
call send_back  ; 30851 (0x7883)

lri $AR1,    #0xc7bf
lri $IX1,    #0x6998
lri $WR1,    #0x7759
cw 0xd
call send_back  ; 30852 (0x7884)

lri $AR1,    #0x362a
lri $IX1,    #0x6836
lri $WR1,    #0x9ae9
cw 0xd
call send_back  ; 30853 (0x7885)

lri $AR1,    #0x6ba5
lri $IX1,    #0xe61a
lri $WR1,    #0xd5ae
cw 0xd
call send_back  ; 30854 (0x7886)

lri $AR1,    #0x9e29
lri $IX1,    #0x3e24
lri $WR1,    #0x1306
cw 0xd
call send_back  ; 30855 (0x7887)

lri $AR1,    #0xc2c2
lri $IX1,    #0x5dfe
lri $WR1,    #0x6e0d
cw 0xd
call send_back  ; 30856 (0x7888)

lri $AR1,    #0xa2e9
lri $IX1,    #0xd6cc
lri $WR1,    #0x482f
cw 0xd
call send_back  ; 30857 (0x7889)

lri $AR1,    #0x4da5
lri $IX1,    #0x1406
lri $WR1,    #0x9906
cw 0xd
call send_back  ; 30858 (0x788a)

lri $AR1,    #0x8659
lri $IX1,    #0x08e8
lri $WR1,    #0x268a
cw 0xd
call send_back  ; 30859 (0x788b)

lri $AR1,    #0x7a72
lri $IX1,    #0x8844
lri $WR1,    #0x2a2a
cw 0xd
call send_back  ; 30860 (0x788c)

lri $AR1,    #0x82d7
lri $IX1,    #0x51fa
lri $WR1,    #0x60e1
cw 0xd
call send_back  ; 30861 (0x788d)

lri $AR1,    #0x656b
lri $IX1,    #0x8cec
lri $WR1,    #0x81bc
cw 0xd
call send_back  ; 30862 (0x788e)

lri $AR1,    #0x4e6d
lri $IX1,    #0xc3ce
lri $WR1,    #0x7813
cw 0xd
call send_back  ; 30863 (0x788f)

lri $AR1,    #0x70fc
lri $IX1,    #0x6e8c
lri $WR1,    #0x63d1
cw 0xd
call send_back  ; 30864 (0x7890)

lri $AR1,    #0x49a8
lri $IX1,    #0x7992
lri $WR1,    #0x2bfa
cw 0xd
call send_back  ; 30865 (0x7891)

lri $AR1,    #0x3d40
lri $IX1,    #0xf7e6
lri $WR1,    #0x3cfc
cw 0xd
call send_back  ; 30866 (0x7892)

lri $AR1,    #0xa1d4
lri $IX1,    #0x1c4a
lri $WR1,    #0x3dcd
cw 0xd
call send_back  ; 30867 (0x7893)

lri $AR1,    #0x0709
lri $IX1,    #0x992e
lri $WR1,    #0x7c77
cw 0xd
call send_back  ; 30868 (0x7894)

lri $AR1,    #0xaec9
lri $IX1,    #0x7ee6
lri $WR1,    #0xec10
cw 0xd
call send_back  ; 30869 (0x7895)

lri $AR1,    #0x7667
lri $IX1,    #0x7ace
lri $WR1,    #0xabc7
cw 0xd
call send_back  ; 30870 (0x7896)

lri $AR1,    #0xd434
lri $IX1,    #0xd9c2
lri $WR1,    #0x8ff7
cw 0xd
call send_back  ; 30871 (0x7897)

lri $AR1,    #0x64b5
lri $IX1,    #0xc3b8
lri $WR1,    #0xebeb
cw 0xd
call send_back  ; 30872 (0x7898)

lri $AR1,    #0xae5e
lri $IX1,    #0xadb8
lri $WR1,    #0xc451
cw 0xd
call send_back  ; 30873 (0x7899)

lri $AR1,    #0xa21a
lri $IX1,    #0xdb2a
lri $WR1,    #0x7ffb
cw 0xd
call send_back  ; 30874 (0x789a)

lri $AR1,    #0x5271
lri $IX1,    #0xd69c
lri $WR1,    #0x7ded
cw 0xd
call send_back  ; 30875 (0x789b)

lri $AR1,    #0x4296
lri $IX1,    #0xedf4
lri $WR1,    #0x8d56
cw 0xd
call send_back  ; 30876 (0x789c)

lri $AR1,    #0x6a43
lri $IX1,    #0xd54a
lri $WR1,    #0x7d83
cw 0xd
call send_back  ; 30877 (0x789d)

lri $AR1,    #0x7a8b
lri $IX1,    #0x7f42
lri $WR1,    #0xb949
cw 0xd
call send_back  ; 30878 (0x789e)

lri $AR1,    #0x73a0
lri $IX1,    #0xd930
lri $WR1,    #0x831c
cw 0xd
call send_back  ; 30879 (0x789f)

lri $AR1,    #0x92bd
lri $IX1,    #0x4ce4
lri $WR1,    #0x4c36
cw 0xd
call send_back  ; 30880 (0x78a0)

lri $AR1,    #0x6b0d
lri $IX1,    #0x9152
lri $WR1,    #0xab00
cw 0xd
call send_back  ; 30881 (0x78a1)

lri $AR1,    #0x7be4
lri $IX1,    #0x4f12
lri $WR1,    #0x823e
cw 0xd
call send_back  ; 30882 (0x78a2)

lri $AR1,    #0x2a13
lri $IX1,    #0x4cd2
lri $WR1,    #0x5c12
cw 0xd
call send_back  ; 30883 (0x78a3)

lri $AR1,    #0x89ae
lri $IX1,    #0x1bbc
lri $WR1,    #0x3163
cw 0xd
call send_back  ; 30884 (0x78a4)

lri $AR1,    #0x4108
lri $IX1,    #0x72fc
lri $WR1,    #0xafc0
cw 0xd
call send_back  ; 30885 (0x78a5)

lri $AR1,    #0x5d48
lri $IX1,    #0x754c
lri $WR1,    #0x6d3b
cw 0xd
call send_back  ; 30886 (0x78a6)

lri $AR1,    #0x9452
lri $IX1,    #0xdacc
lri $WR1,    #0xbb6c
cw 0xd
call send_back  ; 30887 (0x78a7)

lri $AR1,    #0x8768
lri $IX1,    #0x4cf0
lri $WR1,    #0x500d
cw 0xd
call send_back  ; 30888 (0x78a8)

lri $AR1,    #0x8538
lri $IX1,    #0x09f0
lri $WR1,    #0xa350
cw 0xd
call send_back  ; 30889 (0x78a9)

lri $AR1,    #0x69d1
lri $IX1,    #0x0060
lri $WR1,    #0x917d
cw 0xd
call send_back  ; 30890 (0x78aa)

lri $AR1,    #0x6e1e
lri $IX1,    #0xe35e
lri $WR1,    #0x5ee6
cw 0xd
call send_back  ; 30891 (0x78ab)

lri $AR1,    #0xe060
lri $IX1,    #0x1b28
lri $WR1,    #0x92b9
cw 0xd
call send_back  ; 30892 (0x78ac)

lri $AR1,    #0x3a59
lri $IX1,    #0xcd4c
lri $WR1,    #0x96d4
cw 0xd
call send_back  ; 30893 (0x78ad)

lri $AR1,    #0xb990
lri $IX1,    #0x636e
lri $WR1,    #0x8817
cw 0xd
call send_back  ; 30894 (0x78ae)

lri $AR1,    #0xe16e
lri $IX1,    #0xd6c4
lri $WR1,    #0x8450
cw 0xd
call send_back  ; 30895 (0x78af)

lri $AR1,    #0x8685
lri $IX1,    #0x7a42
lri $WR1,    #0x6848
cw 0xd
call send_back  ; 30896 (0x78b0)

lri $AR1,    #0x8de0
lri $IX1,    #0xe4a6
lri $WR1,    #0x3a0a
cw 0xd
call send_back  ; 30897 (0x78b1)

lri $AR1,    #0x4a91
lri $IX1,    #0xd756
lri $WR1,    #0x48f5
cw 0xd
call send_back  ; 30898 (0x78b2)

lri $AR1,    #0x3772
lri $IX1,    #0x6e32
lri $WR1,    #0x3e94
cw 0xd
call send_back  ; 30899 (0x78b3)

lri $AR1,    #0x923f
lri $IX1,    #0x6856
lri $WR1,    #0x50f0
cw 0xd
call send_back  ; 30900 (0x78b4)

lri $AR1,    #0x78f8
lri $IX1,    #0xd10c
lri $WR1,    #0x6048
cw 0xd
call send_back  ; 30901 (0x78b5)

lri $AR1,    #0x79d6
lri $IX1,    #0x9baa
lri $WR1,    #0x67d8
cw 0xd
call send_back  ; 30902 (0x78b6)

lri $AR1,    #0x6995
lri $IX1,    #0xc4ce
lri $WR1,    #0xaab2
cw 0xd
call send_back  ; 30903 (0x78b7)

lri $AR1,    #0xab6a
lri $IX1,    #0x1eb8
lri $WR1,    #0x4b41
cw 0xd
call send_back  ; 30904 (0x78b8)

lri $AR1,    #0xc187
lri $IX1,    #0xf604
lri $WR1,    #0x657a
cw 0xd
call send_back  ; 30905 (0x78b9)

lri $AR1,    #0xdc59
lri $IX1,    #0x17b6
lri $WR1,    #0xb15d
cw 0xd
call send_back  ; 30906 (0x78ba)

lri $AR1,    #0x9273
lri $IX1,    #0x50be
lri $WR1,    #0x84c6
cw 0xd
call send_back  ; 30907 (0x78bb)

lri $AR1,    #0x525c
lri $IX1,    #0x22ec
lri $WR1,    #0x2123
cw 0xd
call send_back  ; 30908 (0x78bc)

lri $AR1,    #0xdb28
lri $IX1,    #0x028e
lri $WR1,    #0x7326
cw 0xd
call send_back  ; 30909 (0x78bd)

lri $AR1,    #0x780b
lri $IX1,    #0xdb80
lri $WR1,    #0xa7f7
cw 0xd
call send_back  ; 30910 (0x78be)

lri $AR1,    #0x3ee7
lri $IX1,    #0xbc1a
lri $WR1,    #0x9cfe
cw 0xd
call send_back  ; 30911 (0x78bf)

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