Passing Parameter Lists?
Posted: Thu Nov 06, 2014 9:20 am
I understand the workings of a subroutine and passing a parameter list into a subroutine.
I'm kind of stymied, though, about how to continue passing parameters lists on.
So, let's say you have a Main routine, a subroutine A and a print routine.
You pass a parameter list from Main to Print. So far, so good.
How can you take parameters passed into Print and send them from Print to A?
Do you store the inputted parameters into a storage area and then load a parameter list like normal? I've tried different ways of doing it, but it doesn't seem to work properly. The correct addresses aren't being passed.
Can you use a register in a parameter list?
Any help would be appreciated! Thank you!
Susan
I'm kind of stymied, though, about how to continue passing parameters lists on.
So, let's say you have a Main routine, a subroutine A and a print routine.
You pass a parameter list from Main to Print. So far, so good.
How can you take parameters passed into Print and send them from Print to A?
Do you store the inputted parameters into a storage area and then load a parameter list like normal? I've tried different ways of doing it, but it doesn't seem to work properly. The correct addresses aren't being passed.
Can you use a register in a parameter list?
Any help would be appreciated! Thank you!
Susan