Difficulty: Easy
Correct Answer: A-2, B-3, C-5
Explanation:
Introduction / Context:
On the 8085 microprocessor, arithmetic/logic instructions set or reset condition flags. Correctly recalling which flags change for ORI, DAA, and PCHL avoids subtle debugging errors and is frequently tested.
Given Data / Assumptions:
Concept / Approach:
For ORI/XRI/ANI, 8085 specifies CY and AC are reset to 0; S, Z, and P are set per result (affected). DAA can alter S, Z, AC, P, and CY depending on the adjust; thus many flags are affected. PCHL is a register-to-PC transfer and does not modify flags.
Step-by-Step Solution:
Verification / Alternative check:
8085 datasheets list flag effects: ORI clears CY and AC; DAA may set/reset CY/AC and updates S, Z, P; PCHL does not affect flags. These corroborate the chosen mapping.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing ORI with ADD/ADI (which may set carry), and assuming DAA only affects AC without considering a possible carry out after adjustment.
Final Answer:
A-2, B-3, C-5
Discussion & Comments