Assume all memory locations start with unknown values. What is the contents of memory after this program runs?
addiu $t0, $zero, 8
addi $t1, $t0, 1
sw $t1, -4($t0)
addi $t1, $t0, -4
sw $t1, 4($t0)
Match the options with these mem locations.
0x0:
0x4:
0x8:
0xC:
0x10:
0x14:
Options to match with mem adress
12
-4
4
5
0
9
unknown
1
addiu $t0, $zero, 8 #$t0 =
8
addi $t1, $t0, 1 #$t1 = 9
sw $t1, -4($t0)
#Mem[8-4] = 9 Mem[4] = 9
addi $t1, $t0, -4 #$t1 = (8-4) =
4
sw $t1, 4($t0)
#Mem[8+4] = 4 Mem[12] = 4
0x0: unknown
0x4: 9
0x8: unknown
0xC: 4
0x10: unknown
0x14: unknown
Get Answers For Free
Most questions answered within 1 hours.