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 Pointer: Difference between revisions

From SnesLab
Jump to: navigation, search
(common initial value)
(abbreviations)
Line 1: Line 1:
The '''Stack Pointer''' on the [[SPC700]] is 16-bit, but the upper byte is fixed by the hardware to be 0x01.
The '''Stack Pointer''' (SP) on the [[SPC700]] is 16-bit, but the upper byte is fixed by the hardware to be 0x01.


On the [[65c816]], the only two instructions that modify the stack pointer directly are [[TCS]] and [[TXS]].  It is only fixed to be in page one in [[emulation mode]] on the '816.
On the [[65c816]], the only two instructions that modify the stack pointer (S) directly are [[TCS]] and [[TXS]].  It is only fixed to be in page one in [[emulation mode]] on the '816.


1FFh is a common value to initialize the stack pointer to.
1FFh is a common value to initialize the stack pointer to.

Revision as of 23:09, 22 July 2024

The Stack Pointer (SP) on the SPC700 is 16-bit, but the upper byte is fixed by the hardware to be 0x01.

On the 65c816, the only two instructions that modify the stack pointer (S) directly are TCS and TXS. It is only fixed to be in page one in emulation mode on the '816.

1FFh is a common value to initialize the stack pointer to.

See Also

References