I wanted it to be shorter, by using loop and

X.Y=Z
but as I can see, you can't use another variable as bit reference, only static values.