trying to figure out how to start at bit 29
look at a input if it is true set bit 29 to 1
and bit shift right
y = 536870912 ' bit 29 set to 1
x = 0
WHILE x < 30
IF INPUT[0] == 1
y = y & 1
ENDIF
y = y / 2
x = x + 1
LOOP
Can not figure out how to do it
Any ideas
Thanks
look at a input if it is true set bit 29 to 1
and bit shift right
y = 536870912 ' bit 29 set to 1
x = 0
WHILE x < 30
IF INPUT[0] == 1
y = y & 1
ENDIF
y = y / 2
x = x + 1
LOOP
Can not figure out how to do it
Any ideas
Thanks