Bird
0
0

Which ARM assembly instruction is used to jump to a label only if the zero flag is set after a comparison?

easy📝 Conceptual Q2 of 15
ARM Architecture - Control Flow Instructions
Which ARM assembly instruction is used to jump to a label only if the zero flag is set after a comparison?
ABNE
BBLT
CBGT
DBEQ
Step-by-Step Solution
Solution:
  1. Step 1: Understand zero flag meaning

    The zero flag is set when two values compared are equal.
  2. Step 2: Match instruction to zero flag

    BEQ means branch if equal (zero flag set), others check different conditions.
  3. Final Answer:

    BEQ branches if zero flag is set -> Option D
  4. Quick Check:

    Zero flag branch = BEQ [OK]
Quick Trick: BEQ jumps when compared values are equal (zero flag set) [OK]
Common Mistakes:
  • Choosing BNE which branches if not equal
  • Confusing BGT or BLT with zero flag
  • Using unconditional branch by mistake

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More ARM Architecture Quizzes