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

lri $AR1,    #0x4000
lri $IX1,    #0xff80
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65409 (0xff81)

lri $AR1,    #0x4000
lri $IX1,    #0xff81
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65410 (0xff82)

lri $AR1,    #0x4000
lri $IX1,    #0xff82
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65411 (0xff83)

lri $AR1,    #0x4000
lri $IX1,    #0xff83
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65412 (0xff84)

lri $AR1,    #0x4000
lri $IX1,    #0xff84
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65413 (0xff85)

lri $AR1,    #0x4000
lri $IX1,    #0xff85
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65414 (0xff86)

lri $AR1,    #0x4000
lri $IX1,    #0xff86
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65415 (0xff87)

lri $AR1,    #0x4000
lri $IX1,    #0xff87
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65416 (0xff88)

lri $AR1,    #0x4000
lri $IX1,    #0xff88
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65417 (0xff89)

lri $AR1,    #0x4000
lri $IX1,    #0xff89
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65418 (0xff8a)

lri $AR1,    #0x4000
lri $IX1,    #0xff8a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65419 (0xff8b)

lri $AR1,    #0x4000
lri $IX1,    #0xff8b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65420 (0xff8c)

lri $AR1,    #0x4000
lri $IX1,    #0xff8c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65421 (0xff8d)

lri $AR1,    #0x4000
lri $IX1,    #0xff8d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65422 (0xff8e)

lri $AR1,    #0x4000
lri $IX1,    #0xff8e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65423 (0xff8f)

lri $AR1,    #0x4000
lri $IX1,    #0xff8f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65424 (0xff90)

lri $AR1,    #0x4000
lri $IX1,    #0xff90
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65425 (0xff91)

lri $AR1,    #0x4000
lri $IX1,    #0xff91
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65426 (0xff92)

lri $AR1,    #0x4000
lri $IX1,    #0xff92
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65427 (0xff93)

lri $AR1,    #0x4000
lri $IX1,    #0xff93
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65428 (0xff94)

lri $AR1,    #0x4000
lri $IX1,    #0xff94
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65429 (0xff95)

lri $AR1,    #0x4000
lri $IX1,    #0xff95
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65430 (0xff96)

lri $AR1,    #0x4000
lri $IX1,    #0xff96
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65431 (0xff97)

lri $AR1,    #0x4000
lri $IX1,    #0xff97
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65432 (0xff98)

lri $AR1,    #0x4000
lri $IX1,    #0xff98
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65433 (0xff99)

lri $AR1,    #0x4000
lri $IX1,    #0xff99
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65434 (0xff9a)

lri $AR1,    #0x4000
lri $IX1,    #0xff9a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65435 (0xff9b)

lri $AR1,    #0x4000
lri $IX1,    #0xff9b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65436 (0xff9c)

lri $AR1,    #0x4000
lri $IX1,    #0xff9c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65437 (0xff9d)

lri $AR1,    #0x4000
lri $IX1,    #0xff9d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65438 (0xff9e)

lri $AR1,    #0x4000
lri $IX1,    #0xff9e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65439 (0xff9f)

lri $AR1,    #0x4000
lri $IX1,    #0xff9f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65440 (0xffa0)

lri $AR1,    #0x4000
lri $IX1,    #0xffa0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65441 (0xffa1)

lri $AR1,    #0x4000
lri $IX1,    #0xffa1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65442 (0xffa2)

lri $AR1,    #0x4000
lri $IX1,    #0xffa2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65443 (0xffa3)

lri $AR1,    #0x4000
lri $IX1,    #0xffa3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65444 (0xffa4)

lri $AR1,    #0x4000
lri $IX1,    #0xffa4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65445 (0xffa5)

lri $AR1,    #0x4000
lri $IX1,    #0xffa5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65446 (0xffa6)

lri $AR1,    #0x4000
lri $IX1,    #0xffa6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65447 (0xffa7)

lri $AR1,    #0x4000
lri $IX1,    #0xffa7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65448 (0xffa8)

lri $AR1,    #0x4000
lri $IX1,    #0xffa8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65449 (0xffa9)

lri $AR1,    #0x4000
lri $IX1,    #0xffa9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65450 (0xffaa)

lri $AR1,    #0x4000
lri $IX1,    #0xffaa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65451 (0xffab)

lri $AR1,    #0x4000
lri $IX1,    #0xffab
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65452 (0xffac)

lri $AR1,    #0x4000
lri $IX1,    #0xffac
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65453 (0xffad)

lri $AR1,    #0x4000
lri $IX1,    #0xffad
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65454 (0xffae)

lri $AR1,    #0x4000
lri $IX1,    #0xffae
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65455 (0xffaf)

lri $AR1,    #0x4000
lri $IX1,    #0xffaf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65456 (0xffb0)

lri $AR1,    #0x4000
lri $IX1,    #0xffb0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65457 (0xffb1)

lri $AR1,    #0x4000
lri $IX1,    #0xffb1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65458 (0xffb2)

lri $AR1,    #0x4000
lri $IX1,    #0xffb2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65459 (0xffb3)

lri $AR1,    #0x4000
lri $IX1,    #0xffb3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65460 (0xffb4)

lri $AR1,    #0x4000
lri $IX1,    #0xffb4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65461 (0xffb5)

lri $AR1,    #0x4000
lri $IX1,    #0xffb5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65462 (0xffb6)

lri $AR1,    #0x4000
lri $IX1,    #0xffb6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65463 (0xffb7)

lri $AR1,    #0x4000
lri $IX1,    #0xffb7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65464 (0xffb8)

lri $AR1,    #0x4000
lri $IX1,    #0xffb8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65465 (0xffb9)

lri $AR1,    #0x4000
lri $IX1,    #0xffb9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65466 (0xffba)

lri $AR1,    #0x4000
lri $IX1,    #0xffba
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65467 (0xffbb)

lri $AR1,    #0x4000
lri $IX1,    #0xffbb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65468 (0xffbc)

lri $AR1,    #0x4000
lri $IX1,    #0xffbc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65469 (0xffbd)

lri $AR1,    #0x4000
lri $IX1,    #0xffbd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65470 (0xffbe)

lri $AR1,    #0x4000
lri $IX1,    #0xffbe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65471 (0xffbf)

lri $AR1,    #0x4000
lri $IX1,    #0xffbf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65472 (0xffc0)

lri $AR1,    #0x4000
lri $IX1,    #0xffc0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65473 (0xffc1)

lri $AR1,    #0x4000
lri $IX1,    #0xffc1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65474 (0xffc2)

lri $AR1,    #0x4000
lri $IX1,    #0xffc2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65475 (0xffc3)

lri $AR1,    #0x4000
lri $IX1,    #0xffc3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65476 (0xffc4)

lri $AR1,    #0x4000
lri $IX1,    #0xffc4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65477 (0xffc5)

lri $AR1,    #0x4000
lri $IX1,    #0xffc5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65478 (0xffc6)

lri $AR1,    #0x4000
lri $IX1,    #0xffc6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65479 (0xffc7)

lri $AR1,    #0x4000
lri $IX1,    #0xffc7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65480 (0xffc8)

lri $AR1,    #0x4000
lri $IX1,    #0xffc8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65481 (0xffc9)

lri $AR1,    #0x4000
lri $IX1,    #0xffc9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65482 (0xffca)

lri $AR1,    #0x4000
lri $IX1,    #0xffca
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65483 (0xffcb)

lri $AR1,    #0x4000
lri $IX1,    #0xffcb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65484 (0xffcc)

lri $AR1,    #0x4000
lri $IX1,    #0xffcc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65485 (0xffcd)

lri $AR1,    #0x4000
lri $IX1,    #0xffcd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65486 (0xffce)

lri $AR1,    #0x4000
lri $IX1,    #0xffce
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65487 (0xffcf)

lri $AR1,    #0x4000
lri $IX1,    #0xffcf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65488 (0xffd0)

lri $AR1,    #0x4000
lri $IX1,    #0xffd0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65489 (0xffd1)

lri $AR1,    #0x4000
lri $IX1,    #0xffd1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65490 (0xffd2)

lri $AR1,    #0x4000
lri $IX1,    #0xffd2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65491 (0xffd3)

lri $AR1,    #0x4000
lri $IX1,    #0xffd3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65492 (0xffd4)

lri $AR1,    #0x4000
lri $IX1,    #0xffd4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65493 (0xffd5)

lri $AR1,    #0x4000
lri $IX1,    #0xffd5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65494 (0xffd6)

lri $AR1,    #0x4000
lri $IX1,    #0xffd6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65495 (0xffd7)

lri $AR1,    #0x4000
lri $IX1,    #0xffd7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65496 (0xffd8)

lri $AR1,    #0x4000
lri $IX1,    #0xffd8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65497 (0xffd9)

lri $AR1,    #0x4000
lri $IX1,    #0xffd9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65498 (0xffda)

lri $AR1,    #0x4000
lri $IX1,    #0xffda
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65499 (0xffdb)

lri $AR1,    #0x4000
lri $IX1,    #0xffdb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65500 (0xffdc)

lri $AR1,    #0x4000
lri $IX1,    #0xffdc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65501 (0xffdd)

lri $AR1,    #0x4000
lri $IX1,    #0xffdd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65502 (0xffde)

lri $AR1,    #0x4000
lri $IX1,    #0xffde
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65503 (0xffdf)

lri $AR1,    #0x4000
lri $IX1,    #0xffdf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65504 (0xffe0)

lri $AR1,    #0x4000
lri $IX1,    #0xffe0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65505 (0xffe1)

lri $AR1,    #0x4000
lri $IX1,    #0xffe1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65506 (0xffe2)

lri $AR1,    #0x4000
lri $IX1,    #0xffe2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65507 (0xffe3)

lri $AR1,    #0x4000
lri $IX1,    #0xffe3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65508 (0xffe4)

lri $AR1,    #0x4000
lri $IX1,    #0xffe4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65509 (0xffe5)

lri $AR1,    #0x4000
lri $IX1,    #0xffe5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65510 (0xffe6)

lri $AR1,    #0x4000
lri $IX1,    #0xffe6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65511 (0xffe7)

lri $AR1,    #0x4000
lri $IX1,    #0xffe7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65512 (0xffe8)

lri $AR1,    #0x4000
lri $IX1,    #0xffe8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65513 (0xffe9)

lri $AR1,    #0x4000
lri $IX1,    #0xffe9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65514 (0xffea)

lri $AR1,    #0x4000
lri $IX1,    #0xffea
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65515 (0xffeb)

lri $AR1,    #0x4000
lri $IX1,    #0xffeb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65516 (0xffec)

lri $AR1,    #0x4000
lri $IX1,    #0xffec
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65517 (0xffed)

lri $AR1,    #0x4000
lri $IX1,    #0xffed
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65518 (0xffee)

lri $AR1,    #0x4000
lri $IX1,    #0xffee
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65519 (0xffef)

lri $AR1,    #0x4000
lri $IX1,    #0xffef
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65520 (0xfff0)

lri $AR1,    #0x4000
lri $IX1,    #0xfff0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65521 (0xfff1)

lri $AR1,    #0x4000
lri $IX1,    #0xfff1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65522 (0xfff2)

lri $AR1,    #0x4000
lri $IX1,    #0xfff2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65523 (0xfff3)

lri $AR1,    #0x4000
lri $IX1,    #0xfff3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65524 (0xfff4)

lri $AR1,    #0x4000
lri $IX1,    #0xfff4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65525 (0xfff5)

lri $AR1,    #0x4000
lri $IX1,    #0xfff5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65526 (0xfff6)

lri $AR1,    #0x4000
lri $IX1,    #0xfff6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65527 (0xfff7)

lri $AR1,    #0x4000
lri $IX1,    #0xfff7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65528 (0xfff8)

lri $AR1,    #0x4000
lri $IX1,    #0xfff8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65529 (0xfff9)

lri $AR1,    #0x4000
lri $IX1,    #0xfff9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65530 (0xfffa)

lri $AR1,    #0x4000
lri $IX1,    #0xfffa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65531 (0xfffb)

lri $AR1,    #0x4000
lri $IX1,    #0xfffb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65532 (0xfffc)

lri $AR1,    #0x4000
lri $IX1,    #0xfffc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65533 (0xfffd)

lri $AR1,    #0x4000
lri $IX1,    #0xfffd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65534 (0xfffe)

lri $AR1,    #0x4000
lri $IX1,    #0xfffe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65535 (0xffff)

lri $AR1,    #0x4000
lri $IX1,    #0xffff
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 65536 (0x10000)

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

