First page Back Continue Last page Graphics
Subroutine Stack Usage
subroutines (as in Fortran 77) make use of the stack.
Instruction sets provide two support operations
- CALL
- Pushes the following instruction address onto the stack
- Places subroutine start address into the program counter
- RETURN
- Pops the top stack value from the stack and places it in the program counter register.