Computer Science for IGCSE & O level - Data Representation (Section 7 - No. 5)
If the 8-bit register is 11111111, what will be the result of shifting this register to the right one bit?
1111111
01111111
11111110
00000000
Explanation
When shifting to the right, the rightmost bit is lost, and the leftmost bit is filled in (typically with a 0 for logical shift, and copies the sign bit for arithmetic shifts; here the shift would lose the right-most bit.
Comments (0)
