Question: [ARM Assembly Language] Memory Addressing and Organization: Consider the following main memory and register file for the following questions. a.) Suppose the instruction ADD R0,

[ARM Assembly Language]

Memory Addressing and Organization: Consider the following main memory and register file for the following questions.

[ARM Assembly Language] Memory Addressing and Organization: Consider the following main memory

a.) Suppose the instruction ADD R0, R1, R2 is executed. What are the values in R0, R1, and R2 after execution? Assume initially the registers / memory have the values in the tables above.

b.) Suppose the instruction LDR R1, [R1,#4] is executed. Assume initially the registers / memory have the values in the tables above. What is the value in R1 after execution?

c.) Suppose the instruction LDR R1, [R3] is executed. Assume initially the registers / memory have the values in the tables above. What is the value in R1 after execution?

d.) Suppose the instruction SUB R1, PC, #1 is executed. Assume initially the registers / memory have the values in the tables above. What is the value in R1 after execution?

e.) Suppose the instruction LDR R2, [R0, R1] is executed. Assume initially the registers / memory have the values in the tables above. What is the value in R2 after execution?

f.) Suppose the instruction LDR R2, [R0], R1 is executed. Assume initially the registers / memory have the values in the tables above. What is the value in R2 after execution?

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!