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

Rewrite the program to make it more efficient and then add comments to each of the lines Rewrite the program to make it more efficient and then add comments

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!