First page Back Continue Last page Overview Graphics
Passing Parameters on the Stack
Contents of variables and addresses of variables can be passed on a stack.
Values are pushed onto the stack before the subroutine is called.
When the subroutine is called the stack frame contains the values passed followed by the return address.
After the return from the subroutine, the module making the call must restore the stack.