Question: Annotate the following MIPS instructions. Also, specify the following: save / restore instruction lines, procedure body, result instruction line and the return.(40 points) MIPS Instructions.
Annotate the following MIPS instructions. Also, specify the following: save / restore instruction lines, procedure body, result instruction line and the return.(40 points)
MIPS Instructions. Annotate/Comments after the #
addi $sp, $sp, -12 #
sw $t1, 8($sp) #
sw $t0, 4($sp) #
sw $t0, 4($sp) #
add $t0, $a0, $a1 #
add $t0, $a0, $a1 #
sub $s0, $t0, $t1 #
add $v0, $s0, $zero #
lw $s0, 0($sp) #
lw $t0, 4($sp) #
lw $t1, 8($sp) #
addi $sp, $sp, 12 #
jr $ra #
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
