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

lri $AR1,    #0x4000
lri $IX1,    #0xac80
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44161 (0xac81)

lri $AR1,    #0x4000
lri $IX1,    #0xac81
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44162 (0xac82)

lri $AR1,    #0x4000
lri $IX1,    #0xac82
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44163 (0xac83)

lri $AR1,    #0x4000
lri $IX1,    #0xac83
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44164 (0xac84)

lri $AR1,    #0x4000
lri $IX1,    #0xac84
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44165 (0xac85)

lri $AR1,    #0x4000
lri $IX1,    #0xac85
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44166 (0xac86)

lri $AR1,    #0x4000
lri $IX1,    #0xac86
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44167 (0xac87)

lri $AR1,    #0x4000
lri $IX1,    #0xac87
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44168 (0xac88)

lri $AR1,    #0x4000
lri $IX1,    #0xac88
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44169 (0xac89)

lri $AR1,    #0x4000
lri $IX1,    #0xac89
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44170 (0xac8a)

lri $AR1,    #0x4000
lri $IX1,    #0xac8a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44171 (0xac8b)

lri $AR1,    #0x4000
lri $IX1,    #0xac8b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44172 (0xac8c)

lri $AR1,    #0x4000
lri $IX1,    #0xac8c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44173 (0xac8d)

lri $AR1,    #0x4000
lri $IX1,    #0xac8d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44174 (0xac8e)

lri $AR1,    #0x4000
lri $IX1,    #0xac8e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44175 (0xac8f)

lri $AR1,    #0x4000
lri $IX1,    #0xac8f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44176 (0xac90)

lri $AR1,    #0x4000
lri $IX1,    #0xac90
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44177 (0xac91)

lri $AR1,    #0x4000
lri $IX1,    #0xac91
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44178 (0xac92)

lri $AR1,    #0x4000
lri $IX1,    #0xac92
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44179 (0xac93)

lri $AR1,    #0x4000
lri $IX1,    #0xac93
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44180 (0xac94)

lri $AR1,    #0x4000
lri $IX1,    #0xac94
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44181 (0xac95)

lri $AR1,    #0x4000
lri $IX1,    #0xac95
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44182 (0xac96)

lri $AR1,    #0x4000
lri $IX1,    #0xac96
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44183 (0xac97)

lri $AR1,    #0x4000
lri $IX1,    #0xac97
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44184 (0xac98)

lri $AR1,    #0x4000
lri $IX1,    #0xac98
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44185 (0xac99)

lri $AR1,    #0x4000
lri $IX1,    #0xac99
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44186 (0xac9a)

lri $AR1,    #0x4000
lri $IX1,    #0xac9a
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44187 (0xac9b)

lri $AR1,    #0x4000
lri $IX1,    #0xac9b
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44188 (0xac9c)

lri $AR1,    #0x4000
lri $IX1,    #0xac9c
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44189 (0xac9d)

lri $AR1,    #0x4000
lri $IX1,    #0xac9d
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44190 (0xac9e)

lri $AR1,    #0x4000
lri $IX1,    #0xac9e
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44191 (0xac9f)

lri $AR1,    #0x4000
lri $IX1,    #0xac9f
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44192 (0xaca0)

lri $AR1,    #0x4000
lri $IX1,    #0xaca0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44193 (0xaca1)

lri $AR1,    #0x4000
lri $IX1,    #0xaca1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44194 (0xaca2)

lri $AR1,    #0x4000
lri $IX1,    #0xaca2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44195 (0xaca3)

lri $AR1,    #0x4000
lri $IX1,    #0xaca3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44196 (0xaca4)

lri $AR1,    #0x4000
lri $IX1,    #0xaca4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44197 (0xaca5)

lri $AR1,    #0x4000
lri $IX1,    #0xaca5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44198 (0xaca6)

lri $AR1,    #0x4000
lri $IX1,    #0xaca6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44199 (0xaca7)

lri $AR1,    #0x4000
lri $IX1,    #0xaca7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44200 (0xaca8)

lri $AR1,    #0x4000
lri $IX1,    #0xaca8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44201 (0xaca9)

lri $AR1,    #0x4000
lri $IX1,    #0xaca9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44202 (0xacaa)

lri $AR1,    #0x4000
lri $IX1,    #0xacaa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44203 (0xacab)

lri $AR1,    #0x4000
lri $IX1,    #0xacab
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44204 (0xacac)

lri $AR1,    #0x4000
lri $IX1,    #0xacac
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44205 (0xacad)

lri $AR1,    #0x4000
lri $IX1,    #0xacad
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44206 (0xacae)

lri $AR1,    #0x4000
lri $IX1,    #0xacae
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44207 (0xacaf)

lri $AR1,    #0x4000
lri $IX1,    #0xacaf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44208 (0xacb0)

lri $AR1,    #0x4000
lri $IX1,    #0xacb0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44209 (0xacb1)

lri $AR1,    #0x4000
lri $IX1,    #0xacb1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44210 (0xacb2)

lri $AR1,    #0x4000
lri $IX1,    #0xacb2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44211 (0xacb3)

lri $AR1,    #0x4000
lri $IX1,    #0xacb3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44212 (0xacb4)

lri $AR1,    #0x4000
lri $IX1,    #0xacb4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44213 (0xacb5)

lri $AR1,    #0x4000
lri $IX1,    #0xacb5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44214 (0xacb6)

lri $AR1,    #0x4000
lri $IX1,    #0xacb6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44215 (0xacb7)

lri $AR1,    #0x4000
lri $IX1,    #0xacb7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44216 (0xacb8)

lri $AR1,    #0x4000
lri $IX1,    #0xacb8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44217 (0xacb9)

lri $AR1,    #0x4000
lri $IX1,    #0xacb9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44218 (0xacba)

lri $AR1,    #0x4000
lri $IX1,    #0xacba
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44219 (0xacbb)

lri $AR1,    #0x4000
lri $IX1,    #0xacbb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44220 (0xacbc)

lri $AR1,    #0x4000
lri $IX1,    #0xacbc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44221 (0xacbd)

lri $AR1,    #0x4000
lri $IX1,    #0xacbd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44222 (0xacbe)

lri $AR1,    #0x4000
lri $IX1,    #0xacbe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44223 (0xacbf)

lri $AR1,    #0x4000
lri $IX1,    #0xacbf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44224 (0xacc0)

lri $AR1,    #0x4000
lri $IX1,    #0xacc0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44225 (0xacc1)

lri $AR1,    #0x4000
lri $IX1,    #0xacc1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44226 (0xacc2)

lri $AR1,    #0x4000
lri $IX1,    #0xacc2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44227 (0xacc3)

lri $AR1,    #0x4000
lri $IX1,    #0xacc3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44228 (0xacc4)

lri $AR1,    #0x4000
lri $IX1,    #0xacc4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44229 (0xacc5)

lri $AR1,    #0x4000
lri $IX1,    #0xacc5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44230 (0xacc6)

lri $AR1,    #0x4000
lri $IX1,    #0xacc6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44231 (0xacc7)

lri $AR1,    #0x4000
lri $IX1,    #0xacc7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44232 (0xacc8)

lri $AR1,    #0x4000
lri $IX1,    #0xacc8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44233 (0xacc9)

lri $AR1,    #0x4000
lri $IX1,    #0xacc9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44234 (0xacca)

lri $AR1,    #0x4000
lri $IX1,    #0xacca
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44235 (0xaccb)

lri $AR1,    #0x4000
lri $IX1,    #0xaccb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44236 (0xaccc)

lri $AR1,    #0x4000
lri $IX1,    #0xaccc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44237 (0xaccd)

lri $AR1,    #0x4000
lri $IX1,    #0xaccd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44238 (0xacce)

lri $AR1,    #0x4000
lri $IX1,    #0xacce
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44239 (0xaccf)

lri $AR1,    #0x4000
lri $IX1,    #0xaccf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44240 (0xacd0)

lri $AR1,    #0x4000
lri $IX1,    #0xacd0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44241 (0xacd1)

lri $AR1,    #0x4000
lri $IX1,    #0xacd1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44242 (0xacd2)

lri $AR1,    #0x4000
lri $IX1,    #0xacd2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44243 (0xacd3)

lri $AR1,    #0x4000
lri $IX1,    #0xacd3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44244 (0xacd4)

lri $AR1,    #0x4000
lri $IX1,    #0xacd4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44245 (0xacd5)

lri $AR1,    #0x4000
lri $IX1,    #0xacd5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44246 (0xacd6)

lri $AR1,    #0x4000
lri $IX1,    #0xacd6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44247 (0xacd7)

lri $AR1,    #0x4000
lri $IX1,    #0xacd7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44248 (0xacd8)

lri $AR1,    #0x4000
lri $IX1,    #0xacd8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44249 (0xacd9)

lri $AR1,    #0x4000
lri $IX1,    #0xacd9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44250 (0xacda)

lri $AR1,    #0x4000
lri $IX1,    #0xacda
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44251 (0xacdb)

lri $AR1,    #0x4000
lri $IX1,    #0xacdb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44252 (0xacdc)

lri $AR1,    #0x4000
lri $IX1,    #0xacdc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44253 (0xacdd)

lri $AR1,    #0x4000
lri $IX1,    #0xacdd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44254 (0xacde)

lri $AR1,    #0x4000
lri $IX1,    #0xacde
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44255 (0xacdf)

lri $AR1,    #0x4000
lri $IX1,    #0xacdf
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44256 (0xace0)

lri $AR1,    #0x4000
lri $IX1,    #0xace0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44257 (0xace1)

lri $AR1,    #0x4000
lri $IX1,    #0xace1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44258 (0xace2)

lri $AR1,    #0x4000
lri $IX1,    #0xace2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44259 (0xace3)

lri $AR1,    #0x4000
lri $IX1,    #0xace3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44260 (0xace4)

lri $AR1,    #0x4000
lri $IX1,    #0xace4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44261 (0xace5)

lri $AR1,    #0x4000
lri $IX1,    #0xace5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44262 (0xace6)

lri $AR1,    #0x4000
lri $IX1,    #0xace6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44263 (0xace7)

lri $AR1,    #0x4000
lri $IX1,    #0xace7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44264 (0xace8)

lri $AR1,    #0x4000
lri $IX1,    #0xace8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44265 (0xace9)

lri $AR1,    #0x4000
lri $IX1,    #0xace9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44266 (0xacea)

lri $AR1,    #0x4000
lri $IX1,    #0xacea
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44267 (0xaceb)

lri $AR1,    #0x4000
lri $IX1,    #0xaceb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44268 (0xacec)

lri $AR1,    #0x4000
lri $IX1,    #0xacec
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44269 (0xaced)

lri $AR1,    #0x4000
lri $IX1,    #0xaced
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44270 (0xacee)

lri $AR1,    #0x4000
lri $IX1,    #0xacee
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44271 (0xacef)

lri $AR1,    #0x4000
lri $IX1,    #0xacef
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44272 (0xacf0)

lri $AR1,    #0x4000
lri $IX1,    #0xacf0
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44273 (0xacf1)

lri $AR1,    #0x4000
lri $IX1,    #0xacf1
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44274 (0xacf2)

lri $AR1,    #0x4000
lri $IX1,    #0xacf2
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44275 (0xacf3)

lri $AR1,    #0x4000
lri $IX1,    #0xacf3
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44276 (0xacf4)

lri $AR1,    #0x4000
lri $IX1,    #0xacf4
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44277 (0xacf5)

lri $AR1,    #0x4000
lri $IX1,    #0xacf5
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44278 (0xacf6)

lri $AR1,    #0x4000
lri $IX1,    #0xacf6
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44279 (0xacf7)

lri $AR1,    #0x4000
lri $IX1,    #0xacf7
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44280 (0xacf8)

lri $AR1,    #0x4000
lri $IX1,    #0xacf8
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44281 (0xacf9)

lri $AR1,    #0x4000
lri $IX1,    #0xacf9
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44282 (0xacfa)

lri $AR1,    #0x4000
lri $IX1,    #0xacfa
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44283 (0xacfb)

lri $AR1,    #0x4000
lri $IX1,    #0xacfb
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44284 (0xacfc)

lri $AR1,    #0x4000
lri $IX1,    #0xacfc
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44285 (0xacfd)

lri $AR1,    #0x4000
lri $IX1,    #0xacfd
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44286 (0xacfe)

lri $AR1,    #0x4000
lri $IX1,    #0xacfe
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44287 (0xacff)

lri $AR1,    #0x4000
lri $IX1,    #0xacff
lri $WR1,    #0xffff
cw 0x15
call send_back  ; 44288 (0xad00)

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

