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.
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)
and
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 [CAOP] will be
MOV RO, 
MOV R1, +0x46
ADD R0, R1
MOV R0, 0 × 60 ← (60)H is stored in R0
MOV R1, 0 × 46 ← (46)H is stored in R1
ADD R0, R1
Both values get added

Number of 1’s in result = 4 = even ∴ P =0
Overflow bit is 1 because both numbers have MSB = 0 i.e. positive numbers but result has MSB = 1 i.e. negative number.
CAOP = 0010; decimal value = 2