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 · 术语表
什么是 Subroutine, stack pointer?
又称: subroutine · stack pointer