KNE345
Australia
University of Tasmania
Task: MIPS supports subroutines using the jump and link instruction, jal, where the program jumps to an address and saves the return address (PC + 4) in register $ra, ($31). The stack pointer register, $sp (typically $29), points to the area in memory used for the stack. The following C code subroutine ‘search’ is compiled into MIPS assembly language as shown. v[] is an array and 'n' is the size of the array. Determin ...
Read More