x[8] = x[4] - y;
Assume that y's value is in register $t0 and the array x contains 32-bit ints and has a base address of 0x44567818.
(4 pts)
Pseudoinstruction | What it does |
move $t5, $t1 | $t5 = $t1 |
clear $t2 | $t2 = 0 |
li $t5, small | $t5 = small |
li $t5, big | $t5 = big |
lw $t2, big($t3) | $t2 = Memory[$t3 + big] |
addi $t1, $t2, big | $t1 = $t2 + big |
beq $t3, small, L | if ($t3 = small) goto L |
bne $t3, big, L | if ($t3 != big) goto L |