Question:

Consider the following flags of 8085 affected by the instruction SUB B: A. Sign flag B. Carry flag C. Zero flag D. Parity flag

Show Hint

Arithmetic instructions affect all flags in 8085.
Updated On: May 20, 2026
  • A, B, C and D
  • A, B and C only
  • B and D only
  • C and D only
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Concept: SUB instruction in 8085 affects all condition flags.

Step 1: Sign flag
Indicates MSB of result. \[ \Rightarrow \text{Affected} \]

Step 2: Carry flag
Indicates borrow in subtraction. \[ \Rightarrow \text{Affected} \]

Step 3: Zero flag
Set if result is zero. \[ \Rightarrow \text{Affected} \]

Step 4: Parity flag
Depends on number of 1s. \[ \Rightarrow \text{Affected} \] \[ \therefore \text{All flags affected} \]
Was this answer helpful?
0
0