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 ?

  1. A.

    AC flag Only

  2. B.

    CY flag Only

  3. C.

    Z flag Only

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

Explore the full course: Tpsc Assistant Technical Officer