Question: Answer the below question based on the below subroutine, which calculates a workers overtime hours: If the employee did not work overtime, which instruction

Answer the below question based on the below subroutine, which calculates a workers overtime hours: If the employee did not work overtime, which instruction writes 0 to the register for the return value? CalcovertimeHours: addi $t2, $zero, 40 slt $t3, $to, St2 bne $t3, $zero, Noovertime # Overtime worked # Overtime hours is hours worked - 40 sub $t1, $to, $t2 j Returnovertime Noovertime: # No overtime, so overtime hours is 0 addi $t1, Szero, 0 Returnovertime: jr $ra sub $t1, $t0, $t2 O addi $t2, zero, 40 O addi $t1, $zero,0 O sub $t1, $t2, $t0
Step by Step Solution
3.25 Rating (140 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
