I am trying to add jal functionality to the following but I am stuck with how does it work. I know that it stores the old PC+4
value in the $ra
register and then transfers the control to the function which transfers back the control by return $ra
but how do I implement it in the hardware?
There are two things you need to do.