We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

Stack: Difference between revisions

From SnesLab
Jump to: navigation, search
(superscript ref)
(push/pull lists)
Line 2: Line 2:


On the [[65c816]], the stack is always in [[bank]] zero.<sup>[1]</sup>
On the [[65c816]], the stack is always in [[bank]] zero.<sup>[1]</sup>
These instructions push things to the stack:
* [[PHA]]
* [[PHB]]
* [[PHD]]
* [[PHK]]
* [[PHP]]
* [[PHX]]
* [[PHY]]
These instructions pull things from the stack:
* [[PLA]]
* [[PLB]]
* [[PLD]]
* [[PLP]]
* [[PLX]]
* [[PLY]]


=== See Also ===
=== See Also ===

Revision as of 00:18, 17 July 2024

The Stack is a buffer which remembers the state of subroutines that are currently executing.

On the 65c816, the stack is always in bank zero.[1]

These instructions push things to the stack:

These instructions pull things from the stack:

See Also

Reference

  1. https://wilsonminesco.com/816myths