Question: CHALLENGE ACTIVITY 3.1.1: Call and create subroutines Start D-D 2 w Pass DM[$15] to the Monthly Salary subroutine, and store the return value to DMLS16).
CHALLENGE ACTIVITY 3.1.1: Call and create subroutines Start D-D 2 w Pass DM[$15] to the Monthly Salary subroutine, and store the return value to DMLS16). $13 is the subroutine argument. $14 is the subroutine retum value. St 0, 0.51 Registers $13 0 06 113 0 05 5000 . S10 SI 0X 5t ) 5004 Monthlysalary: addio SO 172 Data memory 5000 15 5004 0 M $14 SES Iw . 51 SI . Done: Check Neo CHALLENGE ACTIVITY 3.1.1: Call and create subroutines. Jump to level 1 Pass DM[$43) to the YearlySalary subroutine, and store the return value to DM[S14). $11 is the subroutine argument. $12 is the subroutine return value. lw $t1 0 $11 Registers 0 0, 0, $1 0 0$11 $13 5000 $t1 0$t1 5004 Data memory 5000 15 5004 Iw $21 S12 St1 Iw $t1 314 Iw YearlySalary: add $12 Szero, 2000 mu Siz st Sra Done: Check Next
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
