Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Subroutine, stack pointer?

También llamado: subroutine · stack pointer

Definition 13.6 High School Computer Science · Capítulo 13 — The von Neumann Machine and Assembly Language

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.

Leer en el capítulo →