Question: LAB ACTIVITY | 8 . 9 . 1 : LAB: Function calls Assembly Assembly: addi $sp , $zero, 8 1 8 8 # Assume program
LAB ACTIVITY: LAB: Function calls Assembly
Assembly:
addi $sp $zero, # Assume program stack starts at Do not modify.
# Procedure Main
Main:
# Type your code here.
j End
# Procedure Sum Do not modify
Sum:
lw $t$sp
lw $t$sp
add $t $t $t
sw $t$sp
jr $ra
# Procedure Dif Do not modify
Dif:
lw $t$sp
lw $t$sp
sub $t $t $t
sw $t$sp
jr $ra
End:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
