Use the register and memory values in the table below for the next questions. As
ID: 3613470 • Letter: U
Question
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 NOT
use value changes from one question as propagating into future parts
of the question.
Register Value Memory Location Value
R1 12 12 16
R2 16 16 20
R3 20 20 24
R4 24 24 28
a) Give the values of R1, R2, and R3 after this instruction: add R3,
R2, R1
b) What values will be in R1 and 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, #16
Explanation / Answer
please rate - thanks I'm assuming all values are in decimal a) Give the values of R1, R2, and R3 after this instruction: add R3,R2, R1 b) What values will be in R1 and R3 after this instruction isexecuted: load R3, 12(R1) R1=12 so 12+12=24 so will put in R3 what's in memory location 24c) What values will be in the registers after this instruction isexecuted: addi R2, R3, #16 only R2 is changed fromabove and it is 36
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.