Question: 4. Rewrite the following ARM assembly code to make it more efficient. Put comments for each line of your code. MOVS r1,#0x00 LDR r2, =
4. Rewrite the following ARM assembly code to make it more efficient. Put comments for each line of your code. MOVS r1,#0x00 LDR r2, = total addr STR r1,[r2, #0x001 MOVS r0, #0x00 Check Loop: LDR r1,=a-addr ri, Iri, ro, LSL #21 LDR LDR LDR ADD LDR STR ADDS r2, total addr r2,[r2,#0x001 r1, rl, r2 r2, = total addr r1,[r2,#0x001 r0, r0, #1 Check: CMP r0, #0x0A BLT Loop NOP Self: B Self
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
