Question: The following is a loop expressed in ARM code. The code is wrong. Why? ; Loop counter - ten times round the loop Next ADD
The following is a loop expressed in ARM code. The code is wrong. Why?
; Loop counter - ten times round the loop Next ADD rl, rl, ro; add loop counter to total MOV r0, #10 SUB ro, r0, #1 BEQ Next ; decrement loop counter ; continue until all done
Step by Step Solution
There are 3 Steps involved in it
This fragment of code has several errors The total is not initialized to zero This may not be an ... View full answer
Get step-by-step solutions from verified subject matter experts
