Question: 1 ) Assume a 3 2 - bit machine. Assume the registers and memory contain initial values as in the following tables: Loop: slt
Assume a bit machine. Assume the registers and memory contain initial values as in the following tables:
Loop: slt $t$t$t
bne $t$zero, skip
Iw $t$t
addi $ t$t$t
sw $ $t$ t
j exit
skip: add $t$t$t
addi $ mathrmt$ mathrmt
j loop
exit:
a After executing the above MIPS instructions, what values will be in registers $ mathrmt$ mathrmt$ mathrmt$ mathrmt and $ mathrmt respectively?
b What is the content of the word in the memory at address after the above assembly code finishes the execution?
c What is the encoding for instruction Iw $t$t
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
