Question: Ql: ARM 7-program analysis. Analyze the program manually and find the value of the output. (Total 20 points) (Note: Use separate answer sheets to answer
Ql: ARM 7-program analysis. Analyze the program manually and find the value of the output. (Total 20 points) (Note: Use separate answer sheets to answer this question) QIA: (6 Points) start LDR R2,-0x00000E44 LDR R3,-0x32A84FE6 LDR R4.-0x00000000 LDR R5.-0xF4E00322 ADDS RO, R3 R5 ADC Ri R2. R4 stop B stop Q1B: (6 Points) Start MOV MOV ADD RSB R1, #5 ro, r1, LSL #3 ro, r1, r1, LSL #3 ro, r1, r1, LSL #3 Stop BStop Q1C: (12 Points) ENTRY LDR R1, N LDR R2, POINTER MOV R0, #0 R3,R2], #4 R3, #5 RO, RO, R3 R1,R1, #1 LOOP R4,-0x40000000 RO, [R4] STOP LOOP LDR ADDGT SUBS BGT LDR STR STOP B N DCD 7 POINTER DCD NUM1 NUM1 DCD 3, -5, 8,-2, 9, 3, 12, 15, 17,-3, 10, 14 END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
