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

lri $AR1,    #0x4000
lri $IX1,    #0x0080
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 129 (0x0081)

lri $AR1,    #0x4000
lri $IX1,    #0x0081
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 130 (0x0082)

lri $AR1,    #0x4000
lri $IX1,    #0x0082
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 131 (0x0083)

lri $AR1,    #0x4000
lri $IX1,    #0x0083
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 132 (0x0084)

lri $AR1,    #0x4000
lri $IX1,    #0x0084
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 133 (0x0085)

lri $AR1,    #0x4000
lri $IX1,    #0x0085
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 134 (0x0086)

lri $AR1,    #0x4000
lri $IX1,    #0x0086
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 135 (0x0087)

lri $AR1,    #0x4000
lri $IX1,    #0x0087
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 136 (0x0088)

lri $AR1,    #0x4000
lri $IX1,    #0x0088
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 137 (0x0089)

lri $AR1,    #0x4000
lri $IX1,    #0x0089
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 138 (0x008a)

lri $AR1,    #0x4000
lri $IX1,    #0x008a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 139 (0x008b)

lri $AR1,    #0x4000
lri $IX1,    #0x008b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 140 (0x008c)

lri $AR1,    #0x4000
lri $IX1,    #0x008c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 141 (0x008d)

lri $AR1,    #0x4000
lri $IX1,    #0x008d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 142 (0x008e)

lri $AR1,    #0x4000
lri $IX1,    #0x008e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 143 (0x008f)

lri $AR1,    #0x4000
lri $IX1,    #0x008f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 144 (0x0090)

lri $AR1,    #0x4000
lri $IX1,    #0x0090
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 145 (0x0091)

lri $AR1,    #0x4000
lri $IX1,    #0x0091
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 146 (0x0092)

lri $AR1,    #0x4000
lri $IX1,    #0x0092
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 147 (0x0093)

lri $AR1,    #0x4000
lri $IX1,    #0x0093
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 148 (0x0094)

lri $AR1,    #0x4000
lri $IX1,    #0x0094
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 149 (0x0095)

lri $AR1,    #0x4000
lri $IX1,    #0x0095
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 150 (0x0096)

lri $AR1,    #0x4000
lri $IX1,    #0x0096
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 151 (0x0097)

lri $AR1,    #0x4000
lri $IX1,    #0x0097
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 152 (0x0098)

lri $AR1,    #0x4000
lri $IX1,    #0x0098
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 153 (0x0099)

lri $AR1,    #0x4000
lri $IX1,    #0x0099
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 154 (0x009a)

lri $AR1,    #0x4000
lri $IX1,    #0x009a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 155 (0x009b)

lri $AR1,    #0x4000
lri $IX1,    #0x009b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 156 (0x009c)

lri $AR1,    #0x4000
lri $IX1,    #0x009c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 157 (0x009d)

lri $AR1,    #0x4000
lri $IX1,    #0x009d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 158 (0x009e)

lri $AR1,    #0x4000
lri $IX1,    #0x009e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 159 (0x009f)

lri $AR1,    #0x4000
lri $IX1,    #0x009f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 160 (0x00a0)

lri $AR1,    #0x4000
lri $IX1,    #0x00a0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 161 (0x00a1)

lri $AR1,    #0x4000
lri $IX1,    #0x00a1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 162 (0x00a2)

lri $AR1,    #0x4000
lri $IX1,    #0x00a2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 163 (0x00a3)

lri $AR1,    #0x4000
lri $IX1,    #0x00a3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 164 (0x00a4)

lri $AR1,    #0x4000
lri $IX1,    #0x00a4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 165 (0x00a5)

lri $AR1,    #0x4000
lri $IX1,    #0x00a5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 166 (0x00a6)

lri $AR1,    #0x4000
lri $IX1,    #0x00a6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 167 (0x00a7)

lri $AR1,    #0x4000
lri $IX1,    #0x00a7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 168 (0x00a8)

lri $AR1,    #0x4000
lri $IX1,    #0x00a8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 169 (0x00a9)

lri $AR1,    #0x4000
lri $IX1,    #0x00a9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 170 (0x00aa)

lri $AR1,    #0x4000
lri $IX1,    #0x00aa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 171 (0x00ab)

lri $AR1,    #0x4000
lri $IX1,    #0x00ab
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 172 (0x00ac)

lri $AR1,    #0x4000
lri $IX1,    #0x00ac
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 173 (0x00ad)

lri $AR1,    #0x4000
lri $IX1,    #0x00ad
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 174 (0x00ae)

lri $AR1,    #0x4000
lri $IX1,    #0x00ae
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 175 (0x00af)

lri $AR1,    #0x4000
lri $IX1,    #0x00af
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 176 (0x00b0)

lri $AR1,    #0x4000
lri $IX1,    #0x00b0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 177 (0x00b1)

lri $AR1,    #0x4000
lri $IX1,    #0x00b1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 178 (0x00b2)

lri $AR1,    #0x4000
lri $IX1,    #0x00b2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 179 (0x00b3)

lri $AR1,    #0x4000
lri $IX1,    #0x00b3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 180 (0x00b4)

lri $AR1,    #0x4000
lri $IX1,    #0x00b4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 181 (0x00b5)

lri $AR1,    #0x4000
lri $IX1,    #0x00b5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 182 (0x00b6)

lri $AR1,    #0x4000
lri $IX1,    #0x00b6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 183 (0x00b7)

lri $AR1,    #0x4000
lri $IX1,    #0x00b7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 184 (0x00b8)

lri $AR1,    #0x4000
lri $IX1,    #0x00b8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 185 (0x00b9)

lri $AR1,    #0x4000
lri $IX1,    #0x00b9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 186 (0x00ba)

lri $AR1,    #0x4000
lri $IX1,    #0x00ba
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 187 (0x00bb)

lri $AR1,    #0x4000
lri $IX1,    #0x00bb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 188 (0x00bc)

lri $AR1,    #0x4000
lri $IX1,    #0x00bc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 189 (0x00bd)

lri $AR1,    #0x4000
lri $IX1,    #0x00bd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 190 (0x00be)

lri $AR1,    #0x4000
lri $IX1,    #0x00be
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 191 (0x00bf)

lri $AR1,    #0x4000
lri $IX1,    #0x00bf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 192 (0x00c0)

lri $AR1,    #0x4000
lri $IX1,    #0x00c0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 193 (0x00c1)

lri $AR1,    #0x4000
lri $IX1,    #0x00c1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 194 (0x00c2)

lri $AR1,    #0x4000
lri $IX1,    #0x00c2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 195 (0x00c3)

lri $AR1,    #0x4000
lri $IX1,    #0x00c3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 196 (0x00c4)

lri $AR1,    #0x4000
lri $IX1,    #0x00c4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 197 (0x00c5)

lri $AR1,    #0x4000
lri $IX1,    #0x00c5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 198 (0x00c6)

lri $AR1,    #0x4000
lri $IX1,    #0x00c6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 199 (0x00c7)

lri $AR1,    #0x4000
lri $IX1,    #0x00c7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 200 (0x00c8)

lri $AR1,    #0x4000
lri $IX1,    #0x00c8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 201 (0x00c9)

lri $AR1,    #0x4000
lri $IX1,    #0x00c9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 202 (0x00ca)

lri $AR1,    #0x4000
lri $IX1,    #0x00ca
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 203 (0x00cb)

lri $AR1,    #0x4000
lri $IX1,    #0x00cb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 204 (0x00cc)

lri $AR1,    #0x4000
lri $IX1,    #0x00cc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 205 (0x00cd)

lri $AR1,    #0x4000
lri $IX1,    #0x00cd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 206 (0x00ce)

lri $AR1,    #0x4000
lri $IX1,    #0x00ce
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 207 (0x00cf)

lri $AR1,    #0x4000
lri $IX1,    #0x00cf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 208 (0x00d0)

lri $AR1,    #0x4000
lri $IX1,    #0x00d0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 209 (0x00d1)

lri $AR1,    #0x4000
lri $IX1,    #0x00d1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 210 (0x00d2)

lri $AR1,    #0x4000
lri $IX1,    #0x00d2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 211 (0x00d3)

lri $AR1,    #0x4000
lri $IX1,    #0x00d3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 212 (0x00d4)

lri $AR1,    #0x4000
lri $IX1,    #0x00d4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 213 (0x00d5)

lri $AR1,    #0x4000
lri $IX1,    #0x00d5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 214 (0x00d6)

lri $AR1,    #0x4000
lri $IX1,    #0x00d6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 215 (0x00d7)

lri $AR1,    #0x4000
lri $IX1,    #0x00d7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 216 (0x00d8)

lri $AR1,    #0x4000
lri $IX1,    #0x00d8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 217 (0x00d9)

lri $AR1,    #0x4000
lri $IX1,    #0x00d9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 218 (0x00da)

lri $AR1,    #0x4000
lri $IX1,    #0x00da
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 219 (0x00db)

lri $AR1,    #0x4000
lri $IX1,    #0x00db
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 220 (0x00dc)

lri $AR1,    #0x4000
lri $IX1,    #0x00dc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 221 (0x00dd)

lri $AR1,    #0x4000
lri $IX1,    #0x00dd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 222 (0x00de)

lri $AR1,    #0x4000
lri $IX1,    #0x00de
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 223 (0x00df)

lri $AR1,    #0x4000
lri $IX1,    #0x00df
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 224 (0x00e0)

lri $AR1,    #0x4000
lri $IX1,    #0x00e0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 225 (0x00e1)

lri $AR1,    #0x4000
lri $IX1,    #0x00e1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 226 (0x00e2)

lri $AR1,    #0x4000
lri $IX1,    #0x00e2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 227 (0x00e3)

lri $AR1,    #0x4000
lri $IX1,    #0x00e3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 228 (0x00e4)

lri $AR1,    #0x4000
lri $IX1,    #0x00e4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 229 (0x00e5)

lri $AR1,    #0x4000
lri $IX1,    #0x00e5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 230 (0x00e6)

lri $AR1,    #0x4000
lri $IX1,    #0x00e6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 231 (0x00e7)

lri $AR1,    #0x4000
lri $IX1,    #0x00e7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 232 (0x00e8)

lri $AR1,    #0x4000
lri $IX1,    #0x00e8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 233 (0x00e9)

lri $AR1,    #0x4000
lri $IX1,    #0x00e9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 234 (0x00ea)

lri $AR1,    #0x4000
lri $IX1,    #0x00ea
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 235 (0x00eb)

lri $AR1,    #0x4000
lri $IX1,    #0x00eb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 236 (0x00ec)

lri $AR1,    #0x4000
lri $IX1,    #0x00ec
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 237 (0x00ed)

lri $AR1,    #0x4000
lri $IX1,    #0x00ed
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 238 (0x00ee)

lri $AR1,    #0x4000
lri $IX1,    #0x00ee
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 239 (0x00ef)

lri $AR1,    #0x4000
lri $IX1,    #0x00ef
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 240 (0x00f0)

lri $AR1,    #0x4000
lri $IX1,    #0x00f0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 241 (0x00f1)

lri $AR1,    #0x4000
lri $IX1,    #0x00f1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 242 (0x00f2)

lri $AR1,    #0x4000
lri $IX1,    #0x00f2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 243 (0x00f3)

lri $AR1,    #0x4000
lri $IX1,    #0x00f3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 244 (0x00f4)

lri $AR1,    #0x4000
lri $IX1,    #0x00f4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 245 (0x00f5)

lri $AR1,    #0x4000
lri $IX1,    #0x00f5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 246 (0x00f6)

lri $AR1,    #0x4000
lri $IX1,    #0x00f6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 247 (0x00f7)

lri $AR1,    #0x4000
lri $IX1,    #0x00f7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 248 (0x00f8)

lri $AR1,    #0x4000
lri $IX1,    #0x00f8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 249 (0x00f9)

lri $AR1,    #0x4000
lri $IX1,    #0x00f9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 250 (0x00fa)

lri $AR1,    #0x4000
lri $IX1,    #0x00fa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 251 (0x00fb)

lri $AR1,    #0x4000
lri $IX1,    #0x00fb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 252 (0x00fc)

lri $AR1,    #0x4000
lri $IX1,    #0x00fc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 253 (0x00fd)

lri $AR1,    #0x4000
lri $IX1,    #0x00fd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 254 (0x00fe)

lri $AR1,    #0x4000
lri $IX1,    #0x00fe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 255 (0x00ff)

lri $AR1,    #0x4000
lri $IX1,    #0x00ff
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 256 (0x0100)

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

