ARM Architecture - Subroutines and StackIn ARM, a function expects four parameters but the caller passes only three. What happens to the unused register?AThe unused register is used to pass the return addressBThe unused register is cleared to zero automaticallyCThe unused register causes a runtime errorDThe unused register remains unchanged and ignoredCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand parameter passing behaviorRegisters not used for parameters remain unchanged by the caller.Step 2: Effect on unused registersUnused parameter registers are ignored and keep their previous values.Final Answer:The unused register remains unchanged and ignored -> Option DQuick Check:Unused param registers unchanged [OK]Quick Trick: Unused parameter registers keep old values [OK]Common Mistakes:Assuming registers are zeroedExpecting runtime errorsConfusing with return address register
Master "Subroutines and Stack" in ARM Architecture9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More ARM Architecture Quizzes Bus Architecture - Bus arbitration concept - Quiz 7medium Control Flow Instructions - Why branching controls program execution - Quiz 15hard Control Flow Instructions - Branch instruction (B) - Quiz 14medium Control Flow Instructions - Loop implementation in assembly - Quiz 11easy Exception and Interrupt Model - Exception entry and exit sequence - Quiz 13medium Exception and Interrupt Model - Why exceptions handle hardware events - Quiz 8hard Exception and Interrupt Model - Exception priority levels - Quiz 1easy Exception and Interrupt Model - Exception entry and exit sequence - Quiz 11easy Power Modes - Low-power design strategies - Quiz 2easy Power Modes - Clock gating for power saving - Quiz 13medium