Assume a 32-bit machine. Assume each of the following questions starts from the
ID: 3847194 • Letter: A
Question
Assume a 32-bit machine. Assume each of the following questions starts from the table values; that is, DO NOT use value changes from one question as propagating into future parts of the question.
(a) Give the values of R1, R2 and R3 after this instruction: add R3, R2, R1
(b) What values will be in R1 & R3 after this instruction is executed: load R3, 12(R1)
(c) What values will be in the registers after this instruction is executed: addi R2, R3, #6
Register Value R1. 12 R2 16 R3 20 R4. 24 Memory location 12 16 20 24 Value 16 20 24 28Explanation / Answer
Answer:
a) Give the values of R1, R2, and R3 after this instruction: add R3, R2, R1
After add R3, R2, R1:
R1 = 12, R2 = 16 and R3 = 20
b) What values will be in R1 and R3 after this instruction is executed: load R3, 12(R1)
After load R3, 12(R1):
R3 = 16 and R1 = 12
c) What values will be in the registers after this instruction is executed: addi R2, R3, #16
After addi R2, R3, 16:
R2 = 16 and R3 = 20
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.