Question: Consider the program and the initial values for registers and memory. Memory Location Value 8 124 12 152 16 24 20 29 24 120 What
Consider the program and the initial values for registers and memory.
| Memory Location | Value |
| 8 | 124 |
| 12 | 152 |
| 16 | 24 |
| 20 | 29 |
| 24 | 120 |
What are the values in registers $s4, $s1, $t0, $t1, $t2 when the below program stops? Specify memory locations that are changed when program stops
li $s4,20 li $s1, 16 li $t2, 5 addi $t0,$s4,8 lw $t1,4($s1) slt $t2,$t0,$t1 sw $t0,0($s1)
$s4 = ____(Box 1)
$s1 = ____(Box 2)
$t0 = ____(Box 3)
$t1 = ____(Box 4)
$t2 = ____(Box 5)
Specify memory locations that are changed when program stops
Value in memory location ____________(Box 6) will be ________________(Box 7)
7 answers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
