Multiple choice

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,

  1. Carry flag will be set but Zero flag will be reset

  2. Carry flag will be reset but Zero flag will be set

  3. both Carry flag and Zero flag will be reset

  4. both Carry flag and Zero flag will be set

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

CMP B $\Rightarrow$ Compare the accumulator content with context of Register B

If A $\lt$ R CY is set and zero flag will be reset.