Bird
0
0

Which ARM instruction is commonly used to save the link register (return address) onto the stack during stack frame setup?

easy📝 Factual Q12 of 15
ARM Architecture - Subroutines and Stack
Which ARM instruction is commonly used to save the link register (return address) onto the stack during stack frame setup?
AMOV LR, SP
BPOP {LR}
CPUSH {LR}
DADD SP, SP, #4
Step-by-Step Solution
Solution:
  1. Step 1: Identify instruction to save LR

    The link register (LR) holds the return address and is saved on the stack using PUSH.
  2. Step 2: Match correct instruction

    PUSH {LR} stores LR on the stack; POP {LR} restores it. MOV and ADD do not save LR on stack.
  3. Final Answer:

    PUSH {LR} -> Option C
  4. Quick Check:

    Save LR with PUSH {LR} [OK]
Quick Trick: Use PUSH to save LR on stack [OK]
Common Mistakes:
  • Using POP instead of PUSH to save
  • Confusing MOV with stack operations
  • Adding to SP instead of saving LR

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More ARM Architecture Quizzes