I'm interested in learning how to clear bits so that I can use part of the binary value, instead of the entire thing. What I hope to use this for is to obtain the signed bit, exponent, and the significand from an IEEE single precision float form.
However, I'm not entirely familiar with the hexadecimal system, and I was wondering if I could get your help.
Here are my thoughts so far: Signed bit - Bitwise-AND the binary value by 0x100000000 to get the first bit only
Exponent - Shift the value left once, and bitwise-and the new value by 0xFF000000 to obtain the first eight bits for the exponent
Significand - Shift the value left 23 times
Since each of these will require doing work on the original value, I'm planning to also store the value into another register. That way, I can still do work on the value without "harming" the original. The value of the signed bit, exponent, and the signficand will then be stored into separate registers.