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

List of SPC700 Addressing Modes: Difference between revisions

From SnesLab
Jump to: navigation, search
(linkify)
(added missing period)
 
Line 16: Line 16:
| dp. dp || Direct Page to D.P. || 3
| dp. dp || Direct Page to D.P. || 3
|-
|-
| (X), (Y) || Indirect Page to I.P || 1
| (X), (Y) || Indirect Page to I.P. || 1
|-
|-
| dp, #imm || Immediate Data to D.P. || 3
| dp, #imm || Immediate Data to D.P. || 3

Latest revision as of 09:24, 4 January 2025

The SPC700 supports some unusual addressing modes. The number of bytes column shows the total length of instructions using that addressing mode.

Symbol Addressing Mode # of bytes
dp Direct Page 2
dp+X X-Indexed Direct Page 2
dp+Y Y-Indexed Direct Page 2
(X) Indirect 1
(X)+ Indirect Auto-Increment 1
dp. dp Direct Page to D.P. 3
(X), (Y) Indirect Page to I.P. 1
dp, #imm Immediate Data to D.P. 3
dp.bit Direct Page Bit 2
dp.bit, rel Direct Page Bit Relative 3
mem.bit Absolute Boolean Bit 3
!abs Absolute 3
!abs+X X-Indexed Absolute 3
!abs+y Y-Indexed Absolute 3
[DP+X] X-Indexed Indirect 2
[DP+Y] Indirect Y-Indexed Indirect 2

Reference