Match the following 8085 instructions with the flags : Codes :

2014

Match the following 8085 instructions with the flags :

image.png

Codes :

  1. A.

    a-iv, b-i, c-iii, d-ii

  2. B.

    a-iii, b-ii, c-i, d-iv

  3. C.

    a-ii, b-iii, c-i, d-iv

  4. D.

    a-ii, b-iv, c-i, d-iii

Attempted by 54 students.

Show answer & explanation

Correct answer: D

Correct matching: XCHG → No flags are affected; SUB → All flags are affected; STC → Only carry flag is affected; DCR → All flags other than carry are affected.

  • XCHG: Exchanges DE and HL registers; this swap operation does not modify any processor flags.

  • SUB: Subtracts a value from the accumulator; it updates all condition flags (Sign, Zero, Auxiliary Carry, Parity and Carry).

  • STC: Sets the Carry flag to 1; it affects only the carry flag and does not change the other flags.

  • DCR: Decrements a register or memory by 1; it affects Sign, Zero, Auxiliary Carry and Parity flags but does not alter the Carry flag.

Explore the full course: Mppsc Assistant Professor