Can I shift bit 4 over to bit 3 without shifting bits 0-2
Posted: Thu Jul 23, 2009 4:02 pm
I have to read a 4 bit binary value from ra0,ra1,ra2, ra4. If I read on only those bits, can I shift bit 4 over to bit 3 without effecting bits 0 to 2?
The only other way I could think of is to read bits into a variable and bit 4 into another variable, then shifting one var and then using OR to combine them into my 4 bit value. Any ideas or suggestions?
The only other way I could think of is to read bits into a variable and bit 4 into another variable, then shifting one var and then using OR to combine them into my 4 bit value. Any ideas or suggestions?