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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64513 (0xfc01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64514 (0xfc02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64515 (0xfc03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64516 (0xfc04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64517 (0xfc05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64518 (0xfc06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64519 (0xfc07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64520 (0xfc08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64521 (0xfc09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64522 (0xfc0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64523 (0xfc0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64524 (0xfc0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64525 (0xfc0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64526 (0xfc0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64527 (0xfc0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64528 (0xfc10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64529 (0xfc11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64530 (0xfc12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64531 (0xfc13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64532 (0xfc14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64533 (0xfc15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64534 (0xfc16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64535 (0xfc17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64536 (0xfc18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64537 (0xfc19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64538 (0xfc1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64539 (0xfc1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64540 (0xfc1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64541 (0xfc1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64542 (0xfc1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64543 (0xfc1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64544 (0xfc20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64545 (0xfc21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64546 (0xfc22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64547 (0xfc23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64548 (0xfc24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64549 (0xfc25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64550 (0xfc26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64551 (0xfc27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64552 (0xfc28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64553 (0xfc29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64554 (0xfc2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64555 (0xfc2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64556 (0xfc2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64557 (0xfc2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64558 (0xfc2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64559 (0xfc2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64560 (0xfc30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64561 (0xfc31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64562 (0xfc32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64563 (0xfc33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64564 (0xfc34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64565 (0xfc35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64566 (0xfc36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64567 (0xfc37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64568 (0xfc38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64569 (0xfc39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64570 (0xfc3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64571 (0xfc3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64572 (0xfc3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64573 (0xfc3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64574 (0xfc3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64575 (0xfc3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64576 (0xfc40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64577 (0xfc41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64578 (0xfc42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64579 (0xfc43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64580 (0xfc44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64581 (0xfc45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64582 (0xfc46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64583 (0xfc47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64584 (0xfc48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64585 (0xfc49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64586 (0xfc4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64587 (0xfc4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64588 (0xfc4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64589 (0xfc4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64590 (0xfc4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64591 (0xfc4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64592 (0xfc50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64593 (0xfc51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64594 (0xfc52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64595 (0xfc53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64596 (0xfc54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64597 (0xfc55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64598 (0xfc56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64599 (0xfc57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64600 (0xfc58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64601 (0xfc59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64602 (0xfc5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64603 (0xfc5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64604 (0xfc5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64605 (0xfc5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64606 (0xfc5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64607 (0xfc5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64608 (0xfc60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64609 (0xfc61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64610 (0xfc62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64611 (0xfc63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64612 (0xfc64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64613 (0xfc65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64614 (0xfc66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64615 (0xfc67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64616 (0xfc68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64617 (0xfc69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64618 (0xfc6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64619 (0xfc6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64620 (0xfc6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64621 (0xfc6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64622 (0xfc6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64623 (0xfc6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64624 (0xfc70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64625 (0xfc71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64626 (0xfc72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64627 (0xfc73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64628 (0xfc74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64629 (0xfc75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64630 (0xfc76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64631 (0xfc77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64632 (0xfc78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64633 (0xfc79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64634 (0xfc7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64635 (0xfc7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64636 (0xfc7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64637 (0xfc7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64638 (0xfc7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64639 (0xfc7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00fc
cw 0x5
call send_back  ; 64640 (0xfc80)

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