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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44545 (0xae01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44546 (0xae02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44547 (0xae03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44548 (0xae04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44549 (0xae05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44550 (0xae06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44551 (0xae07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44552 (0xae08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44553 (0xae09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44554 (0xae0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44555 (0xae0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44556 (0xae0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44557 (0xae0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44558 (0xae0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44559 (0xae0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44560 (0xae10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44561 (0xae11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44562 (0xae12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44563 (0xae13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44564 (0xae14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44565 (0xae15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44566 (0xae16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44567 (0xae17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44568 (0xae18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44569 (0xae19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44570 (0xae1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44571 (0xae1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44572 (0xae1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44573 (0xae1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44574 (0xae1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44575 (0xae1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44576 (0xae20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44577 (0xae21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44578 (0xae22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44579 (0xae23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44580 (0xae24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44581 (0xae25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44582 (0xae26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44583 (0xae27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44584 (0xae28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44585 (0xae29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44586 (0xae2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44587 (0xae2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44588 (0xae2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44589 (0xae2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44590 (0xae2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44591 (0xae2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44592 (0xae30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44593 (0xae31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44594 (0xae32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44595 (0xae33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44596 (0xae34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44597 (0xae35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44598 (0xae36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44599 (0xae37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44600 (0xae38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44601 (0xae39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44602 (0xae3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44603 (0xae3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44604 (0xae3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44605 (0xae3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44606 (0xae3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44607 (0xae3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44608 (0xae40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44609 (0xae41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44610 (0xae42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44611 (0xae43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44612 (0xae44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44613 (0xae45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44614 (0xae46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44615 (0xae47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44616 (0xae48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44617 (0xae49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44618 (0xae4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44619 (0xae4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44620 (0xae4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44621 (0xae4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44622 (0xae4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44623 (0xae4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44624 (0xae50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44625 (0xae51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44626 (0xae52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44627 (0xae53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44628 (0xae54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44629 (0xae55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44630 (0xae56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44631 (0xae57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44632 (0xae58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44633 (0xae59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44634 (0xae5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44635 (0xae5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44636 (0xae5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44637 (0xae5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44638 (0xae5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44639 (0xae5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44640 (0xae60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44641 (0xae61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44642 (0xae62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44643 (0xae63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44644 (0xae64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44645 (0xae65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44646 (0xae66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44647 (0xae67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44648 (0xae68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44649 (0xae69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44650 (0xae6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44651 (0xae6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44652 (0xae6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44653 (0xae6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44654 (0xae6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44655 (0xae6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44656 (0xae70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44657 (0xae71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44658 (0xae72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44659 (0xae73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44660 (0xae74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44661 (0xae75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44662 (0xae76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44663 (0xae77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44664 (0xae78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44665 (0xae79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44666 (0xae7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44667 (0xae7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44668 (0xae7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44669 (0xae7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44670 (0xae7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44671 (0xae7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00ae
cw 0x5
call send_back  ; 44672 (0xae80)

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