StreakPeaked· Practice

ExamsGATETechnical

In an 8085 microprocessor, the contents of the accumulator and the carry flag are A7 (in hex) and 0, respectively. If the instruction RLC is executed, then the contents of the accumulator (in hex) and the carry flag, respectively, will be

  1. 4E and 0
  2. 4E and 1
  3. 4F and 0
  4. 4F and 1

Correct answer: 4F and 1

Solution

A7 = 1010 0111. RLC rotates left: the MSB (1) goes to carry and to the LSB, giving 0100 1111 = 4F with carry = 1. Correct option is 3 (4F and 1), not stored option 1 (4E and 1).

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →