the functions (procedures) in MIPS
Firstly, you might want to check this quick MIPS reference. It really helped me. Secondly, to explain jal, jr and $ra. What jal <label> does is jump to the label label and store the program counter (think of it as the address of the current instruction) in the $ra register. Now, when you want to … Read more