Home » Microprocessor » Advanced Microprocessors » Question

Advanced Microprocessors

  1. 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
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.



Your comments will be displayed only after manual approval.