Instructions of 8085 Microprocessor · Microprocessors and Computer Organization
16 questions · asked in 12 of 26 years (2001–2026)
MCQ 15 · NAT 11-mark 13 · 2-mark 3
2001Questions per year2026
Questions 16–16 of 16
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
Answer: (A)
CMP B compares the accumulator with register B. It does the subtraction internally, sets the flags from the result, and does not change A or B.
Here , so:
The subtraction needs a borrow, so the carry flag is set: .
The result is not zero (A and B are different), so the zero flag is reset: .
Option (B) is the case ; in that case Z = 1 and CY = 0.
Answer: (A)
Here , so:
The subtraction needs a borrow, so the carry flag is set: .
The result is not zero (A and B are different), so the zero flag is reset: .
Option (B) is the case ; in that case Z = 1 and CY = 0.
Answer: (A)
Keep practising
Topics in Microprocessors and Computer Organization
Basics of 8085 Microprocessor
Instructions of 8085 MicroprocessorYou are here
Microprocessor 8085 ProgrammingMicroprocessor 8085 InterruptsInterfacing and Peripheral Devices