ARM Architecture - Control Flow InstructionsWhy is the SUBS instruction preferred over SUB in ARM assembly loops?ABecause SUBS updates condition flags needed for branch decisionsBBecause SUBS executes faster than SUBCBecause SUBS stores the result in memoryDBecause SUBS can only subtract 1Check Answer
Step-by-Step SolutionSolution:Step 1: Understand difference between SUB and SUBSSUBS subtracts and updates condition flags; SUB does not update flags.Step 2: Importance of flags in loopsBranch instructions like BNE rely on flags set by SUBS to decide looping.Final Answer:Because SUBS updates condition flags needed for branch decisions -> Option AQuick Check:SUBS updates flags for branching [OK]Quick Trick: SUBS updates flags; SUB does not [OK]Common Mistakes:Thinking SUBS is fasterBelieving SUBS stores to memoryAssuming SUBS only subtracts 1
Master "Control Flow Instructions" in ARM Architecture9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More ARM Architecture Quizzes Bus Architecture - Bus arbitration concept - Quiz 14medium Bus Architecture - Bus arbitration concept - Quiz 8hard Bus Architecture - AHB and APB bus overview - Quiz 8hard Bus Architecture - Bus fault and memory protection - Quiz 1easy Bus Architecture - AHB and APB bus overview - Quiz 3easy Control Flow Instructions - IT block for conditional execution (Thumb-2) - Quiz 15hard Control Flow Instructions - Why branching controls program execution - Quiz 9hard Exception and Interrupt Model - Interrupt enable and disable - Quiz 12easy Exception and Interrupt Model - Exception entry and exit sequence - Quiz 8hard Power Modes - Low-power design strategies - Quiz 12easy