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

lri $AR1,    #0x0040
lri $IX1,    #0x8ccd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36046 (0x8cce)

lri $AR1,    #0x0040
lri $IX1,    #0x8cce
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36047 (0x8ccf)

lri $AR1,    #0x0040
lri $IX1,    #0x8ccf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36048 (0x8cd0)

lri $AR1,    #0x0040
lri $IX1,    #0x8cd0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36049 (0x8cd1)

lri $AR1,    #0x0040
lri $IX1,    #0x8cd1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36050 (0x8cd2)

lri $AR1,    #0x0040
lri $IX1,    #0x8cd2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36051 (0x8cd3)

lri $AR1,    #0x0040
lri $IX1,    #0x8cd3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36052 (0x8cd4)

lri $AR1,    #0x0040
lri $IX1,    #0x8cd4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36053 (0x8cd5)

lri $AR1,    #0x0040
lri $IX1,    #0x8cd5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36054 (0x8cd6)

lri $AR1,    #0x0040
lri $IX1,    #0x8cd6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36055 (0x8cd7)

lri $AR1,    #0x0040
lri $IX1,    #0x8cd7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36056 (0x8cd8)

lri $AR1,    #0x0040
lri $IX1,    #0x8cd8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36057 (0x8cd9)

lri $AR1,    #0x0040
lri $IX1,    #0x8cd9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36058 (0x8cda)

lri $AR1,    #0x0040
lri $IX1,    #0x8cda
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36059 (0x8cdb)

lri $AR1,    #0x0040
lri $IX1,    #0x8cdb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36060 (0x8cdc)

lri $AR1,    #0x0040
lri $IX1,    #0x8cdc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36061 (0x8cdd)

lri $AR1,    #0x0040
lri $IX1,    #0x8cdd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36062 (0x8cde)

lri $AR1,    #0x0040
lri $IX1,    #0x8cde
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36063 (0x8cdf)

lri $AR1,    #0x0040
lri $IX1,    #0x8cdf
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36064 (0x8ce0)

lri $AR1,    #0x0040
lri $IX1,    #0x8ce0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36065 (0x8ce1)

lri $AR1,    #0x0040
lri $IX1,    #0x8ce1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36066 (0x8ce2)

lri $AR1,    #0x0040
lri $IX1,    #0x8ce2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36067 (0x8ce3)

lri $AR1,    #0x0040
lri $IX1,    #0x8ce3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36068 (0x8ce4)

lri $AR1,    #0x0040
lri $IX1,    #0x8ce4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36069 (0x8ce5)

lri $AR1,    #0x0040
lri $IX1,    #0x8ce5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36070 (0x8ce6)

lri $AR1,    #0x0040
lri $IX1,    #0x8ce6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36071 (0x8ce7)

lri $AR1,    #0x0040
lri $IX1,    #0x8ce7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36072 (0x8ce8)

lri $AR1,    #0x0040
lri $IX1,    #0x8ce8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36073 (0x8ce9)

lri $AR1,    #0x0040
lri $IX1,    #0x8ce9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36074 (0x8cea)

lri $AR1,    #0x0040
lri $IX1,    #0x8cea
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36075 (0x8ceb)

lri $AR1,    #0x0040
lri $IX1,    #0x8ceb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36076 (0x8cec)

lri $AR1,    #0x0040
lri $IX1,    #0x8cec
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36077 (0x8ced)

lri $AR1,    #0x0040
lri $IX1,    #0x8ced
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36078 (0x8cee)

lri $AR1,    #0x0040
lri $IX1,    #0x8cee
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36079 (0x8cef)

lri $AR1,    #0x0040
lri $IX1,    #0x8cef
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36080 (0x8cf0)

lri $AR1,    #0x0040
lri $IX1,    #0x8cf0
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36081 (0x8cf1)

lri $AR1,    #0x0040
lri $IX1,    #0x8cf1
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36082 (0x8cf2)

lri $AR1,    #0x0040
lri $IX1,    #0x8cf2
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36083 (0x8cf3)

lri $AR1,    #0x0040
lri $IX1,    #0x8cf3
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36084 (0x8cf4)

lri $AR1,    #0x0040
lri $IX1,    #0x8cf4
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36085 (0x8cf5)

lri $AR1,    #0x0040
lri $IX1,    #0x8cf5
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36086 (0x8cf6)

lri $AR1,    #0x0040
lri $IX1,    #0x8cf6
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36087 (0x8cf7)

lri $AR1,    #0x0040
lri $IX1,    #0x8cf7
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36088 (0x8cf8)

lri $AR1,    #0x0040
lri $IX1,    #0x8cf8
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36089 (0x8cf9)

lri $AR1,    #0x0040
lri $IX1,    #0x8cf9
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36090 (0x8cfa)

lri $AR1,    #0x0040
lri $IX1,    #0x8cfa
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36091 (0x8cfb)

lri $AR1,    #0x0040
lri $IX1,    #0x8cfb
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36092 (0x8cfc)

lri $AR1,    #0x0040
lri $IX1,    #0x8cfc
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36093 (0x8cfd)

lri $AR1,    #0x0040
lri $IX1,    #0x8cfd
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36094 (0x8cfe)

lri $AR1,    #0x0040
lri $IX1,    #0x8cfe
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36095 (0x8cff)

lri $AR1,    #0x0040
lri $IX1,    #0x8cff
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36096 (0x8d00)

lri $AR1,    #0x0040
lri $IX1,    #0x8d00
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36097 (0x8d01)

lri $AR1,    #0x0040
lri $IX1,    #0x8d01
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36098 (0x8d02)

lri $AR1,    #0x0040
lri $IX1,    #0x8d02
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36099 (0x8d03)

lri $AR1,    #0x0040
lri $IX1,    #0x8d03
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36100 (0x8d04)

lri $AR1,    #0x0040
lri $IX1,    #0x8d04
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36101 (0x8d05)

lri $AR1,    #0x0040
lri $IX1,    #0x8d05
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36102 (0x8d06)

lri $AR1,    #0x0040
lri $IX1,    #0x8d06
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36103 (0x8d07)

lri $AR1,    #0x0040
lri $IX1,    #0x8d07
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36104 (0x8d08)

lri $AR1,    #0x0040
lri $IX1,    #0x8d08
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36105 (0x8d09)

lri $AR1,    #0x0040
lri $IX1,    #0x8d09
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36106 (0x8d0a)

lri $AR1,    #0x0040
lri $IX1,    #0x8d0a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36107 (0x8d0b)

lri $AR1,    #0x0040
lri $IX1,    #0x8d0b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36108 (0x8d0c)

lri $AR1,    #0x0040
lri $IX1,    #0x8d0c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36109 (0x8d0d)

lri $AR1,    #0x0040
lri $IX1,    #0x8d0d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36110 (0x8d0e)

lri $AR1,    #0x0040
lri $IX1,    #0x8d0e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36111 (0x8d0f)

lri $AR1,    #0x0040
lri $IX1,    #0x8d0f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36112 (0x8d10)

lri $AR1,    #0x0040
lri $IX1,    #0x8d10
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36113 (0x8d11)

lri $AR1,    #0x0040
lri $IX1,    #0x8d11
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36114 (0x8d12)

lri $AR1,    #0x0040
lri $IX1,    #0x8d12
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36115 (0x8d13)

lri $AR1,    #0x0040
lri $IX1,    #0x8d13
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36116 (0x8d14)

lri $AR1,    #0x0040
lri $IX1,    #0x8d14
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36117 (0x8d15)

lri $AR1,    #0x0040
lri $IX1,    #0x8d15
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36118 (0x8d16)

lri $AR1,    #0x0040
lri $IX1,    #0x8d16
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36119 (0x8d17)

lri $AR1,    #0x0040
lri $IX1,    #0x8d17
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36120 (0x8d18)

lri $AR1,    #0x0040
lri $IX1,    #0x8d18
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36121 (0x8d19)

lri $AR1,    #0x0040
lri $IX1,    #0x8d19
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36122 (0x8d1a)

lri $AR1,    #0x0040
lri $IX1,    #0x8d1a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36123 (0x8d1b)

lri $AR1,    #0x0040
lri $IX1,    #0x8d1b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36124 (0x8d1c)

lri $AR1,    #0x0040
lri $IX1,    #0x8d1c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36125 (0x8d1d)

lri $AR1,    #0x0040
lri $IX1,    #0x8d1d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36126 (0x8d1e)

lri $AR1,    #0x0040
lri $IX1,    #0x8d1e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36127 (0x8d1f)

lri $AR1,    #0x0040
lri $IX1,    #0x8d1f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36128 (0x8d20)

lri $AR1,    #0x0040
lri $IX1,    #0x8d20
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36129 (0x8d21)

lri $AR1,    #0x0040
lri $IX1,    #0x8d21
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36130 (0x8d22)

lri $AR1,    #0x0040
lri $IX1,    #0x8d22
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36131 (0x8d23)

lri $AR1,    #0x0040
lri $IX1,    #0x8d23
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36132 (0x8d24)

lri $AR1,    #0x0040
lri $IX1,    #0x8d24
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36133 (0x8d25)

lri $AR1,    #0x0040
lri $IX1,    #0x8d25
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36134 (0x8d26)

lri $AR1,    #0x0040
lri $IX1,    #0x8d26
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36135 (0x8d27)

lri $AR1,    #0x0040
lri $IX1,    #0x8d27
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36136 (0x8d28)

lri $AR1,    #0x0040
lri $IX1,    #0x8d28
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36137 (0x8d29)

lri $AR1,    #0x0040
lri $IX1,    #0x8d29
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36138 (0x8d2a)

lri $AR1,    #0x0040
lri $IX1,    #0x8d2a
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36139 (0x8d2b)

lri $AR1,    #0x0040
lri $IX1,    #0x8d2b
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36140 (0x8d2c)

lri $AR1,    #0x0040
lri $IX1,    #0x8d2c
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36141 (0x8d2d)

lri $AR1,    #0x0040
lri $IX1,    #0x8d2d
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36142 (0x8d2e)

lri $AR1,    #0x0040
lri $IX1,    #0x8d2e
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36143 (0x8d2f)

lri $AR1,    #0x0040
lri $IX1,    #0x8d2f
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36144 (0x8d30)

lri $AR1,    #0x0040
lri $IX1,    #0x8d30
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36145 (0x8d31)

lri $AR1,    #0x0040
lri $IX1,    #0x8d31
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36146 (0x8d32)

lri $AR1,    #0x0040
lri $IX1,    #0x8d32
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36147 (0x8d33)

lri $AR1,    #0x0040
lri $IX1,    #0x8d33
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36148 (0x8d34)

lri $AR1,    #0x0040
lri $IX1,    #0x8d34
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36149 (0x8d35)

lri $AR1,    #0x0040
lri $IX1,    #0x8d35
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36150 (0x8d36)

lri $AR1,    #0x0040
lri $IX1,    #0x8d36
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36151 (0x8d37)

lri $AR1,    #0x0040
lri $IX1,    #0x8d37
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36152 (0x8d38)

lri $AR1,    #0x0040
lri $IX1,    #0x8d38
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36153 (0x8d39)

lri $AR1,    #0x0040
lri $IX1,    #0x8d39
lri $WR1,    #0x003f
cw 0x5
call send_back  ; 36154 (0x8d3a)

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