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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48897 (0xbf01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48898 (0xbf02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48899 (0xbf03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48900 (0xbf04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48901 (0xbf05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48902 (0xbf06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48903 (0xbf07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48904 (0xbf08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48905 (0xbf09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48906 (0xbf0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48907 (0xbf0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48908 (0xbf0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48909 (0xbf0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48910 (0xbf0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48911 (0xbf0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48912 (0xbf10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48913 (0xbf11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48914 (0xbf12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48915 (0xbf13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48916 (0xbf14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48917 (0xbf15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48918 (0xbf16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48919 (0xbf17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48920 (0xbf18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48921 (0xbf19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48922 (0xbf1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48923 (0xbf1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48924 (0xbf1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48925 (0xbf1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48926 (0xbf1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48927 (0xbf1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48928 (0xbf20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48929 (0xbf21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48930 (0xbf22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48931 (0xbf23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48932 (0xbf24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48933 (0xbf25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48934 (0xbf26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48935 (0xbf27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48936 (0xbf28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48937 (0xbf29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48938 (0xbf2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48939 (0xbf2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48940 (0xbf2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48941 (0xbf2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48942 (0xbf2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48943 (0xbf2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48944 (0xbf30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48945 (0xbf31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48946 (0xbf32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48947 (0xbf33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48948 (0xbf34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48949 (0xbf35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48950 (0xbf36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48951 (0xbf37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48952 (0xbf38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48953 (0xbf39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48954 (0xbf3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48955 (0xbf3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48956 (0xbf3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48957 (0xbf3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48958 (0xbf3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48959 (0xbf3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48960 (0xbf40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48961 (0xbf41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48962 (0xbf42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48963 (0xbf43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48964 (0xbf44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48965 (0xbf45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48966 (0xbf46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48967 (0xbf47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48968 (0xbf48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48969 (0xbf49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48970 (0xbf4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48971 (0xbf4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48972 (0xbf4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48973 (0xbf4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48974 (0xbf4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48975 (0xbf4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48976 (0xbf50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48977 (0xbf51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48978 (0xbf52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48979 (0xbf53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48980 (0xbf54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48981 (0xbf55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48982 (0xbf56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48983 (0xbf57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48984 (0xbf58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48985 (0xbf59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48986 (0xbf5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48987 (0xbf5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48988 (0xbf5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48989 (0xbf5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48990 (0xbf5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48991 (0xbf5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48992 (0xbf60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48993 (0xbf61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48994 (0xbf62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48995 (0xbf63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48996 (0xbf64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48997 (0xbf65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48998 (0xbf66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 48999 (0xbf67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49000 (0xbf68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49001 (0xbf69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49002 (0xbf6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49003 (0xbf6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49004 (0xbf6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49005 (0xbf6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49006 (0xbf6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49007 (0xbf6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49008 (0xbf70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49009 (0xbf71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49010 (0xbf72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49011 (0xbf73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49012 (0xbf74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49013 (0xbf75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49014 (0xbf76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49015 (0xbf77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49016 (0xbf78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49017 (0xbf79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49018 (0xbf7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49019 (0xbf7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49020 (0xbf7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49021 (0xbf7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49022 (0xbf7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49023 (0xbf7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00bf
cw 0x5
call send_back  ; 49024 (0xbf80)

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