Jump: subroutine calls | |||||||||||||||
main: | subroutine: | ||||||||||||||
jal offset |
|
addi . . . | |||||||||||||
next |
|
ori . . . | |||||||||||||
blah | |||||||||||||||
. . . | |||||||||||||||
jr $r31 | |||||||||||||||
What happens if a jal call is made while in a subroutine? | |||||||||||||||
return address overwritten with a new return address | |||||||||||||||
must place the return address onto the stack (memory) | |||||||||||||||