Bird
0
0

Which ARM assembly instruction is used to subtract 1 from a register and update condition flags for looping?

easy📝 Factual Q12 of 15
ARM Architecture - Control Flow Instructions
Which ARM assembly instruction is used to subtract 1 from a register and update condition flags for looping?
ASUBS
BMOV
CADD
DBNE
Step-by-Step Solution
Solution:
  1. Step 1: Identify the instruction that subtracts and sets flags

    SUBS subtracts a value and updates condition flags used for branching decisions.
  2. Step 2: Differentiate from other instructions

    ADD adds values, MOV moves data, BNE branches if not equal; only SUBS subtracts and sets flags.
  3. Final Answer:

    SUBS -> Option A
  4. Quick Check:

    SUBS subtracts and sets flags [OK]
Quick Trick: SUBS subtracts and updates flags for loop control [OK]
Common Mistakes:
  • Choosing ADD instead of SUBS
  • Confusing MOV with arithmetic
  • Using BNE as arithmetic instruction

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More ARM Architecture Quizzes