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

lri $AR1,    #0x9a5a
lri $IX1,    #0xd848
lri $WR1,    #0x673e
cw 0xd
call send_back  ; 6017 (0x1781)

lri $AR1,    #0x1476
lri $IX1,    #0xe15e
lri $WR1,    #0xd45a
cw 0xd
call send_back  ; 6018 (0x1782)

lri $AR1,    #0xe826
lri $IX1,    #0x78de
lri $WR1,    #0x2b40
cw 0xd
call send_back  ; 6019 (0x1783)

lri $AR1,    #0x0bde
lri $IX1,    #0x929c
lri $WR1,    #0xd4fa
cw 0xd
call send_back  ; 6020 (0x1784)

lri $AR1,    #0x18fe
lri $IX1,    #0xfef8
lri $WR1,    #0x3cce
cw 0xd
call send_back  ; 6021 (0x1785)

lri $AR1,    #0x2254
lri $IX1,    #0xc98c
lri $WR1,    #0xadec
cw 0xd
call send_back  ; 6022 (0x1786)

lri $AR1,    #0x4e9a
lri $IX1,    #0x6f80
lri $WR1,    #0xbede
cw 0xd
call send_back  ; 6023 (0x1787)

lri $AR1,    #0x09fe
lri $IX1,    #0x0ece
lri $WR1,    #0x1832
cw 0xd
call send_back  ; 6024 (0x1788)

lri $AR1,    #0xd56e
lri $IX1,    #0x2ee0
lri $WR1,    #0x96ee
cw 0xd
call send_back  ; 6025 (0x1789)

lri $AR1,    #0x09f2
lri $IX1,    #0x1644
lri $WR1,    #0x0c9c
cw 0xd
call send_back  ; 6026 (0x178a)

lri $AR1,    #0x7588
lri $IX1,    #0xfd42
lri $WR1,    #0xab7e
cw 0xd
call send_back  ; 6027 (0x178b)

lri $AR1,    #0xa9f4
lri $IX1,    #0x86f0
lri $WR1,    #0x0b40
cw 0xd
call send_back  ; 6028 (0x178c)

lri $AR1,    #0xbf5a
lri $IX1,    #0xa74e
lri $WR1,    #0x0c8e
cw 0xd
call send_back  ; 6029 (0x178d)

lri $AR1,    #0x87da
lri $IX1,    #0x8dbc
lri $WR1,    #0x2a22
cw 0xd
call send_back  ; 6030 (0x178e)

lri $AR1,    #0x8aa2
lri $IX1,    #0x8866
lri $WR1,    #0x7036
cw 0xd
call send_back  ; 6031 (0x178f)

lri $AR1,    #0xd8da
lri $IX1,    #0x7494
lri $WR1,    #0xfed8
cw 0xd
call send_back  ; 6032 (0x1790)

lri $AR1,    #0x2c90
lri $IX1,    #0x0f36
lri $WR1,    #0x2fb0
cw 0xd
call send_back  ; 6033 (0x1791)

lri $AR1,    #0xd162
lri $IX1,    #0x4dd4
lri $WR1,    #0xf346
cw 0xd
call send_back  ; 6034 (0x1792)

lri $AR1,    #0x7478
lri $IX1,    #0xd6a0
lri $WR1,    #0xcfcc
cw 0xd
call send_back  ; 6035 (0x1793)

lri $AR1,    #0x92be
lri $IX1,    #0x966a
lri $WR1,    #0x1e40
cw 0xd
call send_back  ; 6036 (0x1794)

lri $AR1,    #0xe516
lri $IX1,    #0xb0ea
lri $WR1,    #0xba42
cw 0xd
call send_back  ; 6037 (0x1795)

lri $AR1,    #0x6e22
lri $IX1,    #0x1fa6
lri $WR1,    #0x6d12
cw 0xd
call send_back  ; 6038 (0x1796)

lri $AR1,    #0x82cc
lri $IX1,    #0x5c0e
lri $WR1,    #0xc3cc
cw 0xd
call send_back  ; 6039 (0x1797)

lri $AR1,    #0x6960
lri $IX1,    #0x3c20
lri $WR1,    #0xebd2
cw 0xd
call send_back  ; 6040 (0x1798)

lri $AR1,    #0x8dc0
lri $IX1,    #0x9a4e
lri $WR1,    #0x0d78
cw 0xd
call send_back  ; 6041 (0x1799)

lri $AR1,    #0x19e8
lri $IX1,    #0xb1a8
lri $WR1,    #0x668a
cw 0xd
call send_back  ; 6042 (0x179a)

lri $AR1,    #0x3968
lri $IX1,    #0x3aac
lri $WR1,    #0x5e22
cw 0xd
call send_back  ; 6043 (0x179b)

lri $AR1,    #0x3f5c
lri $IX1,    #0xf4b6
lri $WR1,    #0x95f0
cw 0xd
call send_back  ; 6044 (0x179c)

lri $AR1,    #0x8948
lri $IX1,    #0x5994
lri $WR1,    #0xdb98
cw 0xd
call send_back  ; 6045 (0x179d)

lri $AR1,    #0x2736
lri $IX1,    #0x503c
lri $WR1,    #0xaeea
cw 0xd
call send_back  ; 6046 (0x179e)

lri $AR1,    #0x8d7c
lri $IX1,    #0xea4c
lri $WR1,    #0xb12e
cw 0xd
call send_back  ; 6047 (0x179f)

lri $AR1,    #0xeff0
lri $IX1,    #0x7756
lri $WR1,    #0x9c7c
cw 0xd
call send_back  ; 6048 (0x17a0)

lri $AR1,    #0xe7e4
lri $IX1,    #0x8e70
lri $WR1,    #0x5462
cw 0xd
call send_back  ; 6049 (0x17a1)

lri $AR1,    #0x5a30
lri $IX1,    #0x34c6
lri $WR1,    #0x885c
cw 0xd
call send_back  ; 6050 (0x17a2)

lri $AR1,    #0x6d70
lri $IX1,    #0x0116
lri $WR1,    #0x565e
cw 0xd
call send_back  ; 6051 (0x17a3)

lri $AR1,    #0x1b2e
lri $IX1,    #0x1eaa
lri $WR1,    #0xbed4
cw 0xd
call send_back  ; 6052 (0x17a4)

lri $AR1,    #0x7d66
lri $IX1,    #0x07da
lri $WR1,    #0xabdc
cw 0xd
call send_back  ; 6053 (0x17a5)

lri $AR1,    #0xb420
lri $IX1,    #0x0350
lri $WR1,    #0x8f2a
cw 0xd
call send_back  ; 6054 (0x17a6)

lri $AR1,    #0xeb3e
lri $IX1,    #0x1478
lri $WR1,    #0xab4a
cw 0xd
call send_back  ; 6055 (0x17a7)

lri $AR1,    #0xceb4
lri $IX1,    #0xceba
lri $WR1,    #0xaa40
cw 0xd
call send_back  ; 6056 (0x17a8)

lri $AR1,    #0xb5ca
lri $IX1,    #0xa634
lri $WR1,    #0x53b2
cw 0xd
call send_back  ; 6057 (0x17a9)

lri $AR1,    #0x2768
lri $IX1,    #0x8e96
lri $WR1,    #0xcd7e
cw 0xd
call send_back  ; 6058 (0x17aa)

lri $AR1,    #0xe14e
lri $IX1,    #0x2aa0
lri $WR1,    #0x5d46
cw 0xd
call send_back  ; 6059 (0x17ab)

lri $AR1,    #0x42e2
lri $IX1,    #0x9d40
lri $WR1,    #0x60f4
cw 0xd
call send_back  ; 6060 (0x17ac)

lri $AR1,    #0x4056
lri $IX1,    #0xba16
lri $WR1,    #0xbf0a
cw 0xd
call send_back  ; 6061 (0x17ad)

lri $AR1,    #0xabfa
lri $IX1,    #0x7aa4
lri $WR1,    #0x3396
cw 0xd
call send_back  ; 6062 (0x17ae)

lri $AR1,    #0x69ca
lri $IX1,    #0xb476
lri $WR1,    #0x5b7e
cw 0xd
call send_back  ; 6063 (0x17af)

lri $AR1,    #0x649a
lri $IX1,    #0x1480
lri $WR1,    #0xd186
cw 0xd
call send_back  ; 6064 (0x17b0)

lri $AR1,    #0x292a
lri $IX1,    #0x1774
lri $WR1,    #0x08d8
cw 0xd
call send_back  ; 6065 (0x17b1)

lri $AR1,    #0xac4c
lri $IX1,    #0xd5ec
lri $WR1,    #0x2c7a
cw 0xd
call send_back  ; 6066 (0x17b2)

lri $AR1,    #0x0070
lri $IX1,    #0x880e
lri $WR1,    #0xc78c
cw 0xd
call send_back  ; 6067 (0x17b3)

lri $AR1,    #0x636c
lri $IX1,    #0x68a0
lri $WR1,    #0x96e4
cw 0xd
call send_back  ; 6068 (0x17b4)

lri $AR1,    #0x7962
lri $IX1,    #0x9566
lri $WR1,    #0x54c0
cw 0xd
call send_back  ; 6069 (0x17b5)

lri $AR1,    #0x42de
lri $IX1,    #0x40de
lri $WR1,    #0x8738
cw 0xd
call send_back  ; 6070 (0x17b6)

lri $AR1,    #0xa6f8
lri $IX1,    #0xd3ac
lri $WR1,    #0xfc8c
cw 0xd
call send_back  ; 6071 (0x17b7)

lri $AR1,    #0xfc5a
lri $IX1,    #0x7780
lri $WR1,    #0x58c8
cw 0xd
call send_back  ; 6072 (0x17b8)

lri $AR1,    #0xf5a2
lri $IX1,    #0x3252
lri $WR1,    #0x4266
cw 0xd
call send_back  ; 6073 (0x17b9)

lri $AR1,    #0x401e
lri $IX1,    #0xbc02
lri $WR1,    #0x6c9a
cw 0xd
call send_back  ; 6074 (0x17ba)

lri $AR1,    #0xe3e2
lri $IX1,    #0x812e
lri $WR1,    #0x44c2
cw 0xd
call send_back  ; 6075 (0x17bb)

lri $AR1,    #0xb906
lri $IX1,    #0xeb14
lri $WR1,    #0xc4bc
cw 0xd
call send_back  ; 6076 (0x17bc)

lri $AR1,    #0x133c
lri $IX1,    #0x94b2
lri $WR1,    #0x4b4a
cw 0xd
call send_back  ; 6077 (0x17bd)

lri $AR1,    #0x70f2
lri $IX1,    #0xb48c
lri $WR1,    #0x9962
cw 0xd
call send_back  ; 6078 (0x17be)

lri $AR1,    #0xf3d2
lri $IX1,    #0x020e
lri $WR1,    #0x55a0
cw 0xd
call send_back  ; 6079 (0x17bf)

lri $AR1,    #0xdb74
lri $IX1,    #0x563a
lri $WR1,    #0x9782
cw 0xd
call send_back  ; 6080 (0x17c0)

lri $AR1,    #0xbbba
lri $IX1,    #0x203e
lri $WR1,    #0x631a
cw 0xd
call send_back  ; 6081 (0x17c1)

lri $AR1,    #0x1da6
lri $IX1,    #0x677a
lri $WR1,    #0x94fc
cw 0xd
call send_back  ; 6082 (0x17c2)

lri $AR1,    #0x0560
lri $IX1,    #0xfbd6
lri $WR1,    #0x2a6a
cw 0xd
call send_back  ; 6083 (0x17c3)

lri $AR1,    #0x2e36
lri $IX1,    #0xa412
lri $WR1,    #0xaf1e
cw 0xd
call send_back  ; 6084 (0x17c4)

lri $AR1,    #0xf6fe
lri $IX1,    #0x57ac
lri $WR1,    #0xb296
cw 0xd
call send_back  ; 6085 (0x17c5)

lri $AR1,    #0x3966
lri $IX1,    #0x3326
lri $WR1,    #0x1cb4
cw 0xd
call send_back  ; 6086 (0x17c6)

lri $AR1,    #0xd780
lri $IX1,    #0xcd16
lri $WR1,    #0x554a
cw 0xd
call send_back  ; 6087 (0x17c7)

lri $AR1,    #0x7130
lri $IX1,    #0xb1d6
lri $WR1,    #0x9d3c
cw 0xd
call send_back  ; 6088 (0x17c8)

lri $AR1,    #0x13de
lri $IX1,    #0xc2e8
lri $WR1,    #0xc4da
cw 0xd
call send_back  ; 6089 (0x17c9)

lri $AR1,    #0x3a38
lri $IX1,    #0xef60
lri $WR1,    #0x7b7a
cw 0xd
call send_back  ; 6090 (0x17ca)

lri $AR1,    #0x924a
lri $IX1,    #0x62e2
lri $WR1,    #0x5eea
cw 0xd
call send_back  ; 6091 (0x17cb)

lri $AR1,    #0x9ac6
lri $IX1,    #0x6b36
lri $WR1,    #0xb234
cw 0xd
call send_back  ; 6092 (0x17cc)

lri $AR1,    #0x672e
lri $IX1,    #0x11c8
lri $WR1,    #0xff3e
cw 0xd
call send_back  ; 6093 (0x17cd)

lri $AR1,    #0x116e
lri $IX1,    #0xe40a
lri $WR1,    #0x0610
cw 0xd
call send_back  ; 6094 (0x17ce)

lri $AR1,    #0x325a
lri $IX1,    #0x56c4
lri $WR1,    #0x4c86
cw 0xd
call send_back  ; 6095 (0x17cf)

lri $AR1,    #0xa59c
lri $IX1,    #0x4128
lri $WR1,    #0xf880
cw 0xd
call send_back  ; 6096 (0x17d0)

lri $AR1,    #0x3966
lri $IX1,    #0xb34c
lri $WR1,    #0xbbae
cw 0xd
call send_back  ; 6097 (0x17d1)

lri $AR1,    #0x3caa
lri $IX1,    #0x7628
lri $WR1,    #0x73c0
cw 0xd
call send_back  ; 6098 (0x17d2)

lri $AR1,    #0x5ea8
lri $IX1,    #0xcd3a
lri $WR1,    #0xe490
cw 0xd
call send_back  ; 6099 (0x17d3)

lri $AR1,    #0x22ca
lri $IX1,    #0x5346
lri $WR1,    #0x18b0
cw 0xd
call send_back  ; 6100 (0x17d4)

lri $AR1,    #0xfab4
lri $IX1,    #0x994a
lri $WR1,    #0xdd82
cw 0xd
call send_back  ; 6101 (0x17d5)

lri $AR1,    #0x674a
lri $IX1,    #0x237e
lri $WR1,    #0x4ba0
cw 0xd
call send_back  ; 6102 (0x17d6)

lri $AR1,    #0x00dc
lri $IX1,    #0x0ca4
lri $WR1,    #0xc9b8
cw 0xd
call send_back  ; 6103 (0x17d7)

lri $AR1,    #0x4892
lri $IX1,    #0x23a6
lri $WR1,    #0x9de6
cw 0xd
call send_back  ; 6104 (0x17d8)

lri $AR1,    #0x5592
lri $IX1,    #0x60b0
lri $WR1,    #0x38d0
cw 0xd
call send_back  ; 6105 (0x17d9)

lri $AR1,    #0x9462
lri $IX1,    #0xe4aa
lri $WR1,    #0x1e3e
cw 0xd
call send_back  ; 6106 (0x17da)

lri $AR1,    #0x782a
lri $IX1,    #0x44ca
lri $WR1,    #0x0494
cw 0xd
call send_back  ; 6107 (0x17db)

lri $AR1,    #0xb59e
lri $IX1,    #0x2d30
lri $WR1,    #0x92cc
cw 0xd
call send_back  ; 6108 (0x17dc)

lri $AR1,    #0x37e4
lri $IX1,    #0x9636
lri $WR1,    #0xa44c
cw 0xd
call send_back  ; 6109 (0x17dd)

lri $AR1,    #0x493c
lri $IX1,    #0x8db2
lri $WR1,    #0xc3da
cw 0xd
call send_back  ; 6110 (0x17de)

lri $AR1,    #0xbeaa
lri $IX1,    #0x7ec8
lri $WR1,    #0x13aa
cw 0xd
call send_back  ; 6111 (0x17df)

lri $AR1,    #0xa0b0
lri $IX1,    #0x3472
lri $WR1,    #0xef0c
cw 0xd
call send_back  ; 6112 (0x17e0)

lri $AR1,    #0x6a88
lri $IX1,    #0x4f9e
lri $WR1,    #0x0d9a
cw 0xd
call send_back  ; 6113 (0x17e1)

lri $AR1,    #0xb048
lri $IX1,    #0x452a
lri $WR1,    #0x5728
cw 0xd
call send_back  ; 6114 (0x17e2)

lri $AR1,    #0x592a
lri $IX1,    #0x2d8a
lri $WR1,    #0x1a14
cw 0xd
call send_back  ; 6115 (0x17e3)

lri $AR1,    #0xace4
lri $IX1,    #0xab04
lri $WR1,    #0xcd48
cw 0xd
call send_back  ; 6116 (0x17e4)

lri $AR1,    #0xcf76
lri $IX1,    #0xd15e
lri $WR1,    #0x682c
cw 0xd
call send_back  ; 6117 (0x17e5)

lri $AR1,    #0x2c96
lri $IX1,    #0xa9be
lri $WR1,    #0x247a
cw 0xd
call send_back  ; 6118 (0x17e6)

lri $AR1,    #0x6990
lri $IX1,    #0x56c6
lri $WR1,    #0x448e
cw 0xd
call send_back  ; 6119 (0x17e7)

lri $AR1,    #0x1a60
lri $IX1,    #0xfd54
lri $WR1,    #0xe196
cw 0xd
call send_back  ; 6120 (0x17e8)

lri $AR1,    #0xde56
lri $IX1,    #0x78ea
lri $WR1,    #0xce92
cw 0xd
call send_back  ; 6121 (0x17e9)

lri $AR1,    #0x55ce
lri $IX1,    #0xbe52
lri $WR1,    #0x4580
cw 0xd
call send_back  ; 6122 (0x17ea)

lri $AR1,    #0xbbaa
lri $IX1,    #0xcc76
lri $WR1,    #0xfd16
cw 0xd
call send_back  ; 6123 (0x17eb)

lri $AR1,    #0x8b8c
lri $IX1,    #0x2304
lri $WR1,    #0x2870
cw 0xd
call send_back  ; 6124 (0x17ec)

lri $AR1,    #0x7792
lri $IX1,    #0xa35a
lri $WR1,    #0xae5a
cw 0xd
call send_back  ; 6125 (0x17ed)

lri $AR1,    #0xd4aa
lri $IX1,    #0x349c
lri $WR1,    #0x2180
cw 0xd
call send_back  ; 6126 (0x17ee)

lri $AR1,    #0x2486
lri $IX1,    #0x6ec4
lri $WR1,    #0x04fe
cw 0xd
call send_back  ; 6127 (0x17ef)

lri $AR1,    #0x16d0
lri $IX1,    #0x49be
lri $WR1,    #0x4632
cw 0xd
call send_back  ; 6128 (0x17f0)

lri $AR1,    #0xa5f4
lri $IX1,    #0xc8ae
lri $WR1,    #0x5664
cw 0xd
call send_back  ; 6129 (0x17f1)

lri $AR1,    #0x17ee
lri $IX1,    #0x2e36
lri $WR1,    #0x8a0e
cw 0xd
call send_back  ; 6130 (0x17f2)

lri $AR1,    #0x0c50
lri $IX1,    #0xee94
lri $WR1,    #0x0d8a
cw 0xd
call send_back  ; 6131 (0x17f3)

lri $AR1,    #0xdcc6
lri $IX1,    #0xf290
lri $WR1,    #0x8f14
cw 0xd
call send_back  ; 6132 (0x17f4)

lri $AR1,    #0x66be
lri $IX1,    #0x8388
lri $WR1,    #0xbfba
cw 0xd
call send_back  ; 6133 (0x17f5)

lri $AR1,    #0x59d8
lri $IX1,    #0x0c38
lri $WR1,    #0xac3c
cw 0xd
call send_back  ; 6134 (0x17f6)

lri $AR1,    #0x7aa6
lri $IX1,    #0x086a
lri $WR1,    #0xe700
cw 0xd
call send_back  ; 6135 (0x17f7)

lri $AR1,    #0xdaf8
lri $IX1,    #0x59c6
lri $WR1,    #0x2f98
cw 0xd
call send_back  ; 6136 (0x17f8)

lri $AR1,    #0x1040
lri $IX1,    #0xbd52
lri $WR1,    #0xe8e6
cw 0xd
call send_back  ; 6137 (0x17f9)

lri $AR1,    #0xee28
lri $IX1,    #0x6552
lri $WR1,    #0x8e60
cw 0xd
call send_back  ; 6138 (0x17fa)

lri $AR1,    #0x7d6e
lri $IX1,    #0xaff0
lri $WR1,    #0xde46
cw 0xd
call send_back  ; 6139 (0x17fb)

lri $AR1,    #0x330e
lri $IX1,    #0x813a
lri $WR1,    #0x6d90
cw 0xd
call send_back  ; 6140 (0x17fc)

lri $AR1,    #0x6eee
lri $IX1,    #0xb710
lri $WR1,    #0x9bd0
cw 0xd
call send_back  ; 6141 (0x17fd)

lri $AR1,    #0x5086
lri $IX1,    #0xba5e
lri $WR1,    #0x5240
cw 0xd
call send_back  ; 6142 (0x17fe)

lri $AR1,    #0x4234
lri $IX1,    #0x23ea
lri $WR1,    #0x60fc
cw 0xd
call send_back  ; 6143 (0x17ff)

lri $AR1,    #0x9e96
lri $IX1,    #0xb530
lri $WR1,    #0x7986
cw 0xd
call send_back  ; 6144 (0x1800)

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

