Trouble with assembler subroutines
Posted: Mon Nov 21, 2011 10:32 am
I've been having trouble with assembler subroutines - can you give me some help as to how they work?
Thanks
Thanks
Mainframe Technical Support Forums
https://www.ibmmainframeforum.com/
This is far from complete, and it is not correct.RISCCISCInstSet wrote:Complete Information about subroutine calls:...
— Because the next instruc4on address is place in R1 beforeÂ
branching, R1 can be used as a return address from aÂ
subroutineÂ
— To enter a subroutine, you would codeÂ
    BAL  R14,subroutineÂ
— To return from a subroutine, you would codeÂ
    BR   R14
Sorry; I didn't mean to imply it was the only possible way to call a subroutine.There are many ways to call a subroutine.