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

lri $AR1,    #0x0000
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48129 (0xbc01)

lri $AR1,    #0x0001
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48130 (0xbc02)

lri $AR1,    #0x0002
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48131 (0xbc03)

lri $AR1,    #0x0003
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48132 (0xbc04)

lri $AR1,    #0x0004
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48133 (0xbc05)

lri $AR1,    #0x0005
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48134 (0xbc06)

lri $AR1,    #0x0006
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48135 (0xbc07)

lri $AR1,    #0x0007
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48136 (0xbc08)

lri $AR1,    #0x0008
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48137 (0xbc09)

lri $AR1,    #0x0009
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48138 (0xbc0a)

lri $AR1,    #0x000a
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48139 (0xbc0b)

lri $AR1,    #0x000b
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48140 (0xbc0c)

lri $AR1,    #0x000c
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48141 (0xbc0d)

lri $AR1,    #0x000d
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48142 (0xbc0e)

lri $AR1,    #0x000e
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48143 (0xbc0f)

lri $AR1,    #0x000f
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48144 (0xbc10)

lri $AR1,    #0x0010
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48145 (0xbc11)

lri $AR1,    #0x0011
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48146 (0xbc12)

lri $AR1,    #0x0012
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48147 (0xbc13)

lri $AR1,    #0x0013
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48148 (0xbc14)

lri $AR1,    #0x0014
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48149 (0xbc15)

lri $AR1,    #0x0015
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48150 (0xbc16)

lri $AR1,    #0x0016
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48151 (0xbc17)

lri $AR1,    #0x0017
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48152 (0xbc18)

lri $AR1,    #0x0018
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48153 (0xbc19)

lri $AR1,    #0x0019
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48154 (0xbc1a)

lri $AR1,    #0x001a
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48155 (0xbc1b)

lri $AR1,    #0x001b
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48156 (0xbc1c)

lri $AR1,    #0x001c
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48157 (0xbc1d)

lri $AR1,    #0x001d
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48158 (0xbc1e)

lri $AR1,    #0x001e
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48159 (0xbc1f)

lri $AR1,    #0x001f
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48160 (0xbc20)

lri $AR1,    #0x0020
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48161 (0xbc21)

lri $AR1,    #0x0021
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48162 (0xbc22)

lri $AR1,    #0x0022
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48163 (0xbc23)

lri $AR1,    #0x0023
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48164 (0xbc24)

lri $AR1,    #0x0024
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48165 (0xbc25)

lri $AR1,    #0x0025
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48166 (0xbc26)

lri $AR1,    #0x0026
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48167 (0xbc27)

lri $AR1,    #0x0027
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48168 (0xbc28)

lri $AR1,    #0x0028
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48169 (0xbc29)

lri $AR1,    #0x0029
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48170 (0xbc2a)

lri $AR1,    #0x002a
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48171 (0xbc2b)

lri $AR1,    #0x002b
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48172 (0xbc2c)

lri $AR1,    #0x002c
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48173 (0xbc2d)

lri $AR1,    #0x002d
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48174 (0xbc2e)

lri $AR1,    #0x002e
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48175 (0xbc2f)

lri $AR1,    #0x002f
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48176 (0xbc30)

lri $AR1,    #0x0030
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48177 (0xbc31)

lri $AR1,    #0x0031
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48178 (0xbc32)

lri $AR1,    #0x0032
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48179 (0xbc33)

lri $AR1,    #0x0033
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48180 (0xbc34)

lri $AR1,    #0x0034
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48181 (0xbc35)

lri $AR1,    #0x0035
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48182 (0xbc36)

lri $AR1,    #0x0036
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48183 (0xbc37)

lri $AR1,    #0x0037
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48184 (0xbc38)

lri $AR1,    #0x0038
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48185 (0xbc39)

lri $AR1,    #0x0039
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48186 (0xbc3a)

lri $AR1,    #0x003a
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48187 (0xbc3b)

lri $AR1,    #0x003b
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48188 (0xbc3c)

lri $AR1,    #0x003c
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48189 (0xbc3d)

lri $AR1,    #0x003d
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48190 (0xbc3e)

lri $AR1,    #0x003e
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48191 (0xbc3f)

lri $AR1,    #0x003f
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48192 (0xbc40)

lri $AR1,    #0x0040
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48193 (0xbc41)

lri $AR1,    #0x0041
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48194 (0xbc42)

lri $AR1,    #0x0042
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48195 (0xbc43)

lri $AR1,    #0x0043
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48196 (0xbc44)

lri $AR1,    #0x0044
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48197 (0xbc45)

lri $AR1,    #0x0045
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48198 (0xbc46)

lri $AR1,    #0x0046
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48199 (0xbc47)

lri $AR1,    #0x0047
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48200 (0xbc48)

lri $AR1,    #0x0048
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48201 (0xbc49)

lri $AR1,    #0x0049
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48202 (0xbc4a)

lri $AR1,    #0x004a
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48203 (0xbc4b)

lri $AR1,    #0x004b
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48204 (0xbc4c)

lri $AR1,    #0x004c
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48205 (0xbc4d)

lri $AR1,    #0x004d
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48206 (0xbc4e)

lri $AR1,    #0x004e
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48207 (0xbc4f)

lri $AR1,    #0x004f
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48208 (0xbc50)

lri $AR1,    #0x0050
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48209 (0xbc51)

lri $AR1,    #0x0051
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48210 (0xbc52)

lri $AR1,    #0x0052
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48211 (0xbc53)

lri $AR1,    #0x0053
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48212 (0xbc54)

lri $AR1,    #0x0054
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48213 (0xbc55)

lri $AR1,    #0x0055
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48214 (0xbc56)

lri $AR1,    #0x0056
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48215 (0xbc57)

lri $AR1,    #0x0057
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48216 (0xbc58)

lri $AR1,    #0x0058
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48217 (0xbc59)

lri $AR1,    #0x0059
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48218 (0xbc5a)

lri $AR1,    #0x005a
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48219 (0xbc5b)

lri $AR1,    #0x005b
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48220 (0xbc5c)

lri $AR1,    #0x005c
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48221 (0xbc5d)

lri $AR1,    #0x005d
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48222 (0xbc5e)

lri $AR1,    #0x005e
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48223 (0xbc5f)

lri $AR1,    #0x005f
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48224 (0xbc60)

lri $AR1,    #0x0060
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48225 (0xbc61)

lri $AR1,    #0x0061
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48226 (0xbc62)

lri $AR1,    #0x0062
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48227 (0xbc63)

lri $AR1,    #0x0063
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48228 (0xbc64)

lri $AR1,    #0x0064
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48229 (0xbc65)

lri $AR1,    #0x0065
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48230 (0xbc66)

lri $AR1,    #0x0066
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48231 (0xbc67)

lri $AR1,    #0x0067
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48232 (0xbc68)

lri $AR1,    #0x0068
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48233 (0xbc69)

lri $AR1,    #0x0069
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48234 (0xbc6a)

lri $AR1,    #0x006a
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48235 (0xbc6b)

lri $AR1,    #0x006b
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48236 (0xbc6c)

lri $AR1,    #0x006c
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48237 (0xbc6d)

lri $AR1,    #0x006d
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48238 (0xbc6e)

lri $AR1,    #0x006e
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48239 (0xbc6f)

lri $AR1,    #0x006f
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48240 (0xbc70)

lri $AR1,    #0x0070
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48241 (0xbc71)

lri $AR1,    #0x0071
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48242 (0xbc72)

lri $AR1,    #0x0072
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48243 (0xbc73)

lri $AR1,    #0x0073
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48244 (0xbc74)

lri $AR1,    #0x0074
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48245 (0xbc75)

lri $AR1,    #0x0075
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48246 (0xbc76)

lri $AR1,    #0x0076
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48247 (0xbc77)

lri $AR1,    #0x0077
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48248 (0xbc78)

lri $AR1,    #0x0078
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48249 (0xbc79)

lri $AR1,    #0x0079
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48250 (0xbc7a)

lri $AR1,    #0x007a
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48251 (0xbc7b)

lri $AR1,    #0x007b
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48252 (0xbc7c)

lri $AR1,    #0x007c
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48253 (0xbc7d)

lri $AR1,    #0x007d
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48254 (0xbc7e)

lri $AR1,    #0x007e
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48255 (0xbc7f)

lri $AR1,    #0x007f
lri $IX1,    #0x0000
lri $WR1,    #0x00bc
cw 0x5
call send_back  ; 48256 (0xbc80)

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