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

lri $AR1,    #0x0080
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56193 (0xdb81)

lri $AR1,    #0x0081
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56194 (0xdb82)

lri $AR1,    #0x0082
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56195 (0xdb83)

lri $AR1,    #0x0083
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56196 (0xdb84)

lri $AR1,    #0x0084
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56197 (0xdb85)

lri $AR1,    #0x0085
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56198 (0xdb86)

lri $AR1,    #0x0086
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56199 (0xdb87)

lri $AR1,    #0x0087
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56200 (0xdb88)

lri $AR1,    #0x0088
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56201 (0xdb89)

lri $AR1,    #0x0089
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56202 (0xdb8a)

lri $AR1,    #0x008a
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56203 (0xdb8b)

lri $AR1,    #0x008b
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56204 (0xdb8c)

lri $AR1,    #0x008c
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56205 (0xdb8d)

lri $AR1,    #0x008d
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56206 (0xdb8e)

lri $AR1,    #0x008e
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56207 (0xdb8f)

lri $AR1,    #0x008f
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56208 (0xdb90)

lri $AR1,    #0x0090
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56209 (0xdb91)

lri $AR1,    #0x0091
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56210 (0xdb92)

lri $AR1,    #0x0092
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56211 (0xdb93)

lri $AR1,    #0x0093
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56212 (0xdb94)

lri $AR1,    #0x0094
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56213 (0xdb95)

lri $AR1,    #0x0095
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56214 (0xdb96)

lri $AR1,    #0x0096
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56215 (0xdb97)

lri $AR1,    #0x0097
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56216 (0xdb98)

lri $AR1,    #0x0098
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56217 (0xdb99)

lri $AR1,    #0x0099
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56218 (0xdb9a)

lri $AR1,    #0x009a
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56219 (0xdb9b)

lri $AR1,    #0x009b
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56220 (0xdb9c)

lri $AR1,    #0x009c
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56221 (0xdb9d)

lri $AR1,    #0x009d
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56222 (0xdb9e)

lri $AR1,    #0x009e
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56223 (0xdb9f)

lri $AR1,    #0x009f
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56224 (0xdba0)

lri $AR1,    #0x00a0
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56225 (0xdba1)

lri $AR1,    #0x00a1
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56226 (0xdba2)

lri $AR1,    #0x00a2
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56227 (0xdba3)

lri $AR1,    #0x00a3
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56228 (0xdba4)

lri $AR1,    #0x00a4
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56229 (0xdba5)

lri $AR1,    #0x00a5
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56230 (0xdba6)

lri $AR1,    #0x00a6
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56231 (0xdba7)

lri $AR1,    #0x00a7
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56232 (0xdba8)

lri $AR1,    #0x00a8
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56233 (0xdba9)

lri $AR1,    #0x00a9
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56234 (0xdbaa)

lri $AR1,    #0x00aa
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56235 (0xdbab)

lri $AR1,    #0x00ab
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56236 (0xdbac)

lri $AR1,    #0x00ac
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56237 (0xdbad)

lri $AR1,    #0x00ad
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56238 (0xdbae)

lri $AR1,    #0x00ae
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56239 (0xdbaf)

lri $AR1,    #0x00af
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56240 (0xdbb0)

lri $AR1,    #0x00b0
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56241 (0xdbb1)

lri $AR1,    #0x00b1
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56242 (0xdbb2)

lri $AR1,    #0x00b2
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56243 (0xdbb3)

lri $AR1,    #0x00b3
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56244 (0xdbb4)

lri $AR1,    #0x00b4
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56245 (0xdbb5)

lri $AR1,    #0x00b5
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56246 (0xdbb6)

lri $AR1,    #0x00b6
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56247 (0xdbb7)

lri $AR1,    #0x00b7
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56248 (0xdbb8)

lri $AR1,    #0x00b8
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56249 (0xdbb9)

lri $AR1,    #0x00b9
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56250 (0xdbba)

lri $AR1,    #0x00ba
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56251 (0xdbbb)

lri $AR1,    #0x00bb
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56252 (0xdbbc)

lri $AR1,    #0x00bc
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56253 (0xdbbd)

lri $AR1,    #0x00bd
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56254 (0xdbbe)

lri $AR1,    #0x00be
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56255 (0xdbbf)

lri $AR1,    #0x00bf
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56256 (0xdbc0)

lri $AR1,    #0x00c0
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56257 (0xdbc1)

lri $AR1,    #0x00c1
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56258 (0xdbc2)

lri $AR1,    #0x00c2
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56259 (0xdbc3)

lri $AR1,    #0x00c3
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56260 (0xdbc4)

lri $AR1,    #0x00c4
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56261 (0xdbc5)

lri $AR1,    #0x00c5
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56262 (0xdbc6)

lri $AR1,    #0x00c6
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56263 (0xdbc7)

lri $AR1,    #0x00c7
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56264 (0xdbc8)

lri $AR1,    #0x00c8
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56265 (0xdbc9)

lri $AR1,    #0x00c9
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56266 (0xdbca)

lri $AR1,    #0x00ca
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56267 (0xdbcb)

lri $AR1,    #0x00cb
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56268 (0xdbcc)

lri $AR1,    #0x00cc
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56269 (0xdbcd)

lri $AR1,    #0x00cd
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56270 (0xdbce)

lri $AR1,    #0x00ce
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56271 (0xdbcf)

lri $AR1,    #0x00cf
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56272 (0xdbd0)

lri $AR1,    #0x00d0
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56273 (0xdbd1)

lri $AR1,    #0x00d1
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56274 (0xdbd2)

lri $AR1,    #0x00d2
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56275 (0xdbd3)

lri $AR1,    #0x00d3
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56276 (0xdbd4)

lri $AR1,    #0x00d4
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56277 (0xdbd5)

lri $AR1,    #0x00d5
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56278 (0xdbd6)

lri $AR1,    #0x00d6
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56279 (0xdbd7)

lri $AR1,    #0x00d7
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56280 (0xdbd8)

lri $AR1,    #0x00d8
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56281 (0xdbd9)

lri $AR1,    #0x00d9
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56282 (0xdbda)

lri $AR1,    #0x00da
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56283 (0xdbdb)

lri $AR1,    #0x00db
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56284 (0xdbdc)

lri $AR1,    #0x00dc
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56285 (0xdbdd)

lri $AR1,    #0x00dd
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56286 (0xdbde)

lri $AR1,    #0x00de
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56287 (0xdbdf)

lri $AR1,    #0x00df
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56288 (0xdbe0)

lri $AR1,    #0x00e0
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56289 (0xdbe1)

lri $AR1,    #0x00e1
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56290 (0xdbe2)

lri $AR1,    #0x00e2
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56291 (0xdbe3)

lri $AR1,    #0x00e3
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56292 (0xdbe4)

lri $AR1,    #0x00e4
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56293 (0xdbe5)

lri $AR1,    #0x00e5
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56294 (0xdbe6)

lri $AR1,    #0x00e6
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56295 (0xdbe7)

lri $AR1,    #0x00e7
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56296 (0xdbe8)

lri $AR1,    #0x00e8
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56297 (0xdbe9)

lri $AR1,    #0x00e9
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56298 (0xdbea)

lri $AR1,    #0x00ea
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56299 (0xdbeb)

lri $AR1,    #0x00eb
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56300 (0xdbec)

lri $AR1,    #0x00ec
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56301 (0xdbed)

lri $AR1,    #0x00ed
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56302 (0xdbee)

lri $AR1,    #0x00ee
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56303 (0xdbef)

lri $AR1,    #0x00ef
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56304 (0xdbf0)

lri $AR1,    #0x00f0
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56305 (0xdbf1)

lri $AR1,    #0x00f1
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56306 (0xdbf2)

lri $AR1,    #0x00f2
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56307 (0xdbf3)

lri $AR1,    #0x00f3
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56308 (0xdbf4)

lri $AR1,    #0x00f4
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56309 (0xdbf5)

lri $AR1,    #0x00f5
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56310 (0xdbf6)

lri $AR1,    #0x00f6
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56311 (0xdbf7)

lri $AR1,    #0x00f7
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56312 (0xdbf8)

lri $AR1,    #0x00f8
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56313 (0xdbf9)

lri $AR1,    #0x00f9
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56314 (0xdbfa)

lri $AR1,    #0x00fa
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56315 (0xdbfb)

lri $AR1,    #0x00fb
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56316 (0xdbfc)

lri $AR1,    #0x00fc
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56317 (0xdbfd)

lri $AR1,    #0x00fd
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56318 (0xdbfe)

lri $AR1,    #0x00fe
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56319 (0xdbff)

lri $AR1,    #0x00ff
lri $IX1,    #0x0000
lri $WR1,    #0x00db
cw 0x5
call send_back  ; 56320 (0xdc00)

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