Practice over 1000+ GATE-level questions from this topic!
Designed to match the latest GATE pattern with topic-wise precision, difficulty tagging, and detailed solutions.
The associated figure shows the two types of rotate right instructions R1, R2 available in a microprocessor where Reg is a 8-bit register and C is the carry bit. The rotate left instructions L1 and L2 are similar except that C now links the most significant bit of Reg instead of the least significant one.

Suppose Reg contains the 2's complement number 11010110. If this number is divided by 2 the answer should be
01101011
10010101
11101001
11101011
The given number is (11010110)2 = (214)10
Since, it is in 2’s complement form, the actual number is 28 - 214 = (42)10
When this number is divided by 2 the result is (21)10
This number can be expressed in 2’s complement form as, 28 - 21 = (235)10
(235)10 = (11101011)2