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

From SnesLab
Jump to: navigation, search
(added syntax)
(see also)
Line 27: Line 27:
=== Reference ===
=== Reference ===
* Figure 3-8-3 Memory Access Addressing Effective Address on [https://archive.org/details/SNESDevManual/book1/page/n187 page 3-8-9 of Book I] of the official Super Nintendo development manual
* Figure 3-8-3 Memory Access Addressing Effective Address on [https://archive.org/details/SNESDevManual/book1/page/n187 page 3-8-9 of Book I] of the official Super Nintendo development manual
=== See Also ===
* [[Direct Page Addressing]]
* [[Direct Page Bit Addressing]]
* [[Direct Page Bit Relative Addressing]]


[[Category:ASM]]
[[Category:ASM]]

Revision as of 20:30, 12 July 2024

Some SPC700 opcodes use both Direct Page and Immediate addressing.

As it appears in assembler source, the left operand is an index into the direct page, and the right operand is an immediate value.

The following opcodes support direct page immediate addressing:

Syntax

ADC dp, #imm
AND dp, #imm
SBC dp, #imm
OR dp, #imm
EOR dp, #imm
CMP dp, #imm
MOV dp, #imm

Reference

  • Figure 3-8-3 Memory Access Addressing Effective Address on page 3-8-9 of Book I of the official Super Nintendo development manual

See Also