Use the register and memory values in the table below for th

Use the register and memory values in the table below for the next questions. Assume a 32-bit machine. Assume each of the following questions starts from the table values; that is, DO NOTuse value changes from one question as propagating into future parts of the question. Give the values of R1, R2, and R3 after this instruction: add R3 R2, R1 What values will be in R4 after this instruction is executed: RD R4, [R1 R2] What values will be in the register R2 after this instruction is executed: add R2, R3, #16

Solution

Ans. a.
R3 = R2 + R1
Therefore R3 has 12 + 16 = 28
R2 has 16
R1 has 12

b.
LDR R4 will load the instructions present at memory locations R1 and R2 into R4.
Therefore R4 will have Instruction at 16 and 20.

c.
R2 will have 20 + 16 = 36

 Use the register and memory values in the table below for the next questions. Assume a 32-bit machine. Assume each of the following questions starts from the t

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site