Stack Pointer

From Computer History Wiki
Revision as of 15:24, 15 December 2018 by Jnc (talk | contribs) (+cat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A Stack Pointer (often abbreviated as SP) is a special register inside a CPU, used by the CPU to do operations on a stack held in main memory.

In many machines (e.g. the PDP-11) any of the CPU's general purpose registers can be used as a stack pointer, but there is still usually one that is 'special' to the hardware (e.g. used during the processing of interrupts), and this is usually distinguished as 'the' SP.