StreakPeaked· Practice

ExamsGATETechnical

In a given 8-bit general purpose micro-controller there are following flags. C - Carry, A - Auxiliary Carry, O - Overflow flag, P - Parity (0 for even, 1 for odd) R0 and R1 are the two general purpose registers of the micro-controller. After execution of the following instructions, the decimal equivalent of the binary sequence of the flag pattern [C A O P] will be ________ MOV R0, +0x60 MOV R1, +0x46 ADD R0, R1

  1. 0
  2. 1
  3. 2
  4. 3

Correct answer: 2

Solution

The correct option is 2 because the addition of R0 (0x60) and R1 (0x46) results in a sum that sets the Auxiliary Carry (A) and Overflow (O) flags, while the Carry (C) and Parity (P) flags remain clear. This corresponds to the binary pattern 0010, which is 2 in decimal.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →