-
In an 8085 microprocessor, the instruction CMP B has been executed while the content of the accumulator is less than that of register B. As a result—
-
- Carry flag will be set but Zero flag will be reset
- Carry flag will be reset but Zero flag will be set
- Both Carry flag and Zero flag will be reset
- Both Carry flag and Zero flag will be set
Correct Option: A
CMP B subtracted the contents of register B from the accumulator content A and the result store in A. As given that the contents of A is less than B, so the result is in 2's complement form so CY = 1, but zero flag is reset, because both A and B content are not equal.