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

lri $AR1,    #0x9371
lri $IX1,    #0x3fb2
lri $WR1,    #0x9471
cw 0xd
call send_back  ; 37138 (0x9112)

lri $AR1,    #0x5e6e
lri $IX1,    #0x16b0
lri $WR1,    #0x884f
cw 0xd
call send_back  ; 37139 (0x9113)

lri $AR1,    #0xda87
lri $IX1,    #0x376c
lri $WR1,    #0x5350
cw 0xd
call send_back  ; 37140 (0x9114)

lri $AR1,    #0x3c4d
lri $IX1,    #0x3244
lri $WR1,    #0x6068
cw 0xd
call send_back  ; 37141 (0x9115)

lri $AR1,    #0x8ce4
lri $IX1,    #0xf6c2
lri $WR1,    #0x403f
cw 0xd
call send_back  ; 37142 (0x9116)

lri $AR1,    #0x9a85
lri $IX1,    #0xe10c
lri $WR1,    #0x914f
cw 0xd
call send_back  ; 37143 (0x9117)

lri $AR1,    #0x80c2
lri $IX1,    #0x4884
lri $WR1,    #0xd09c
cw 0xd
call send_back  ; 37144 (0x9118)

lri $AR1,    #0xaf3d
lri $IX1,    #0x4cc0
lri $WR1,    #0x7b32
cw 0xd
call send_back  ; 37145 (0x9119)

lri $AR1,    #0xb52a
lri $IX1,    #0x79d0
lri $WR1,    #0x55dd
cw 0xd
call send_back  ; 37146 (0x911a)

lri $AR1,    #0x8b7f
lri $IX1,    #0xec12
lri $WR1,    #0x8240
cw 0xd
call send_back  ; 37147 (0x911b)

lri $AR1,    #0x7efc
lri $IX1,    #0xbf56
lri $WR1,    #0x9dc5
cw 0xd
call send_back  ; 37148 (0x911c)

lri $AR1,    #0x9703
lri $IX1,    #0xacc2
lri $WR1,    #0x6093
cw 0xd
call send_back  ; 37149 (0x911d)

lri $AR1,    #0xc576
lri $IX1,    #0xa622
lri $WR1,    #0x6fff
cw 0xd
call send_back  ; 37150 (0x911e)

lri $AR1,    #0xaf74
lri $IX1,    #0xdd1a
lri $WR1,    #0x3995
cw 0xd
call send_back  ; 37151 (0x911f)

lri $AR1,    #0x5642
lri $IX1,    #0xd7e2
lri $WR1,    #0x914d
cw 0xd
call send_back  ; 37152 (0x9120)

lri $AR1,    #0xb337
lri $IX1,    #0xdd00
lri $WR1,    #0x56e9
cw 0xd
call send_back  ; 37153 (0x9121)

lri $AR1,    #0x58f3
lri $IX1,    #0xfab4
lri $WR1,    #0x742e
cw 0xd
call send_back  ; 37154 (0x9122)

lri $AR1,    #0xbfb5
lri $IX1,    #0x1e78
lri $WR1,    #0xf6d6
cw 0xd
call send_back  ; 37155 (0x9123)

lri $AR1,    #0x6a1b
lri $IX1,    #0xf462
lri $WR1,    #0xbf08
cw 0xd
call send_back  ; 37156 (0x9124)

lri $AR1,    #0x6b24
lri $IX1,    #0x7daa
lri $WR1,    #0x142b
cw 0xd
call send_back  ; 37157 (0x9125)

lri $AR1,    #0x65c3
lri $IX1,    #0x5938
lri $WR1,    #0xcfcf
cw 0xd
call send_back  ; 37158 (0x9126)

lri $AR1,    #0x41cb
lri $IX1,    #0x7874
lri $WR1,    #0x8fa6
cw 0xd
call send_back  ; 37159 (0x9127)

lri $AR1,    #0x6983
lri $IX1,    #0x4e44
lri $WR1,    #0xe528
cw 0xd
call send_back  ; 37160 (0x9128)

lri $AR1,    #0x4ecd
lri $IX1,    #0x4d66
lri $WR1,    #0xa2e3
cw 0xd
call send_back  ; 37161 (0x9129)

lri $AR1,    #0x9600
lri $IX1,    #0xa71c
lri $WR1,    #0x951b
cw 0xd
call send_back  ; 37162 (0x912a)

lri $AR1,    #0x7874
lri $IX1,    #0x8a52
lri $WR1,    #0x84bd
cw 0xd
call send_back  ; 37163 (0x912b)

lri $AR1,    #0x17f4
lri $IX1,    #0x8730
lri $WR1,    #0xb933
cw 0xd
call send_back  ; 37164 (0x912c)

lri $AR1,    #0x77f0
lri $IX1,    #0x1252
lri $WR1,    #0xa738
cw 0xd
call send_back  ; 37165 (0x912d)

lri $AR1,    #0x80bb
lri $IX1,    #0x4e84
lri $WR1,    #0x7828
cw 0xd
call send_back  ; 37166 (0x912e)

lri $AR1,    #0xb4a9
lri $IX1,    #0x234c
lri $WR1,    #0x76ec
cw 0xd
call send_back  ; 37167 (0x912f)

lri $AR1,    #0x7659
lri $IX1,    #0x1a08
lri $WR1,    #0x9508
cw 0xd
call send_back  ; 37168 (0x9130)

lri $AR1,    #0xcb00
lri $IX1,    #0x6304
lri $WR1,    #0x83e8
cw 0xd
call send_back  ; 37169 (0x9131)

lri $AR1,    #0x4300
lri $IX1,    #0x9f4e
lri $WR1,    #0xabe0
cw 0xd
call send_back  ; 37170 (0x9132)

lri $AR1,    #0x869c
lri $IX1,    #0x7b94
lri $WR1,    #0x7c1c
cw 0xd
call send_back  ; 37171 (0x9133)

lri $AR1,    #0xcc1a
lri $IX1,    #0xabe2
lri $WR1,    #0x83e0
cw 0xd
call send_back  ; 37172 (0x9134)

lri $AR1,    #0x982b
lri $IX1,    #0x4f88
lri $WR1,    #0xdf46
cw 0xd
call send_back  ; 37173 (0x9135)

lri $AR1,    #0x78d1
lri $IX1,    #0x100c
lri $WR1,    #0x9f06
cw 0xd
call send_back  ; 37174 (0x9136)

lri $AR1,    #0x4eb2
lri $IX1,    #0x4d56
lri $WR1,    #0x5450
cw 0xd
call send_back  ; 37175 (0x9137)

lri $AR1,    #0x9015
lri $IX1,    #0x3d12
lri $WR1,    #0x2f48
cw 0xd
call send_back  ; 37176 (0x9138)

lri $AR1,    #0x9c53
lri $IX1,    #0xea6a
lri $WR1,    #0x8840
cw 0xd
call send_back  ; 37177 (0x9139)

lri $AR1,    #0x9627
lri $IX1,    #0x5f0a
lri $WR1,    #0x9936
cw 0xd
call send_back  ; 37178 (0x913a)

lri $AR1,    #0x2e8f
lri $IX1,    #0xcdb0
lri $WR1,    #0x7ea0
cw 0xd
call send_back  ; 37179 (0x913b)

lri $AR1,    #0x31a0
lri $IX1,    #0x3a1c
lri $WR1,    #0xac28
cw 0xd
call send_back  ; 37180 (0x913c)

lri $AR1,    #0x6215
lri $IX1,    #0xb1a2
lri $WR1,    #0xbb5e
cw 0xd
call send_back  ; 37181 (0x913d)

lri $AR1,    #0x9ff5
lri $IX1,    #0x934c
lri $WR1,    #0xb7e3
cw 0xd
call send_back  ; 37182 (0x913e)

lri $AR1,    #0x5a09
lri $IX1,    #0x85c2
lri $WR1,    #0x2e3c
cw 0xd
call send_back  ; 37183 (0x913f)

lri $AR1,    #0x4189
lri $IX1,    #0x6cc4
lri $WR1,    #0x27c0
cw 0xd
call send_back  ; 37184 (0x9140)

lri $AR1,    #0x82c7
lri $IX1,    #0xd7aa
lri $WR1,    #0x47b9
cw 0xd
call send_back  ; 37185 (0x9141)

lri $AR1,    #0x4526
lri $IX1,    #0xdd92
lri $WR1,    #0x4b57
cw 0xd
call send_back  ; 37186 (0x9142)

lri $AR1,    #0xc830
lri $IX1,    #0x0b98
lri $WR1,    #0x9f70
cw 0xd
call send_back  ; 37187 (0x9143)

lri $AR1,    #0x7b16
lri $IX1,    #0xccfe
lri $WR1,    #0x74a6
cw 0xd
call send_back  ; 37188 (0x9144)

lri $AR1,    #0xc773
lri $IX1,    #0x6c70
lri $WR1,    #0x1409
cw 0xd
call send_back  ; 37189 (0x9145)

lri $AR1,    #0x579c
lri $IX1,    #0x594c
lri $WR1,    #0x93b8
cw 0xd
call send_back  ; 37190 (0x9146)

lri $AR1,    #0xc44e
lri $IX1,    #0x9b42
lri $WR1,    #0x4c9c
cw 0xd
call send_back  ; 37191 (0x9147)

lri $AR1,    #0xad07
lri $IX1,    #0x31fe
lri $WR1,    #0x77cb
cw 0xd
call send_back  ; 37192 (0x9148)

lri $AR1,    #0xa9de
lri $IX1,    #0x6658
lri $WR1,    #0x839b
cw 0xd
call send_back  ; 37193 (0x9149)

lri $AR1,    #0x2530
lri $IX1,    #0xada8
lri $WR1,    #0x5dfe
cw 0xd
call send_back  ; 37194 (0x914a)

lri $AR1,    #0x5ee2
lri $IX1,    #0x8fbe
lri $WR1,    #0x8339
cw 0xd
call send_back  ; 37195 (0x914b)

lri $AR1,    #0x828f
lri $IX1,    #0xe32c
lri $WR1,    #0x7575
cw 0xd
call send_back  ; 37196 (0x914c)

lri $AR1,    #0xb584
lri $IX1,    #0x8b42
lri $WR1,    #0xbb52
cw 0xd
call send_back  ; 37197 (0x914d)

lri $AR1,    #0xb0b6
lri $IX1,    #0x8e8a
lri $WR1,    #0x80fe
cw 0xd
call send_back  ; 37198 (0x914e)

lri $AR1,    #0xbea3
lri $IX1,    #0xbc08
lri $WR1,    #0xd8d8
cw 0xd
call send_back  ; 37199 (0x914f)

lri $AR1,    #0xac60
lri $IX1,    #0x0926
lri $WR1,    #0x3e43
cw 0xd
call send_back  ; 37200 (0x9150)

lri $AR1,    #0xc89a
lri $IX1,    #0x3984
lri $WR1,    #0x46af
cw 0xd
call send_back  ; 37201 (0x9151)

lri $AR1,    #0x4af7
lri $IX1,    #0x1d8e
lri $WR1,    #0xba65
cw 0xd
call send_back  ; 37202 (0x9152)

lri $AR1,    #0xd184
lri $IX1,    #0xa412
lri $WR1,    #0x8022
cw 0xd
call send_back  ; 37203 (0x9153)

lri $AR1,    #0x699d
lri $IX1,    #0xfec6
lri $WR1,    #0xbc2d
cw 0xd
call send_back  ; 37204 (0x9154)

lri $AR1,    #0x350c
lri $IX1,    #0x10ee
lri $WR1,    #0x9cc5
cw 0xd
call send_back  ; 37205 (0x9155)

lri $AR1,    #0x8bb5
lri $IX1,    #0x2b0a
lri $WR1,    #0x6bb2
cw 0xd
call send_back  ; 37206 (0x9156)

lri $AR1,    #0x5dac
lri $IX1,    #0x95c6
lri $WR1,    #0x7dda
cw 0xd
call send_back  ; 37207 (0x9157)

lri $AR1,    #0x70e7
lri $IX1,    #0x821a
lri $WR1,    #0x5f82
cw 0xd
call send_back  ; 37208 (0x9158)

lri $AR1,    #0x417d
lri $IX1,    #0x7bc2
lri $WR1,    #0x8541
cw 0xd
call send_back  ; 37209 (0x9159)

lri $AR1,    #0x2aac
lri $IX1,    #0x5706
lri $WR1,    #0x3743
cw 0xd
call send_back  ; 37210 (0x915a)

lri $AR1,    #0x727b
lri $IX1,    #0xa208
lri $WR1,    #0xbdd8
cw 0xd
call send_back  ; 37211 (0x915b)

lri $AR1,    #0xb952
lri $IX1,    #0xc56e
lri $WR1,    #0x6be8
cw 0xd
call send_back  ; 37212 (0x915c)

lri $AR1,    #0x8a4b
lri $IX1,    #0x17c2
lri $WR1,    #0xdd69
cw 0xd
call send_back  ; 37213 (0x915d)

lri $AR1,    #0xb88c
lri $IX1,    #0x124c
lri $WR1,    #0x7d4c
cw 0xd
call send_back  ; 37214 (0x915e)

lri $AR1,    #0xb989
lri $IX1,    #0x75b0
lri $WR1,    #0x880d
cw 0xd
call send_back  ; 37215 (0x915f)

lri $AR1,    #0xa36f
lri $IX1,    #0x6040
lri $WR1,    #0x2561
cw 0xd
call send_back  ; 37216 (0x9160)

lri $AR1,    #0x428a
lri $IX1,    #0xff24
lri $WR1,    #0x3d19
cw 0xd
call send_back  ; 37217 (0x9161)

lri $AR1,    #0xb801
lri $IX1,    #0x7f54
lri $WR1,    #0xb8d6
cw 0xd
call send_back  ; 37218 (0x9162)

lri $AR1,    #0x27a7
lri $IX1,    #0x1292
lri $WR1,    #0x5583
cw 0xd
call send_back  ; 37219 (0x9163)

lri $AR1,    #0x8241
lri $IX1,    #0x2046
lri $WR1,    #0xdd42
cw 0xd
call send_back  ; 37220 (0x9164)

lri $AR1,    #0x5505
lri $IX1,    #0xf194
lri $WR1,    #0x7bc9
cw 0xd
call send_back  ; 37221 (0x9165)

lri $AR1,    #0x16ac
lri $IX1,    #0x3354
lri $WR1,    #0x3cc7
cw 0xd
call send_back  ; 37222 (0x9166)

lri $AR1,    #0x0ddd
lri $IX1,    #0x6876
lri $WR1,    #0x855b
cw 0xd
call send_back  ; 37223 (0x9167)

lri $AR1,    #0x8448
lri $IX1,    #0xba76
lri $WR1,    #0xdf3c
cw 0xd
call send_back  ; 37224 (0x9168)

lri $AR1,    #0x6542
lri $IX1,    #0x5d3a
lri $WR1,    #0x9584
cw 0xd
call send_back  ; 37225 (0x9169)

lri $AR1,    #0x8629
lri $IX1,    #0xd736
lri $WR1,    #0x50d7
cw 0xd
call send_back  ; 37226 (0x916a)

lri $AR1,    #0x8a6b
lri $IX1,    #0xce20
lri $WR1,    #0x71ce
cw 0xd
call send_back  ; 37227 (0x916b)

lri $AR1,    #0x7c7a
lri $IX1,    #0x5bf2
lri $WR1,    #0x3e54
cw 0xd
call send_back  ; 37228 (0x916c)

lri $AR1,    #0xb07c
lri $IX1,    #0x47b2
lri $WR1,    #0x6fef
cw 0xd
call send_back  ; 37229 (0x916d)

lri $AR1,    #0x3509
lri $IX1,    #0xa8a2
lri $WR1,    #0x2e9b
cw 0xd
call send_back  ; 37230 (0x916e)

lri $AR1,    #0x59ca
lri $IX1,    #0x5a4a
lri $WR1,    #0x652e
cw 0xd
call send_back  ; 37231 (0x916f)

lri $AR1,    #0x8b45
lri $IX1,    #0x1b20
lri $WR1,    #0x81ea
cw 0xd
call send_back  ; 37232 (0x9170)

lri $AR1,    #0xcea7
lri $IX1,    #0x1716
lri $WR1,    #0x7f49
cw 0xd
call send_back  ; 37233 (0x9171)

lri $AR1,    #0x67d5
lri $IX1,    #0xdaf2
lri $WR1,    #0x5e7e
cw 0xd
call send_back  ; 37234 (0x9172)

lri $AR1,    #0x87a8
lri $IX1,    #0x1ca6
lri $WR1,    #0x6ee2
cw 0xd
call send_back  ; 37235 (0x9173)

lri $AR1,    #0xa790
lri $IX1,    #0x4894
lri $WR1,    #0xb2b7
cw 0xd
call send_back  ; 37236 (0x9174)

lri $AR1,    #0x5370
lri $IX1,    #0x3af2
lri $WR1,    #0xcb65
cw 0xd
call send_back  ; 37237 (0x9175)

lri $AR1,    #0xf212
lri $IX1,    #0xd83a
lri $WR1,    #0x74c4
cw 0xd
call send_back  ; 37238 (0x9176)

lri $AR1,    #0x7ff1
lri $IX1,    #0x36de
lri $WR1,    #0x986e
cw 0xd
call send_back  ; 37239 (0x9177)

lri $AR1,    #0x87b8
lri $IX1,    #0xa020
lri $WR1,    #0x47c9
cw 0xd
call send_back  ; 37240 (0x9178)

lri $AR1,    #0xcf3b
lri $IX1,    #0xb54c
lri $WR1,    #0xd4b3
cw 0xd
call send_back  ; 37241 (0x9179)

lri $AR1,    #0x8f38
lri $IX1,    #0x6248
lri $WR1,    #0xae87
cw 0xd
call send_back  ; 37242 (0x917a)

lri $AR1,    #0x7fc2
lri $IX1,    #0xd596
lri $WR1,    #0x7a6a
cw 0xd
call send_back  ; 37243 (0x917b)

lri $AR1,    #0x6a96
lri $IX1,    #0x59ca
lri $WR1,    #0xf386
cw 0xd
call send_back  ; 37244 (0x917c)

lri $AR1,    #0x3025
lri $IX1,    #0x83a2
lri $WR1,    #0xd936
cw 0xd
call send_back  ; 37245 (0x917d)

lri $AR1,    #0x9bba
lri $IX1,    #0x939e
lri $WR1,    #0x6eba
cw 0xd
call send_back  ; 37246 (0x917e)

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