A subroutine is a sequence of instructions that is entered by CALL and left by RET. The stack pointer SP holds the address of the top of a zone of memory, the stack, used last in, first out: PUSH r lowers SP by one and stores r there, POP r reads it back and raises SP. CALL a pushes the address of the next instruction and jumps to a; RET pops an address into PC.
Computer Science · Glossary
What is Subroutine, stack pointer?
Also known as: subroutine · stack pointer