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

lri $AR1,    #0xc755
lri $IX1,    #0x06fc
lri $WR1,    #0x7e2c
cw 0x15
call send_back  ; 49153 (0xc001)

lri $AR1,    #0x417a
lri $IX1,    #0x2fcc
lri $WR1,    #0x7441
cw 0x15
call send_back  ; 49154 (0xc002)

lri $AR1,    #0x4be8
lri $IX1,    #0x387a
lri $WR1,    #0x4648
cw 0x15
call send_back  ; 49155 (0xc003)

lri $AR1,    #0x658f
lri $IX1,    #0xf3f4
lri $WR1,    #0x536e
cw 0x15
call send_back  ; 49156 (0xc004)

lri $AR1,    #0x477e
lri $IX1,    #0x388e
lri $WR1,    #0x9bbc
cw 0x15
call send_back  ; 49157 (0xc005)

lri $AR1,    #0xc7ad
lri $IX1,    #0x1a32
lri $WR1,    #0x733c
cw 0x15
call send_back  ; 49158 (0xc006)

lri $AR1,    #0xaf28
lri $IX1,    #0x8a52
lri $WR1,    #0xb232
cw 0x15
call send_back  ; 49159 (0xc007)

lri $AR1,    #0xa6f2
lri $IX1,    #0x7fac
lri $WR1,    #0x68fb
cw 0x15
call send_back  ; 49160 (0xc008)

lri $AR1,    #0x4a53
lri $IX1,    #0x80ae
lri $WR1,    #0x47a9
cw 0x15
call send_back  ; 49161 (0xc009)

lri $AR1,    #0x8d0a
lri $IX1,    #0xcf88
lri $WR1,    #0x96da
cw 0x15
call send_back  ; 49162 (0xc00a)

lri $AR1,    #0xd70b
lri $IX1,    #0xa7c8
lri $WR1,    #0x30e8
cw 0x15
call send_back  ; 49163 (0xc00b)

lri $AR1,    #0x5f39
lri $IX1,    #0x198c
lri $WR1,    #0x400a
cw 0x15
call send_back  ; 49164 (0xc00c)

lri $AR1,    #0x49cf
lri $IX1,    #0x3700
lri $WR1,    #0x7f5a
cw 0x15
call send_back  ; 49165 (0xc00d)

lri $AR1,    #0x3ee4
lri $IX1,    #0x9d6c
lri $WR1,    #0xba6d
cw 0x15
call send_back  ; 49166 (0xc00e)

lri $AR1,    #0x70c9
lri $IX1,    #0x0366
lri $WR1,    #0xa87d
cw 0x15
call send_back  ; 49167 (0xc00f)

lri $AR1,    #0x4194
lri $IX1,    #0x8272
lri $WR1,    #0xe5b9
cw 0x15
call send_back  ; 49168 (0xc010)

lri $AR1,    #0x42a6
lri $IX1,    #0xeab0
lri $WR1,    #0x96ca
cw 0x15
call send_back  ; 49169 (0xc011)

lri $AR1,    #0x8885
lri $IX1,    #0xb3c2
lri $WR1,    #0x9022
cw 0x15
call send_back  ; 49170 (0xc012)

lri $AR1,    #0x20d2
lri $IX1,    #0x2eb6
lri $WR1,    #0x8c1a
cw 0x15
call send_back  ; 49171 (0xc013)

lri $AR1,    #0x3fa9
lri $IX1,    #0x9908
lri $WR1,    #0x7080
cw 0x15
call send_back  ; 49172 (0xc014)

lri $AR1,    #0x5545
lri $IX1,    #0xb96c
lri $WR1,    #0xbd90
cw 0x15
call send_back  ; 49173 (0xc015)

lri $AR1,    #0x8c31
lri $IX1,    #0xe3b6
lri $WR1,    #0x5dfb
cw 0x15
call send_back  ; 49174 (0xc016)

lri $AR1,    #0x93ce
lri $IX1,    #0xc152
lri $WR1,    #0x9100
cw 0x15
call send_back  ; 49175 (0xc017)

lri $AR1,    #0x7295
lri $IX1,    #0x28ba
lri $WR1,    #0x6d2e
cw 0x15
call send_back  ; 49176 (0xc018)

lri $AR1,    #0xc6d0
lri $IX1,    #0xc670
lri $WR1,    #0x63d9
cw 0x15
call send_back  ; 49177 (0xc019)

lri $AR1,    #0xbc20
lri $IX1,    #0x7eba
lri $WR1,    #0x1ad3
cw 0x15
call send_back  ; 49178 (0xc01a)

lri $AR1,    #0xef9b
lri $IX1,    #0x5fd4
lri $WR1,    #0x4388
cw 0x15
call send_back  ; 49179 (0xc01b)

lri $AR1,    #0x63ef
lri $IX1,    #0xd8c4
lri $WR1,    #0xabea
cw 0x15
call send_back  ; 49180 (0xc01c)

lri $AR1,    #0x6225
lri $IX1,    #0xd17e
lri $WR1,    #0x7f68
cw 0x15
call send_back  ; 49181 (0xc01d)

lri $AR1,    #0x9385
lri $IX1,    #0x558c
lri $WR1,    #0x6b60
cw 0x15
call send_back  ; 49182 (0xc01e)

lri $AR1,    #0xa455
lri $IX1,    #0xe2e2
lri $WR1,    #0x7c24
cw 0x15
call send_back  ; 49183 (0xc01f)

lri $AR1,    #0xb6c5
lri $IX1,    #0x3b22
lri $WR1,    #0x6d34
cw 0x15
call send_back  ; 49184 (0xc020)

lri $AR1,    #0x38d4
lri $IX1,    #0xedde
lri $WR1,    #0xb09e
cw 0x15
call send_back  ; 49185 (0xc021)

lri $AR1,    #0x2f8a
lri $IX1,    #0xd72e
lri $WR1,    #0x7f29
cw 0x15
call send_back  ; 49186 (0xc022)

lri $AR1,    #0x9d4b
lri $IX1,    #0x9e2e
lri $WR1,    #0xb45c
cw 0x15
call send_back  ; 49187 (0xc023)

lri $AR1,    #0xb09e
lri $IX1,    #0xfba0
lri $WR1,    #0x6ee3
cw 0x15
call send_back  ; 49188 (0xc024)

lri $AR1,    #0xc42e
lri $IX1,    #0x5964
lri $WR1,    #0xc76d
cw 0x15
call send_back  ; 49189 (0xc025)

lri $AR1,    #0xc852
lri $IX1,    #0x4fec
lri $WR1,    #0x4d94
cw 0x15
call send_back  ; 49190 (0xc026)

lri $AR1,    #0xd205
lri $IX1,    #0xc768
lri $WR1,    #0xbbd1
cw 0x15
call send_back  ; 49191 (0xc027)

lri $AR1,    #0xa279
lri $IX1,    #0x2eca
lri $WR1,    #0x5925
cw 0x15
call send_back  ; 49192 (0xc028)

lri $AR1,    #0x6634
lri $IX1,    #0x7368
lri $WR1,    #0xa864
cw 0x15
call send_back  ; 49193 (0xc029)

lri $AR1,    #0x89f7
lri $IX1,    #0x485c
lri $WR1,    #0xb2db
cw 0x15
call send_back  ; 49194 (0xc02a)

lri $AR1,    #0x3743
lri $IX1,    #0xfd50
lri $WR1,    #0xcd3e
cw 0x15
call send_back  ; 49195 (0xc02b)

lri $AR1,    #0xb1c9
lri $IX1,    #0xc0f8
lri $WR1,    #0x0b82
cw 0x15
call send_back  ; 49196 (0xc02c)

lri $AR1,    #0x4aa3
lri $IX1,    #0xd3cc
lri $WR1,    #0x11a8
cw 0x15
call send_back  ; 49197 (0xc02d)

lri $AR1,    #0x4d8b
lri $IX1,    #0x0456
lri $WR1,    #0x6d13
cw 0x15
call send_back  ; 49198 (0xc02e)

lri $AR1,    #0x8ffd
lri $IX1,    #0xeeae
lri $WR1,    #0x8374
cw 0x15
call send_back  ; 49199 (0xc02f)

lri $AR1,    #0x817f
lri $IX1,    #0x054c
lri $WR1,    #0xc9da
cw 0x15
call send_back  ; 49200 (0xc030)

lri $AR1,    #0xa7f0
lri $IX1,    #0x81fa
lri $WR1,    #0x3ff6
cw 0x15
call send_back  ; 49201 (0xc031)

lri $AR1,    #0xb219
lri $IX1,    #0x2202
lri $WR1,    #0x7925
cw 0x15
call send_back  ; 49202 (0xc032)

lri $AR1,    #0x9e63
lri $IX1,    #0x214e
lri $WR1,    #0xae5b
cw 0x15
call send_back  ; 49203 (0xc033)

lri $AR1,    #0xbb00
lri $IX1,    #0x64ac
lri $WR1,    #0x4964
cw 0x15
call send_back  ; 49204 (0xc034)

lri $AR1,    #0x6047
lri $IX1,    #0x4be4
lri $WR1,    #0x73a2
cw 0x15
call send_back  ; 49205 (0xc035)

lri $AR1,    #0x95a2
lri $IX1,    #0x58c8
lri $WR1,    #0x4fd6
cw 0x15
call send_back  ; 49206 (0xc036)

lri $AR1,    #0xb4df
lri $IX1,    #0xd904
lri $WR1,    #0x87f5
cw 0x15
call send_back  ; 49207 (0xc037)

lri $AR1,    #0x772c
lri $IX1,    #0x2cc8
lri $WR1,    #0x9daf
cw 0x15
call send_back  ; 49208 (0xc038)

lri $AR1,    #0x828c
lri $IX1,    #0x3d02
lri $WR1,    #0x559c
cw 0x15
call send_back  ; 49209 (0xc039)

lri $AR1,    #0x6e21
lri $IX1,    #0x585c
lri $WR1,    #0x82c0
cw 0x15
call send_back  ; 49210 (0xc03a)

lri $AR1,    #0x2710
lri $IX1,    #0x1eb0
lri $WR1,    #0xc95c
cw 0x15
call send_back  ; 49211 (0xc03b)

lri $AR1,    #0x0757
lri $IX1,    #0x7f1a
lri $WR1,    #0x85a1
cw 0x15
call send_back  ; 49212 (0xc03c)

lri $AR1,    #0xab5b
lri $IX1,    #0x3558
lri $WR1,    #0x3c67
cw 0x15
call send_back  ; 49213 (0xc03d)

lri $AR1,    #0x8288
lri $IX1,    #0xc7bc
lri $WR1,    #0xb957
cw 0x15
call send_back  ; 49214 (0xc03e)

lri $AR1,    #0x9ace
lri $IX1,    #0xe738
lri $WR1,    #0x9fbf
cw 0x15
call send_back  ; 49215 (0xc03f)

lri $AR1,    #0x9e51
lri $IX1,    #0x5fde
lri $WR1,    #0x987b
cw 0x15
call send_back  ; 49216 (0xc040)

lri $AR1,    #0x4608
lri $IX1,    #0xa070
lri $WR1,    #0xd120
cw 0x15
call send_back  ; 49217 (0xc041)

lri $AR1,    #0x83c0
lri $IX1,    #0x642c
lri $WR1,    #0x8de7
cw 0x15
call send_back  ; 49218 (0xc042)

lri $AR1,    #0xb92a
lri $IX1,    #0x5a88
lri $WR1,    #0x8169
cw 0x15
call send_back  ; 49219 (0xc043)

lri $AR1,    #0x595e
lri $IX1,    #0xe51e
lri $WR1,    #0x52d5
cw 0x15
call send_back  ; 49220 (0xc044)

lri $AR1,    #0x2da1
lri $IX1,    #0x4c5a
lri $WR1,    #0x9480
cw 0x15
call send_back  ; 49221 (0xc045)

lri $AR1,    #0x85af
lri $IX1,    #0x4034
lri $WR1,    #0xca91
cw 0x15
call send_back  ; 49222 (0xc046)

lri $AR1,    #0x3f6c
lri $IX1,    #0x3a96
lri $WR1,    #0xe2bc
cw 0x15
call send_back  ; 49223 (0xc047)

lri $AR1,    #0xa93f
lri $IX1,    #0x85aa
lri $WR1,    #0x839c
cw 0x15
call send_back  ; 49224 (0xc048)

lri $AR1,    #0x2de8
lri $IX1,    #0x60b2
lri $WR1,    #0x43cf
cw 0x15
call send_back  ; 49225 (0xc049)

lri $AR1,    #0x582c
lri $IX1,    #0x22ac
lri $WR1,    #0x8652
cw 0x15
call send_back  ; 49226 (0xc04a)

lri $AR1,    #0x7014
lri $IX1,    #0x6a62
lri $WR1,    #0xcb2f
cw 0x15
call send_back  ; 49227 (0xc04b)

lri $AR1,    #0x9b29
lri $IX1,    #0x8818
lri $WR1,    #0x9918
cw 0x15
call send_back  ; 49228 (0xc04c)

lri $AR1,    #0x645b
lri $IX1,    #0x7596
lri $WR1,    #0x9df6
cw 0x15
call send_back  ; 49229 (0xc04d)

lri $AR1,    #0xc009
lri $IX1,    #0x05ae
lri $WR1,    #0xa1fd
cw 0x15
call send_back  ; 49230 (0xc04e)

lri $AR1,    #0x63db
lri $IX1,    #0x94f0
lri $WR1,    #0x4a55
cw 0x15
call send_back  ; 49231 (0xc04f)

lri $AR1,    #0x81ca
lri $IX1,    #0x91ca
lri $WR1,    #0xcde9
cw 0x15
call send_back  ; 49232 (0xc050)

lri $AR1,    #0x812d
lri $IX1,    #0xcab4
lri $WR1,    #0x8871
cw 0x15
call send_back  ; 49233 (0xc051)

lri $AR1,    #0x9013
lri $IX1,    #0xb59c
lri $WR1,    #0xa53d
cw 0x15
call send_back  ; 49234 (0xc052)

lri $AR1,    #0x3ab0
lri $IX1,    #0xf44c
lri $WR1,    #0x4cd6
cw 0x15
call send_back  ; 49235 (0xc053)

lri $AR1,    #0x7e48
lri $IX1,    #0x55e6
lri $WR1,    #0xb605
cw 0x15
call send_back  ; 49236 (0xc054)

lri $AR1,    #0x684c
lri $IX1,    #0x9e3a
lri $WR1,    #0x9455
cw 0x15
call send_back  ; 49237 (0xc055)

lri $AR1,    #0x220a
lri $IX1,    #0x9026
lri $WR1,    #0x7b96
cw 0x15
call send_back  ; 49238 (0xc056)

lri $AR1,    #0xacbc
lri $IX1,    #0x3890
lri $WR1,    #0xd173
cw 0x15
call send_back  ; 49239 (0xc057)

lri $AR1,    #0x6942
lri $IX1,    #0x645c
lri $WR1,    #0xabbc
cw 0x15
call send_back  ; 49240 (0xc058)

lri $AR1,    #0xb25a
lri $IX1,    #0xa3e4
lri $WR1,    #0xe350
cw 0x15
call send_back  ; 49241 (0xc059)

lri $AR1,    #0x2fa9
lri $IX1,    #0x633c
lri $WR1,    #0x9161
cw 0x15
call send_back  ; 49242 (0xc05a)

lri $AR1,    #0x7b5f
lri $IX1,    #0x8ed6
lri $WR1,    #0x7e08
cw 0x15
call send_back  ; 49243 (0xc05b)

lri $AR1,    #0x9bce
lri $IX1,    #0x18e4
lri $WR1,    #0x9cb6
cw 0x15
call send_back  ; 49244 (0xc05c)

lri $AR1,    #0x8db5
lri $IX1,    #0x9bf4
lri $WR1,    #0xeca7
cw 0x15
call send_back  ; 49245 (0xc05d)

lri $AR1,    #0x8ba2
lri $IX1,    #0x6c1a
lri $WR1,    #0x50d4
cw 0x15
call send_back  ; 49246 (0xc05e)

lri $AR1,    #0x4233
lri $IX1,    #0xc846
lri $WR1,    #0x9484
cw 0x15
call send_back  ; 49247 (0xc05f)

lri $AR1,    #0x987a
lri $IX1,    #0xa9fe
lri $WR1,    #0x36f0
cw 0x15
call send_back  ; 49248 (0xc060)

lri $AR1,    #0x7f6f
lri $IX1,    #0x0a34
lri $WR1,    #0x2236
cw 0x15
call send_back  ; 49249 (0xc061)

lri $AR1,    #0xba9f
lri $IX1,    #0x7646
lri $WR1,    #0x7efa
cw 0x15
call send_back  ; 49250 (0xc062)

lri $AR1,    #0xa804
lri $IX1,    #0xa10c
lri $WR1,    #0x47f0
cw 0x15
call send_back  ; 49251 (0xc063)

lri $AR1,    #0x144d
lri $IX1,    #0x57f2
lri $WR1,    #0xf5c5
cw 0x15
call send_back  ; 49252 (0xc064)

lri $AR1,    #0x8457
lri $IX1,    #0x0cf2
lri $WR1,    #0xf573
cw 0x15
call send_back  ; 49253 (0xc065)

lri $AR1,    #0x6c43
lri $IX1,    #0x1a8a
lri $WR1,    #0x78b4
cw 0x15
call send_back  ; 49254 (0xc066)

lri $AR1,    #0x6fdf
lri $IX1,    #0x275e
lri $WR1,    #0x716f
cw 0x15
call send_back  ; 49255 (0xc067)

lri $AR1,    #0x5fc5
lri $IX1,    #0xbbce
lri $WR1,    #0x8ee0
cw 0x15
call send_back  ; 49256 (0xc068)

lri $AR1,    #0x91f0
lri $IX1,    #0x540c
lri $WR1,    #0xbc6c
cw 0x15
call send_back  ; 49257 (0xc069)

lri $AR1,    #0x5428
lri $IX1,    #0x1dfa
lri $WR1,    #0x4fbf
cw 0x15
call send_back  ; 49258 (0xc06a)

lri $AR1,    #0x6a02
lri $IX1,    #0x427c
lri $WR1,    #0xa538
cw 0x15
call send_back  ; 49259 (0xc06b)

lri $AR1,    #0x2fd8
lri $IX1,    #0x366c
lri $WR1,    #0x3f4b
cw 0x15
call send_back  ; 49260 (0xc06c)

lri $AR1,    #0x7776
lri $IX1,    #0x37e2
lri $WR1,    #0x76c6
cw 0x15
call send_back  ; 49261 (0xc06d)

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