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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f5467272768_38566f54671e85b4.jpg)
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
Get step-by-step solutions from verified subject matter experts
