Difficulty: Easy
Correct Answer: A-2, B-3, C-4, D-1
Explanation:
Introduction / Context:
Many 8085 instructions encode a register pair with a 2-bit field (rp). Knowing this mapping is essential for decoding opcodes (e.g., LXI rp, DAD rp, INX rp) and writing assemblers/disassemblers.
Given Data / Assumptions:
Concept / Approach:
Intel’s encoding assigns 00→BC, 01→DE, 10→HL, and 11→SP for the rp field. We simply pair each 2-bit code with its register pair.
Step-by-Step Solution:
Verification / Alternative check:
Check the opcode table: e.g., LXI rp uses opcodes 00xx1001 with rp in bits 5–4; decoding examples confirm the mapping above.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing the rp mapping with the r (3-bit) single-register field used in MOV/MVI/ADD; they are different encodings.
Final Answer:
A-2, B-3, C-4, D-1
Discussion & Comments