Question: Rewrite the program to make it more efficient and then add comments to each of the lines MOVS rl, #0x00 LDR r2, = total addr
MOVS rl, #0x00 LDR r2, = total addr STR rl, fr2, #0x00] MOVS r0, #0x00 B Check Loop: LDR r1, = a_addr LDR r1, [r1, r0, LSL #2] LDR r2, = total addr LDR r2, [r2, #0x00] ADD r1, rl, r2 LDR r2, = total_addr STR r1,[r2,#0x00] ADDS r0, r0, #1 Check: CMP r0, #Ox0A BLT Loop NOP Self: B Self MOVS rl, #0x00 LDR r2, = total addr STR rl, fr2, #0x00] MOVS r0, #0x00 B Check Loop: LDR r1, = a_addr LDR r1, [r1, r0, LSL #2] LDR r2, = total addr LDR r2, [r2, #0x00] ADD r1, rl, r2 LDR r2, = total_addr STR r1,[r2,#0x00] ADDS r0, r0, #1 Check: CMP r0, #Ox0A 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
