In 8085 microprocessor which of the following flag(s) is (are) affected by an…
2017
In 8085 microprocessor which of the following flag(s) is (are) affected by an arithmetic operation ?
- A.
AC flag Only
- B.
CY flag Only
- C.
Z flag Only
- D.
AC, CY, Z flags
Attempted by 223 students.
Show answer & explanation
Correct answer: D
Answer: AC, CY and Z flags are affected by arithmetic operations in the 8085 microprocessor.
Explanation:
AC (Auxiliary Carry): Set when there is a carry out from the lower nibble (bit 3) to bit 4 during addition; used for BCD adjustments.
CY (Carry): Set when there is a carry out of the most significant bit in addition, or a borrow in subtraction.
Z (Zero): Set if the arithmetic result is zero.
Note: Arithmetic operations in 8085 also update the Sign (S) and Parity (P) flags; these are affected as well but were not part of the provided choices.