Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Subroutine, stack pointer » ?

Aussi appelé : subroutine · stack pointer

Definition 13.6 High School Computer Science · Chapitre 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.

Lire dans le chapitre →