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

lri $AR1,    #0x4000
lri $IX1,    #0xf200
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61953 (0xf201)

lri $AR1,    #0x4000
lri $IX1,    #0xf201
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61954 (0xf202)

lri $AR1,    #0x4000
lri $IX1,    #0xf202
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61955 (0xf203)

lri $AR1,    #0x4000
lri $IX1,    #0xf203
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61956 (0xf204)

lri $AR1,    #0x4000
lri $IX1,    #0xf204
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61957 (0xf205)

lri $AR1,    #0x4000
lri $IX1,    #0xf205
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61958 (0xf206)

lri $AR1,    #0x4000
lri $IX1,    #0xf206
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61959 (0xf207)

lri $AR1,    #0x4000
lri $IX1,    #0xf207
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61960 (0xf208)

lri $AR1,    #0x4000
lri $IX1,    #0xf208
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61961 (0xf209)

lri $AR1,    #0x4000
lri $IX1,    #0xf209
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61962 (0xf20a)

lri $AR1,    #0x4000
lri $IX1,    #0xf20a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61963 (0xf20b)

lri $AR1,    #0x4000
lri $IX1,    #0xf20b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61964 (0xf20c)

lri $AR1,    #0x4000
lri $IX1,    #0xf20c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61965 (0xf20d)

lri $AR1,    #0x4000
lri $IX1,    #0xf20d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61966 (0xf20e)

lri $AR1,    #0x4000
lri $IX1,    #0xf20e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61967 (0xf20f)

lri $AR1,    #0x4000
lri $IX1,    #0xf20f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61968 (0xf210)

lri $AR1,    #0x4000
lri $IX1,    #0xf210
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61969 (0xf211)

lri $AR1,    #0x4000
lri $IX1,    #0xf211
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61970 (0xf212)

lri $AR1,    #0x4000
lri $IX1,    #0xf212
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61971 (0xf213)

lri $AR1,    #0x4000
lri $IX1,    #0xf213
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61972 (0xf214)

lri $AR1,    #0x4000
lri $IX1,    #0xf214
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61973 (0xf215)

lri $AR1,    #0x4000
lri $IX1,    #0xf215
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61974 (0xf216)

lri $AR1,    #0x4000
lri $IX1,    #0xf216
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61975 (0xf217)

lri $AR1,    #0x4000
lri $IX1,    #0xf217
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61976 (0xf218)

lri $AR1,    #0x4000
lri $IX1,    #0xf218
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61977 (0xf219)

lri $AR1,    #0x4000
lri $IX1,    #0xf219
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61978 (0xf21a)

lri $AR1,    #0x4000
lri $IX1,    #0xf21a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61979 (0xf21b)

lri $AR1,    #0x4000
lri $IX1,    #0xf21b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61980 (0xf21c)

lri $AR1,    #0x4000
lri $IX1,    #0xf21c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61981 (0xf21d)

lri $AR1,    #0x4000
lri $IX1,    #0xf21d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61982 (0xf21e)

lri $AR1,    #0x4000
lri $IX1,    #0xf21e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61983 (0xf21f)

lri $AR1,    #0x4000
lri $IX1,    #0xf21f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61984 (0xf220)

lri $AR1,    #0x4000
lri $IX1,    #0xf220
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61985 (0xf221)

lri $AR1,    #0x4000
lri $IX1,    #0xf221
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61986 (0xf222)

lri $AR1,    #0x4000
lri $IX1,    #0xf222
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61987 (0xf223)

lri $AR1,    #0x4000
lri $IX1,    #0xf223
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61988 (0xf224)

lri $AR1,    #0x4000
lri $IX1,    #0xf224
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61989 (0xf225)

lri $AR1,    #0x4000
lri $IX1,    #0xf225
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61990 (0xf226)

lri $AR1,    #0x4000
lri $IX1,    #0xf226
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61991 (0xf227)

lri $AR1,    #0x4000
lri $IX1,    #0xf227
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61992 (0xf228)

lri $AR1,    #0x4000
lri $IX1,    #0xf228
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61993 (0xf229)

lri $AR1,    #0x4000
lri $IX1,    #0xf229
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61994 (0xf22a)

lri $AR1,    #0x4000
lri $IX1,    #0xf22a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61995 (0xf22b)

lri $AR1,    #0x4000
lri $IX1,    #0xf22b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61996 (0xf22c)

lri $AR1,    #0x4000
lri $IX1,    #0xf22c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61997 (0xf22d)

lri $AR1,    #0x4000
lri $IX1,    #0xf22d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61998 (0xf22e)

lri $AR1,    #0x4000
lri $IX1,    #0xf22e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 61999 (0xf22f)

lri $AR1,    #0x4000
lri $IX1,    #0xf22f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62000 (0xf230)

lri $AR1,    #0x4000
lri $IX1,    #0xf230
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62001 (0xf231)

lri $AR1,    #0x4000
lri $IX1,    #0xf231
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62002 (0xf232)

lri $AR1,    #0x4000
lri $IX1,    #0xf232
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62003 (0xf233)

lri $AR1,    #0x4000
lri $IX1,    #0xf233
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62004 (0xf234)

lri $AR1,    #0x4000
lri $IX1,    #0xf234
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62005 (0xf235)

lri $AR1,    #0x4000
lri $IX1,    #0xf235
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62006 (0xf236)

lri $AR1,    #0x4000
lri $IX1,    #0xf236
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62007 (0xf237)

lri $AR1,    #0x4000
lri $IX1,    #0xf237
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62008 (0xf238)

lri $AR1,    #0x4000
lri $IX1,    #0xf238
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62009 (0xf239)

lri $AR1,    #0x4000
lri $IX1,    #0xf239
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62010 (0xf23a)

lri $AR1,    #0x4000
lri $IX1,    #0xf23a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62011 (0xf23b)

lri $AR1,    #0x4000
lri $IX1,    #0xf23b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62012 (0xf23c)

lri $AR1,    #0x4000
lri $IX1,    #0xf23c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62013 (0xf23d)

lri $AR1,    #0x4000
lri $IX1,    #0xf23d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62014 (0xf23e)

lri $AR1,    #0x4000
lri $IX1,    #0xf23e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62015 (0xf23f)

lri $AR1,    #0x4000
lri $IX1,    #0xf23f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62016 (0xf240)

lri $AR1,    #0x4000
lri $IX1,    #0xf240
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62017 (0xf241)

lri $AR1,    #0x4000
lri $IX1,    #0xf241
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62018 (0xf242)

lri $AR1,    #0x4000
lri $IX1,    #0xf242
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62019 (0xf243)

lri $AR1,    #0x4000
lri $IX1,    #0xf243
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62020 (0xf244)

lri $AR1,    #0x4000
lri $IX1,    #0xf244
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62021 (0xf245)

lri $AR1,    #0x4000
lri $IX1,    #0xf245
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62022 (0xf246)

lri $AR1,    #0x4000
lri $IX1,    #0xf246
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62023 (0xf247)

lri $AR1,    #0x4000
lri $IX1,    #0xf247
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62024 (0xf248)

lri $AR1,    #0x4000
lri $IX1,    #0xf248
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62025 (0xf249)

lri $AR1,    #0x4000
lri $IX1,    #0xf249
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62026 (0xf24a)

lri $AR1,    #0x4000
lri $IX1,    #0xf24a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62027 (0xf24b)

lri $AR1,    #0x4000
lri $IX1,    #0xf24b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62028 (0xf24c)

lri $AR1,    #0x4000
lri $IX1,    #0xf24c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62029 (0xf24d)

lri $AR1,    #0x4000
lri $IX1,    #0xf24d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62030 (0xf24e)

lri $AR1,    #0x4000
lri $IX1,    #0xf24e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62031 (0xf24f)

lri $AR1,    #0x4000
lri $IX1,    #0xf24f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62032 (0xf250)

lri $AR1,    #0x4000
lri $IX1,    #0xf250
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62033 (0xf251)

lri $AR1,    #0x4000
lri $IX1,    #0xf251
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62034 (0xf252)

lri $AR1,    #0x4000
lri $IX1,    #0xf252
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62035 (0xf253)

lri $AR1,    #0x4000
lri $IX1,    #0xf253
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62036 (0xf254)

lri $AR1,    #0x4000
lri $IX1,    #0xf254
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62037 (0xf255)

lri $AR1,    #0x4000
lri $IX1,    #0xf255
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62038 (0xf256)

lri $AR1,    #0x4000
lri $IX1,    #0xf256
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62039 (0xf257)

lri $AR1,    #0x4000
lri $IX1,    #0xf257
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62040 (0xf258)

lri $AR1,    #0x4000
lri $IX1,    #0xf258
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62041 (0xf259)

lri $AR1,    #0x4000
lri $IX1,    #0xf259
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62042 (0xf25a)

lri $AR1,    #0x4000
lri $IX1,    #0xf25a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62043 (0xf25b)

lri $AR1,    #0x4000
lri $IX1,    #0xf25b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62044 (0xf25c)

lri $AR1,    #0x4000
lri $IX1,    #0xf25c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62045 (0xf25d)

lri $AR1,    #0x4000
lri $IX1,    #0xf25d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62046 (0xf25e)

lri $AR1,    #0x4000
lri $IX1,    #0xf25e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62047 (0xf25f)

lri $AR1,    #0x4000
lri $IX1,    #0xf25f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62048 (0xf260)

lri $AR1,    #0x4000
lri $IX1,    #0xf260
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62049 (0xf261)

lri $AR1,    #0x4000
lri $IX1,    #0xf261
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62050 (0xf262)

lri $AR1,    #0x4000
lri $IX1,    #0xf262
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62051 (0xf263)

lri $AR1,    #0x4000
lri $IX1,    #0xf263
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62052 (0xf264)

lri $AR1,    #0x4000
lri $IX1,    #0xf264
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62053 (0xf265)

lri $AR1,    #0x4000
lri $IX1,    #0xf265
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62054 (0xf266)

lri $AR1,    #0x4000
lri $IX1,    #0xf266
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62055 (0xf267)

lri $AR1,    #0x4000
lri $IX1,    #0xf267
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62056 (0xf268)

lri $AR1,    #0x4000
lri $IX1,    #0xf268
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62057 (0xf269)

lri $AR1,    #0x4000
lri $IX1,    #0xf269
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62058 (0xf26a)

lri $AR1,    #0x4000
lri $IX1,    #0xf26a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62059 (0xf26b)

lri $AR1,    #0x4000
lri $IX1,    #0xf26b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62060 (0xf26c)

lri $AR1,    #0x4000
lri $IX1,    #0xf26c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62061 (0xf26d)

lri $AR1,    #0x4000
lri $IX1,    #0xf26d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62062 (0xf26e)

lri $AR1,    #0x4000
lri $IX1,    #0xf26e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62063 (0xf26f)

lri $AR1,    #0x4000
lri $IX1,    #0xf26f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62064 (0xf270)

lri $AR1,    #0x4000
lri $IX1,    #0xf270
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62065 (0xf271)

lri $AR1,    #0x4000
lri $IX1,    #0xf271
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62066 (0xf272)

lri $AR1,    #0x4000
lri $IX1,    #0xf272
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62067 (0xf273)

lri $AR1,    #0x4000
lri $IX1,    #0xf273
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62068 (0xf274)

lri $AR1,    #0x4000
lri $IX1,    #0xf274
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62069 (0xf275)

lri $AR1,    #0x4000
lri $IX1,    #0xf275
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62070 (0xf276)

lri $AR1,    #0x4000
lri $IX1,    #0xf276
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62071 (0xf277)

lri $AR1,    #0x4000
lri $IX1,    #0xf277
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62072 (0xf278)

lri $AR1,    #0x4000
lri $IX1,    #0xf278
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62073 (0xf279)

lri $AR1,    #0x4000
lri $IX1,    #0xf279
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62074 (0xf27a)

lri $AR1,    #0x4000
lri $IX1,    #0xf27a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62075 (0xf27b)

lri $AR1,    #0x4000
lri $IX1,    #0xf27b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62076 (0xf27c)

lri $AR1,    #0x4000
lri $IX1,    #0xf27c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62077 (0xf27d)

lri $AR1,    #0x4000
lri $IX1,    #0xf27d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62078 (0xf27e)

lri $AR1,    #0x4000
lri $IX1,    #0xf27e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62079 (0xf27f)

lri $AR1,    #0x4000
lri $IX1,    #0xf27f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 62080 (0xf280)

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

