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

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd00
cw 0x9
call send_back  ; 56577 (0xdd01)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd01
cw 0x9
call send_back  ; 56578 (0xdd02)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd02
cw 0x9
call send_back  ; 56579 (0xdd03)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd03
cw 0x9
call send_back  ; 56580 (0xdd04)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd04
cw 0x9
call send_back  ; 56581 (0xdd05)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd05
cw 0x9
call send_back  ; 56582 (0xdd06)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd06
cw 0x9
call send_back  ; 56583 (0xdd07)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd07
cw 0x9
call send_back  ; 56584 (0xdd08)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd08
cw 0x9
call send_back  ; 56585 (0xdd09)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd09
cw 0x9
call send_back  ; 56586 (0xdd0a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd0a
cw 0x9
call send_back  ; 56587 (0xdd0b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd0b
cw 0x9
call send_back  ; 56588 (0xdd0c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd0c
cw 0x9
call send_back  ; 56589 (0xdd0d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd0d
cw 0x9
call send_back  ; 56590 (0xdd0e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd0e
cw 0x9
call send_back  ; 56591 (0xdd0f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd0f
cw 0x9
call send_back  ; 56592 (0xdd10)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd10
cw 0x9
call send_back  ; 56593 (0xdd11)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd11
cw 0x9
call send_back  ; 56594 (0xdd12)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd12
cw 0x9
call send_back  ; 56595 (0xdd13)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd13
cw 0x9
call send_back  ; 56596 (0xdd14)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd14
cw 0x9
call send_back  ; 56597 (0xdd15)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd15
cw 0x9
call send_back  ; 56598 (0xdd16)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd16
cw 0x9
call send_back  ; 56599 (0xdd17)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd17
cw 0x9
call send_back  ; 56600 (0xdd18)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd18
cw 0x9
call send_back  ; 56601 (0xdd19)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd19
cw 0x9
call send_back  ; 56602 (0xdd1a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd1a
cw 0x9
call send_back  ; 56603 (0xdd1b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd1b
cw 0x9
call send_back  ; 56604 (0xdd1c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd1c
cw 0x9
call send_back  ; 56605 (0xdd1d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd1d
cw 0x9
call send_back  ; 56606 (0xdd1e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd1e
cw 0x9
call send_back  ; 56607 (0xdd1f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd1f
cw 0x9
call send_back  ; 56608 (0xdd20)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd20
cw 0x9
call send_back  ; 56609 (0xdd21)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd21
cw 0x9
call send_back  ; 56610 (0xdd22)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd22
cw 0x9
call send_back  ; 56611 (0xdd23)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd23
cw 0x9
call send_back  ; 56612 (0xdd24)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd24
cw 0x9
call send_back  ; 56613 (0xdd25)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd25
cw 0x9
call send_back  ; 56614 (0xdd26)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd26
cw 0x9
call send_back  ; 56615 (0xdd27)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd27
cw 0x9
call send_back  ; 56616 (0xdd28)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd28
cw 0x9
call send_back  ; 56617 (0xdd29)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd29
cw 0x9
call send_back  ; 56618 (0xdd2a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd2a
cw 0x9
call send_back  ; 56619 (0xdd2b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd2b
cw 0x9
call send_back  ; 56620 (0xdd2c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd2c
cw 0x9
call send_back  ; 56621 (0xdd2d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd2d
cw 0x9
call send_back  ; 56622 (0xdd2e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd2e
cw 0x9
call send_back  ; 56623 (0xdd2f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd2f
cw 0x9
call send_back  ; 56624 (0xdd30)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd30
cw 0x9
call send_back  ; 56625 (0xdd31)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd31
cw 0x9
call send_back  ; 56626 (0xdd32)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd32
cw 0x9
call send_back  ; 56627 (0xdd33)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd33
cw 0x9
call send_back  ; 56628 (0xdd34)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd34
cw 0x9
call send_back  ; 56629 (0xdd35)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd35
cw 0x9
call send_back  ; 56630 (0xdd36)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd36
cw 0x9
call send_back  ; 56631 (0xdd37)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd37
cw 0x9
call send_back  ; 56632 (0xdd38)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd38
cw 0x9
call send_back  ; 56633 (0xdd39)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd39
cw 0x9
call send_back  ; 56634 (0xdd3a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd3a
cw 0x9
call send_back  ; 56635 (0xdd3b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd3b
cw 0x9
call send_back  ; 56636 (0xdd3c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd3c
cw 0x9
call send_back  ; 56637 (0xdd3d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd3d
cw 0x9
call send_back  ; 56638 (0xdd3e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd3e
cw 0x9
call send_back  ; 56639 (0xdd3f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd3f
cw 0x9
call send_back  ; 56640 (0xdd40)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd40
cw 0x9
call send_back  ; 56641 (0xdd41)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd41
cw 0x9
call send_back  ; 56642 (0xdd42)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd42
cw 0x9
call send_back  ; 56643 (0xdd43)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd43
cw 0x9
call send_back  ; 56644 (0xdd44)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd44
cw 0x9
call send_back  ; 56645 (0xdd45)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd45
cw 0x9
call send_back  ; 56646 (0xdd46)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd46
cw 0x9
call send_back  ; 56647 (0xdd47)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd47
cw 0x9
call send_back  ; 56648 (0xdd48)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd48
cw 0x9
call send_back  ; 56649 (0xdd49)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd49
cw 0x9
call send_back  ; 56650 (0xdd4a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd4a
cw 0x9
call send_back  ; 56651 (0xdd4b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd4b
cw 0x9
call send_back  ; 56652 (0xdd4c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd4c
cw 0x9
call send_back  ; 56653 (0xdd4d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd4d
cw 0x9
call send_back  ; 56654 (0xdd4e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd4e
cw 0x9
call send_back  ; 56655 (0xdd4f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd4f
cw 0x9
call send_back  ; 56656 (0xdd50)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd50
cw 0x9
call send_back  ; 56657 (0xdd51)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd51
cw 0x9
call send_back  ; 56658 (0xdd52)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd52
cw 0x9
call send_back  ; 56659 (0xdd53)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd53
cw 0x9
call send_back  ; 56660 (0xdd54)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd54
cw 0x9
call send_back  ; 56661 (0xdd55)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd55
cw 0x9
call send_back  ; 56662 (0xdd56)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd56
cw 0x9
call send_back  ; 56663 (0xdd57)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd57
cw 0x9
call send_back  ; 56664 (0xdd58)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd58
cw 0x9
call send_back  ; 56665 (0xdd59)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd59
cw 0x9
call send_back  ; 56666 (0xdd5a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd5a
cw 0x9
call send_back  ; 56667 (0xdd5b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd5b
cw 0x9
call send_back  ; 56668 (0xdd5c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd5c
cw 0x9
call send_back  ; 56669 (0xdd5d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd5d
cw 0x9
call send_back  ; 56670 (0xdd5e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd5e
cw 0x9
call send_back  ; 56671 (0xdd5f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd5f
cw 0x9
call send_back  ; 56672 (0xdd60)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd60
cw 0x9
call send_back  ; 56673 (0xdd61)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd61
cw 0x9
call send_back  ; 56674 (0xdd62)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd62
cw 0x9
call send_back  ; 56675 (0xdd63)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd63
cw 0x9
call send_back  ; 56676 (0xdd64)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd64
cw 0x9
call send_back  ; 56677 (0xdd65)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd65
cw 0x9
call send_back  ; 56678 (0xdd66)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd66
cw 0x9
call send_back  ; 56679 (0xdd67)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd67
cw 0x9
call send_back  ; 56680 (0xdd68)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd68
cw 0x9
call send_back  ; 56681 (0xdd69)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd69
cw 0x9
call send_back  ; 56682 (0xdd6a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd6a
cw 0x9
call send_back  ; 56683 (0xdd6b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd6b
cw 0x9
call send_back  ; 56684 (0xdd6c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd6c
cw 0x9
call send_back  ; 56685 (0xdd6d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd6d
cw 0x9
call send_back  ; 56686 (0xdd6e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd6e
cw 0x9
call send_back  ; 56687 (0xdd6f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd6f
cw 0x9
call send_back  ; 56688 (0xdd70)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd70
cw 0x9
call send_back  ; 56689 (0xdd71)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd71
cw 0x9
call send_back  ; 56690 (0xdd72)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd72
cw 0x9
call send_back  ; 56691 (0xdd73)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd73
cw 0x9
call send_back  ; 56692 (0xdd74)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd74
cw 0x9
call send_back  ; 56693 (0xdd75)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd75
cw 0x9
call send_back  ; 56694 (0xdd76)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd76
cw 0x9
call send_back  ; 56695 (0xdd77)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd77
cw 0x9
call send_back  ; 56696 (0xdd78)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd78
cw 0x9
call send_back  ; 56697 (0xdd79)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd79
cw 0x9
call send_back  ; 56698 (0xdd7a)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd7a
cw 0x9
call send_back  ; 56699 (0xdd7b)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd7b
cw 0x9
call send_back  ; 56700 (0xdd7c)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd7c
cw 0x9
call send_back  ; 56701 (0xdd7d)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd7d
cw 0x9
call send_back  ; 56702 (0xdd7e)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd7e
cw 0x9
call send_back  ; 56703 (0xdd7f)

lri $AR1,    #0x0052
lri $IX1,    #0x9046
lri $WR1,    #0xdd7f
cw 0x9
call send_back  ; 56704 (0xdd80)

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

