Question: (25 points) Consider the following ARM program. Trace the values of the registers shown as they change during program execution. Also, trace the writes to

(25 points) Consider the following ARM program. Trace the values of the registers shown as they change during program execution. Also, trace the writes to memory by the STR instruction There may be unused columns or rows in the tables. If you need to add columns or rows, you may do so. DCD 1 reserves one word of storage and sets it equal to 1. SPACE 3 reserves 3 bytes of memory but does not give those bytes a value. 10. AREA PROB 10, CODE, READONLY ADR ADR ADR LDR LDR rl, y r3, size r4, i loop SUBS r5, r4, r3 BPL LDR r5, [r0] LDR 6, [r1] ADD STR r5, [r2] ADD ADD ADD ADD done r5, r5, r6 r0, r0, r1, r1, r2, r2, r4, r4, Loop done #4 #4 #4 #1 done B size DCD DCD DCD DCD SPACE 24 END 100, 3, -1, 2, 4, 4 53, 247, 95, -7, 481, 91 ro r2 r3 r4 r6 Results of the STR instruction Memory Address Contents
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
