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

lri $AR1,    #0x0040
lri $IX1,    #0x1f93
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8084 (0x1f94)

lri $AR1,    #0x0040
lri $IX1,    #0x1f94
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8085 (0x1f95)

lri $AR1,    #0x0040
lri $IX1,    #0x1f95
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8086 (0x1f96)

lri $AR1,    #0x0040
lri $IX1,    #0x1f96
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8087 (0x1f97)

lri $AR1,    #0x0040
lri $IX1,    #0x1f97
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8088 (0x1f98)

lri $AR1,    #0x0040
lri $IX1,    #0x1f98
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8089 (0x1f99)

lri $AR1,    #0x0040
lri $IX1,    #0x1f99
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8090 (0x1f9a)

lri $AR1,    #0x0040
lri $IX1,    #0x1f9a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8091 (0x1f9b)

lri $AR1,    #0x0040
lri $IX1,    #0x1f9b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8092 (0x1f9c)

lri $AR1,    #0x0040
lri $IX1,    #0x1f9c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8093 (0x1f9d)

lri $AR1,    #0x0040
lri $IX1,    #0x1f9d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8094 (0x1f9e)

lri $AR1,    #0x0040
lri $IX1,    #0x1f9e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8095 (0x1f9f)

lri $AR1,    #0x0040
lri $IX1,    #0x1f9f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8096 (0x1fa0)

lri $AR1,    #0x0040
lri $IX1,    #0x1fa0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8097 (0x1fa1)

lri $AR1,    #0x0040
lri $IX1,    #0x1fa1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8098 (0x1fa2)

lri $AR1,    #0x0040
lri $IX1,    #0x1fa2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8099 (0x1fa3)

lri $AR1,    #0x0040
lri $IX1,    #0x1fa3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8100 (0x1fa4)

lri $AR1,    #0x0040
lri $IX1,    #0x1fa4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8101 (0x1fa5)

lri $AR1,    #0x0040
lri $IX1,    #0x1fa5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8102 (0x1fa6)

lri $AR1,    #0x0040
lri $IX1,    #0x1fa6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8103 (0x1fa7)

lri $AR1,    #0x0040
lri $IX1,    #0x1fa7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8104 (0x1fa8)

lri $AR1,    #0x0040
lri $IX1,    #0x1fa8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8105 (0x1fa9)

lri $AR1,    #0x0040
lri $IX1,    #0x1fa9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8106 (0x1faa)

lri $AR1,    #0x0040
lri $IX1,    #0x1faa
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8107 (0x1fab)

lri $AR1,    #0x0040
lri $IX1,    #0x1fab
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8108 (0x1fac)

lri $AR1,    #0x0040
lri $IX1,    #0x1fac
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8109 (0x1fad)

lri $AR1,    #0x0040
lri $IX1,    #0x1fad
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8110 (0x1fae)

lri $AR1,    #0x0040
lri $IX1,    #0x1fae
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8111 (0x1faf)

lri $AR1,    #0x0040
lri $IX1,    #0x1faf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8112 (0x1fb0)

lri $AR1,    #0x0040
lri $IX1,    #0x1fb0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8113 (0x1fb1)

lri $AR1,    #0x0040
lri $IX1,    #0x1fb1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8114 (0x1fb2)

lri $AR1,    #0x0040
lri $IX1,    #0x1fb2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8115 (0x1fb3)

lri $AR1,    #0x0040
lri $IX1,    #0x1fb3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8116 (0x1fb4)

lri $AR1,    #0x0040
lri $IX1,    #0x1fb4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8117 (0x1fb5)

lri $AR1,    #0x0040
lri $IX1,    #0x1fb5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8118 (0x1fb6)

lri $AR1,    #0x0040
lri $IX1,    #0x1fb6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8119 (0x1fb7)

lri $AR1,    #0x0040
lri $IX1,    #0x1fb7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8120 (0x1fb8)

lri $AR1,    #0x0040
lri $IX1,    #0x1fb8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8121 (0x1fb9)

lri $AR1,    #0x0040
lri $IX1,    #0x1fb9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8122 (0x1fba)

lri $AR1,    #0x0040
lri $IX1,    #0x1fba
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8123 (0x1fbb)

lri $AR1,    #0x0040
lri $IX1,    #0x1fbb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8124 (0x1fbc)

lri $AR1,    #0x0040
lri $IX1,    #0x1fbc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8125 (0x1fbd)

lri $AR1,    #0x0040
lri $IX1,    #0x1fbd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8126 (0x1fbe)

lri $AR1,    #0x0040
lri $IX1,    #0x1fbe
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8127 (0x1fbf)

lri $AR1,    #0x0040
lri $IX1,    #0x1fbf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8128 (0x1fc0)

lri $AR1,    #0x0040
lri $IX1,    #0x1fc0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8129 (0x1fc1)

lri $AR1,    #0x0040
lri $IX1,    #0x1fc1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8130 (0x1fc2)

lri $AR1,    #0x0040
lri $IX1,    #0x1fc2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8131 (0x1fc3)

lri $AR1,    #0x0040
lri $IX1,    #0x1fc3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8132 (0x1fc4)

lri $AR1,    #0x0040
lri $IX1,    #0x1fc4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8133 (0x1fc5)

lri $AR1,    #0x0040
lri $IX1,    #0x1fc5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8134 (0x1fc6)

lri $AR1,    #0x0040
lri $IX1,    #0x1fc6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8135 (0x1fc7)

lri $AR1,    #0x0040
lri $IX1,    #0x1fc7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8136 (0x1fc8)

lri $AR1,    #0x0040
lri $IX1,    #0x1fc8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8137 (0x1fc9)

lri $AR1,    #0x0040
lri $IX1,    #0x1fc9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8138 (0x1fca)

lri $AR1,    #0x0040
lri $IX1,    #0x1fca
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8139 (0x1fcb)

lri $AR1,    #0x0040
lri $IX1,    #0x1fcb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8140 (0x1fcc)

lri $AR1,    #0x0040
lri $IX1,    #0x1fcc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8141 (0x1fcd)

lri $AR1,    #0x0040
lri $IX1,    #0x1fcd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8142 (0x1fce)

lri $AR1,    #0x0040
lri $IX1,    #0x1fce
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8143 (0x1fcf)

lri $AR1,    #0x0040
lri $IX1,    #0x1fcf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8144 (0x1fd0)

lri $AR1,    #0x0040
lri $IX1,    #0x1fd0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8145 (0x1fd1)

lri $AR1,    #0x0040
lri $IX1,    #0x1fd1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8146 (0x1fd2)

lri $AR1,    #0x0040
lri $IX1,    #0x1fd2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8147 (0x1fd3)

lri $AR1,    #0x0040
lri $IX1,    #0x1fd3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8148 (0x1fd4)

lri $AR1,    #0x0040
lri $IX1,    #0x1fd4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8149 (0x1fd5)

lri $AR1,    #0x0040
lri $IX1,    #0x1fd5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8150 (0x1fd6)

lri $AR1,    #0x0040
lri $IX1,    #0x1fd6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8151 (0x1fd7)

lri $AR1,    #0x0040
lri $IX1,    #0x1fd7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8152 (0x1fd8)

lri $AR1,    #0x0040
lri $IX1,    #0x1fd8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8153 (0x1fd9)

lri $AR1,    #0x0040
lri $IX1,    #0x1fd9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8154 (0x1fda)

lri $AR1,    #0x0040
lri $IX1,    #0x1fda
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8155 (0x1fdb)

lri $AR1,    #0x0040
lri $IX1,    #0x1fdb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8156 (0x1fdc)

lri $AR1,    #0x0040
lri $IX1,    #0x1fdc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8157 (0x1fdd)

lri $AR1,    #0x0040
lri $IX1,    #0x1fdd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8158 (0x1fde)

lri $AR1,    #0x0040
lri $IX1,    #0x1fde
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8159 (0x1fdf)

lri $AR1,    #0x0040
lri $IX1,    #0x1fdf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8160 (0x1fe0)

lri $AR1,    #0x0040
lri $IX1,    #0x1fe0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8161 (0x1fe1)

lri $AR1,    #0x0040
lri $IX1,    #0x1fe1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8162 (0x1fe2)

lri $AR1,    #0x0040
lri $IX1,    #0x1fe2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8163 (0x1fe3)

lri $AR1,    #0x0040
lri $IX1,    #0x1fe3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8164 (0x1fe4)

lri $AR1,    #0x0040
lri $IX1,    #0x1fe4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8165 (0x1fe5)

lri $AR1,    #0x0040
lri $IX1,    #0x1fe5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8166 (0x1fe6)

lri $AR1,    #0x0040
lri $IX1,    #0x1fe6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8167 (0x1fe7)

lri $AR1,    #0x0040
lri $IX1,    #0x1fe7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8168 (0x1fe8)

lri $AR1,    #0x0040
lri $IX1,    #0x1fe8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8169 (0x1fe9)

lri $AR1,    #0x0040
lri $IX1,    #0x1fe9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8170 (0x1fea)

lri $AR1,    #0x0040
lri $IX1,    #0x1fea
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8171 (0x1feb)

lri $AR1,    #0x0040
lri $IX1,    #0x1feb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8172 (0x1fec)

lri $AR1,    #0x0040
lri $IX1,    #0x1fec
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8173 (0x1fed)

lri $AR1,    #0x0040
lri $IX1,    #0x1fed
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8174 (0x1fee)

lri $AR1,    #0x0040
lri $IX1,    #0x1fee
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8175 (0x1fef)

lri $AR1,    #0x0040
lri $IX1,    #0x1fef
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8176 (0x1ff0)

lri $AR1,    #0x0040
lri $IX1,    #0x1ff0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8177 (0x1ff1)

lri $AR1,    #0x0040
lri $IX1,    #0x1ff1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8178 (0x1ff2)

lri $AR1,    #0x0040
lri $IX1,    #0x1ff2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8179 (0x1ff3)

lri $AR1,    #0x0040
lri $IX1,    #0x1ff3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8180 (0x1ff4)

lri $AR1,    #0x0040
lri $IX1,    #0x1ff4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8181 (0x1ff5)

lri $AR1,    #0x0040
lri $IX1,    #0x1ff5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8182 (0x1ff6)

lri $AR1,    #0x0040
lri $IX1,    #0x1ff6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8183 (0x1ff7)

lri $AR1,    #0x0040
lri $IX1,    #0x1ff7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8184 (0x1ff8)

lri $AR1,    #0x0040
lri $IX1,    #0x1ff8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8185 (0x1ff9)

lri $AR1,    #0x0040
lri $IX1,    #0x1ff9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8186 (0x1ffa)

lri $AR1,    #0x0040
lri $IX1,    #0x1ffa
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8187 (0x1ffb)

lri $AR1,    #0x0040
lri $IX1,    #0x1ffb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8188 (0x1ffc)

lri $AR1,    #0x0040
lri $IX1,    #0x1ffc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8189 (0x1ffd)

lri $AR1,    #0x0040
lri $IX1,    #0x1ffd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8190 (0x1ffe)

lri $AR1,    #0x0040
lri $IX1,    #0x1ffe
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8191 (0x1fff)

lri $AR1,    #0x0040
lri $IX1,    #0x1fff
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 8192 (0x2000)

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