1
Axe / I need help: Bits, bytes, and exponents
« on: November 27, 2011, 01:08:51 pm »
Alright, so I want to read, for example, a single bit of data from a byte.
I tried
but I can't figure out how to get # to the power of other# because ^ is now modulus.
So tl;dr how do you read a bit from a byte and how do you multiply a number by itself many times without using For(?
Thanks in advance :D
I tried
Code: [Select]
(L3+offset) and 2 to the power of bit_I_want
where L3+offset is my byte of choice and "and" is logical andbut I can't figure out how to get # to the power of other# because ^ is now modulus.
So tl;dr how do you read a bit from a byte and how do you multiply a number by itself many times without using For(?
Thanks in advance :D