Question: LAB ACTIVITY | 8 . 9 . 1 : LAB: Function calls Assembly Assembly: addi $sp , $zero, 8 1 8 8 # Assume program

LAB ACTIVITY|8.9.1: LAB: Function calls Assembly
Assembly:
addi $sp, $zero, 8188 # Assume program stack starts at 8188. Do not modify.
# Procedure Main
Main:
# Type your code here.
j End
# Procedure Sum (Do not modify)
Sum:
lw $t0,8($sp)
lw $t1,4($sp)
add $t2, $t0, $t1
sw $t2,0($sp)
jr $ra
# Procedure Dif (Do not modify)
Dif:
lw $t0,8($sp)
lw $t1,4($sp)
sub $t2, $t0, $t1
sw $t2,0($sp)
jr $ra
End:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!