Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Subroutine, stack pointer?

Também chamado de: 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.

Ler no capítulo →