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

Direct Page: Difference between revisions

From SnesLab
Jump to: navigation, search
mNo edit summary
(overlap the stack)
Line 3: Line 3:
Colloquial usage of this term will invariably refer to the '''Direct Page Register''' itself and by extension the group of Direct addressing modes it affects, due to the other addressing modes not being limited to 256 bytes.
Colloquial usage of this term will invariably refer to the '''Direct Page Register''' itself and by extension the group of Direct addressing modes it affects, due to the other addressing modes not being limited to 256 bytes.
The wrapping behavior will ''always'' confine it to Bank 0, but if in emulation may also confine it to a single addressing page.
The wrapping behavior will ''always'' confine it to Bank 0, but if in emulation may also confine it to a single addressing page.
The direct page may overlap the [[stack]].<sup>[4]</sup>


On the [[SPC700]], the direct page can only be in one of two places: either coincident with page zero or page one.
On the [[SPC700]], the direct page can only be in one of two places: either coincident with page zero or page one.
Line 17: Line 19:


=== Reference ===
=== Reference ===
* [[Eyes & Lichty]] page 198, https://archive.org/details/0893037893ProgrammingThe65816/page/n224
# [[Eyes & Lichty]] page 198, https://archive.org/details/0893037893ProgrammingThe65816/page/n224
* [[6502 Reference]] 5.1.1, http://www.6502.org/tutorials/65c816opcodes.html#5.1.1
# [[6502 Reference]] 5.1.1, http://www.6502.org/tutorials/65c816opcodes.html#5.1.1
* [[6502 Reference]] 5.1.2, http://www.6502.org/tutorials/65c816opcodes.html#5.1.2
# [[6502 Reference]] 5.1.2, http://www.6502.org/tutorials/65c816opcodes.html#5.1.2
# https://wilsonminesco.com/816myths
 
[[Category:ASM]]
[[Category:ASM]]
[[Category:65c816 additions]]
[[Category:65c816 additions]]

Revision as of 18:34, 27 June 2024

The Direct Page is much like the zeropage on the 6502, but can be moved around to anywhere within the first 64K bank. It is technically, as its namesake, the 256 bytes accessible via Direct Page Addressing, and has special handling of wrapping behavior. Colloquial usage of this term will invariably refer to the Direct Page Register itself and by extension the group of Direct addressing modes it affects, due to the other addressing modes not being limited to 256 bytes. The wrapping behavior will always confine it to Bank 0, but if in emulation may also confine it to a single addressing page.

The direct page may overlap the stack.[4]

On the SPC700, the direct page can only be in one of two places: either coincident with page zero or page one.

See Also

Reference

  1. Eyes & Lichty page 198, https://archive.org/details/0893037893ProgrammingThe65816/page/n224
  2. 6502 Reference 5.1.1, http://www.6502.org/tutorials/65c816opcodes.html#5.1.1
  3. 6502 Reference 5.1.2, http://www.6502.org/tutorials/65c816opcodes.html#5.1.2
  4. https://wilsonminesco.com/816myths