Difficulty: Easy
Correct Answer: ADD A, R3
Explanation:
Introduction / Context:Arithmetic instructions on the 8051 use specific operand order and addressing modes. For register-to-Accumulator addition, only certain encodings are legal. Picking the proper form avoids assembler errors and unexpected behavior.
Given Data / Assumptions:
Concept / Approach:The 8051 defines ADD A, src where src may be Rn, direct, @Ri, or immediate (#data). The destination is always A for ADD. There is no form ADD Rn, A, nor any form that addresses A indirectly (@A is invalid).
Step-by-Step Solution:
Required operation: A ← A + R3Valid encoding: ADD A, R3Assembler accepts Rn as a legal source; destination fixed to AVerification / Alternative check:Consult the ADD instruction table: legal sources include R0–R7, @R0/@R1, direct, and #immediate, always with A as destination.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:ADD A, R3
Discussion & Comments