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

lri $AR1,    #0x0040
lri $IX1,    #0xcfc9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53194 (0xcfca)

lri $AR1,    #0x0040
lri $IX1,    #0xcfca
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53195 (0xcfcb)

lri $AR1,    #0x0040
lri $IX1,    #0xcfcb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53196 (0xcfcc)

lri $AR1,    #0x0040
lri $IX1,    #0xcfcc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53197 (0xcfcd)

lri $AR1,    #0x0040
lri $IX1,    #0xcfcd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53198 (0xcfce)

lri $AR1,    #0x0040
lri $IX1,    #0xcfce
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53199 (0xcfcf)

lri $AR1,    #0x0040
lri $IX1,    #0xcfcf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53200 (0xcfd0)

lri $AR1,    #0x0040
lri $IX1,    #0xcfd0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53201 (0xcfd1)

lri $AR1,    #0x0040
lri $IX1,    #0xcfd1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53202 (0xcfd2)

lri $AR1,    #0x0040
lri $IX1,    #0xcfd2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53203 (0xcfd3)

lri $AR1,    #0x0040
lri $IX1,    #0xcfd3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53204 (0xcfd4)

lri $AR1,    #0x0040
lri $IX1,    #0xcfd4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53205 (0xcfd5)

lri $AR1,    #0x0040
lri $IX1,    #0xcfd5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53206 (0xcfd6)

lri $AR1,    #0x0040
lri $IX1,    #0xcfd6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53207 (0xcfd7)

lri $AR1,    #0x0040
lri $IX1,    #0xcfd7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53208 (0xcfd8)

lri $AR1,    #0x0040
lri $IX1,    #0xcfd8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53209 (0xcfd9)

lri $AR1,    #0x0040
lri $IX1,    #0xcfd9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53210 (0xcfda)

lri $AR1,    #0x0040
lri $IX1,    #0xcfda
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53211 (0xcfdb)

lri $AR1,    #0x0040
lri $IX1,    #0xcfdb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53212 (0xcfdc)

lri $AR1,    #0x0040
lri $IX1,    #0xcfdc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53213 (0xcfdd)

lri $AR1,    #0x0040
lri $IX1,    #0xcfdd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53214 (0xcfde)

lri $AR1,    #0x0040
lri $IX1,    #0xcfde
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53215 (0xcfdf)

lri $AR1,    #0x0040
lri $IX1,    #0xcfdf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53216 (0xcfe0)

lri $AR1,    #0x0040
lri $IX1,    #0xcfe0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53217 (0xcfe1)

lri $AR1,    #0x0040
lri $IX1,    #0xcfe1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53218 (0xcfe2)

lri $AR1,    #0x0040
lri $IX1,    #0xcfe2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53219 (0xcfe3)

lri $AR1,    #0x0040
lri $IX1,    #0xcfe3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53220 (0xcfe4)

lri $AR1,    #0x0040
lri $IX1,    #0xcfe4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53221 (0xcfe5)

lri $AR1,    #0x0040
lri $IX1,    #0xcfe5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53222 (0xcfe6)

lri $AR1,    #0x0040
lri $IX1,    #0xcfe6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53223 (0xcfe7)

lri $AR1,    #0x0040
lri $IX1,    #0xcfe7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53224 (0xcfe8)

lri $AR1,    #0x0040
lri $IX1,    #0xcfe8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53225 (0xcfe9)

lri $AR1,    #0x0040
lri $IX1,    #0xcfe9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53226 (0xcfea)

lri $AR1,    #0x0040
lri $IX1,    #0xcfea
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53227 (0xcfeb)

lri $AR1,    #0x0040
lri $IX1,    #0xcfeb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53228 (0xcfec)

lri $AR1,    #0x0040
lri $IX1,    #0xcfec
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53229 (0xcfed)

lri $AR1,    #0x0040
lri $IX1,    #0xcfed
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53230 (0xcfee)

lri $AR1,    #0x0040
lri $IX1,    #0xcfee
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53231 (0xcfef)

lri $AR1,    #0x0040
lri $IX1,    #0xcfef
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53232 (0xcff0)

lri $AR1,    #0x0040
lri $IX1,    #0xcff0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53233 (0xcff1)

lri $AR1,    #0x0040
lri $IX1,    #0xcff1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53234 (0xcff2)

lri $AR1,    #0x0040
lri $IX1,    #0xcff2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53235 (0xcff3)

lri $AR1,    #0x0040
lri $IX1,    #0xcff3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53236 (0xcff4)

lri $AR1,    #0x0040
lri $IX1,    #0xcff4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53237 (0xcff5)

lri $AR1,    #0x0040
lri $IX1,    #0xcff5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53238 (0xcff6)

lri $AR1,    #0x0040
lri $IX1,    #0xcff6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53239 (0xcff7)

lri $AR1,    #0x0040
lri $IX1,    #0xcff7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53240 (0xcff8)

lri $AR1,    #0x0040
lri $IX1,    #0xcff8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53241 (0xcff9)

lri $AR1,    #0x0040
lri $IX1,    #0xcff9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53242 (0xcffa)

lri $AR1,    #0x0040
lri $IX1,    #0xcffa
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53243 (0xcffb)

lri $AR1,    #0x0040
lri $IX1,    #0xcffb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53244 (0xcffc)

lri $AR1,    #0x0040
lri $IX1,    #0xcffc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53245 (0xcffd)

lri $AR1,    #0x0040
lri $IX1,    #0xcffd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53246 (0xcffe)

lri $AR1,    #0x0040
lri $IX1,    #0xcffe
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53247 (0xcfff)

lri $AR1,    #0x0040
lri $IX1,    #0xcfff
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53248 (0xd000)

lri $AR1,    #0x0040
lri $IX1,    #0xd000
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53249 (0xd001)

lri $AR1,    #0x0040
lri $IX1,    #0xd001
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53250 (0xd002)

lri $AR1,    #0x0040
lri $IX1,    #0xd002
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53251 (0xd003)

lri $AR1,    #0x0040
lri $IX1,    #0xd003
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53252 (0xd004)

lri $AR1,    #0x0040
lri $IX1,    #0xd004
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53253 (0xd005)

lri $AR1,    #0x0040
lri $IX1,    #0xd005
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53254 (0xd006)

lri $AR1,    #0x0040
lri $IX1,    #0xd006
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53255 (0xd007)

lri $AR1,    #0x0040
lri $IX1,    #0xd007
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53256 (0xd008)

lri $AR1,    #0x0040
lri $IX1,    #0xd008
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53257 (0xd009)

lri $AR1,    #0x0040
lri $IX1,    #0xd009
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53258 (0xd00a)

lri $AR1,    #0x0040
lri $IX1,    #0xd00a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53259 (0xd00b)

lri $AR1,    #0x0040
lri $IX1,    #0xd00b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53260 (0xd00c)

lri $AR1,    #0x0040
lri $IX1,    #0xd00c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53261 (0xd00d)

lri $AR1,    #0x0040
lri $IX1,    #0xd00d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53262 (0xd00e)

lri $AR1,    #0x0040
lri $IX1,    #0xd00e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53263 (0xd00f)

lri $AR1,    #0x0040
lri $IX1,    #0xd00f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53264 (0xd010)

lri $AR1,    #0x0040
lri $IX1,    #0xd010
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53265 (0xd011)

lri $AR1,    #0x0040
lri $IX1,    #0xd011
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53266 (0xd012)

lri $AR1,    #0x0040
lri $IX1,    #0xd012
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53267 (0xd013)

lri $AR1,    #0x0040
lri $IX1,    #0xd013
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53268 (0xd014)

lri $AR1,    #0x0040
lri $IX1,    #0xd014
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53269 (0xd015)

lri $AR1,    #0x0040
lri $IX1,    #0xd015
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53270 (0xd016)

lri $AR1,    #0x0040
lri $IX1,    #0xd016
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53271 (0xd017)

lri $AR1,    #0x0040
lri $IX1,    #0xd017
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53272 (0xd018)

lri $AR1,    #0x0040
lri $IX1,    #0xd018
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53273 (0xd019)

lri $AR1,    #0x0040
lri $IX1,    #0xd019
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53274 (0xd01a)

lri $AR1,    #0x0040
lri $IX1,    #0xd01a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53275 (0xd01b)

lri $AR1,    #0x0040
lri $IX1,    #0xd01b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53276 (0xd01c)

lri $AR1,    #0x0040
lri $IX1,    #0xd01c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53277 (0xd01d)

lri $AR1,    #0x0040
lri $IX1,    #0xd01d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53278 (0xd01e)

lri $AR1,    #0x0040
lri $IX1,    #0xd01e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53279 (0xd01f)

lri $AR1,    #0x0040
lri $IX1,    #0xd01f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53280 (0xd020)

lri $AR1,    #0x0040
lri $IX1,    #0xd020
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53281 (0xd021)

lri $AR1,    #0x0040
lri $IX1,    #0xd021
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53282 (0xd022)

lri $AR1,    #0x0040
lri $IX1,    #0xd022
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53283 (0xd023)

lri $AR1,    #0x0040
lri $IX1,    #0xd023
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53284 (0xd024)

lri $AR1,    #0x0040
lri $IX1,    #0xd024
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53285 (0xd025)

lri $AR1,    #0x0040
lri $IX1,    #0xd025
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53286 (0xd026)

lri $AR1,    #0x0040
lri $IX1,    #0xd026
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53287 (0xd027)

lri $AR1,    #0x0040
lri $IX1,    #0xd027
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53288 (0xd028)

lri $AR1,    #0x0040
lri $IX1,    #0xd028
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53289 (0xd029)

lri $AR1,    #0x0040
lri $IX1,    #0xd029
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53290 (0xd02a)

lri $AR1,    #0x0040
lri $IX1,    #0xd02a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53291 (0xd02b)

lri $AR1,    #0x0040
lri $IX1,    #0xd02b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53292 (0xd02c)

lri $AR1,    #0x0040
lri $IX1,    #0xd02c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53293 (0xd02d)

lri $AR1,    #0x0040
lri $IX1,    #0xd02d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53294 (0xd02e)

lri $AR1,    #0x0040
lri $IX1,    #0xd02e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53295 (0xd02f)

lri $AR1,    #0x0040
lri $IX1,    #0xd02f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53296 (0xd030)

lri $AR1,    #0x0040
lri $IX1,    #0xd030
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53297 (0xd031)

lri $AR1,    #0x0040
lri $IX1,    #0xd031
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53298 (0xd032)

lri $AR1,    #0x0040
lri $IX1,    #0xd032
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53299 (0xd033)

lri $AR1,    #0x0040
lri $IX1,    #0xd033
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53300 (0xd034)

lri $AR1,    #0x0040
lri $IX1,    #0xd034
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53301 (0xd035)

lri $AR1,    #0x0040
lri $IX1,    #0xd035
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 53302 (0xd036)

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