Glossary: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(added pointer (generalization) to glossary, and clarified "call" and "return" as instructions that affect the stack)
m (fixed spelling)
Line 82: Line 82:


;{{Anchor|Stack pointer}}'''Stack pointer'''
;{{Anchor|Stack pointer}}'''Stack pointer'''
:A special-purpose register that points to the topmost entry of the [[#Stack|stack]]. In the GB CPU, the stack pointer is named <code>sp</code>, and it is decreased by 2 (since the stack entries are 2-byte numbers) for each <code>push</code> or <code>call</code>, and increased by 2 for each <code>pop</code> or <code>return</code>.
:A special-purpose register that points to the topmost entry of the [[#Stack|stack]]. In the GB CPU, the stack pointer is named <code>sp</code>, and it is decreased by 2 (since the stack entries are 2-byte numbers) for each <code>push</code> or <code>call</code>, and increased by 2 for each <code>pop</code> or <code>ret</code>.


;{{Anchor|Terminator}}'''Terminator'''
;{{Anchor|Terminator}}'''Terminator'''