Name: Box: Date:
Lab1
Read and perform the lab guide posted on the course website. Answer the questions in the lab guide as you get to them in the spaces below. The numbers below refer to steps in the lab guide.
-
[6.8] Predict the effects of executing the three instructions (the second
ori
, theadd
, and the thirdori
). Which registers will change, and what will the new values be? -
[6.10] What is the value of register
0
after the value 40 is stored in it? Based on your observations, can the value of the0
register be changed? -
[7.2] In turn, predict the effects of executing the first three instructions (the first
ori
, thelui
, and the secondori
). -
[9.3] What is the summed value computed for
total
? Answer in both decimal and hexadecimal. -
[9.3] What is the address of
total
in main memory? Your answer must be in hexadecimal. Hint: it will be helpful to look in the data segment.