This is an alternative you can consider...

value var byte
x var byte
y var byte [16]

For x=0 to 15
if y[x]=x then y[x]=value
next x

Melanie