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

Absolute Long Addressing: Difference between revisions

From SnesLab
Jump to: navigation, search
(Undo revision 19255 by Xetheria (talk) despite the very similar name this link is actually to absolute Indirect Long Addressing)
Tag: Undo
(linkify bank)
Line 15: Line 15:
# low byte of absolute address (byte within page)
# low byte of absolute address (byte within page)
# high byte of absolute address (page number)
# high byte of absolute address (page number)
# bank number
# [[bank]] number


==== Syntax ====
==== Syntax ====

Revision as of 13:46, 1 August 2024

Absolute Long Addressing is supported by ten instructions:

  • ADC (opcode 6F)
  • SBC (opcode EF)
  • AND (opcode 2F)
  • ORA (opcode 0F)
  • LDA (opcode AF)
  • STA (opcode 8F)
  • EOR (opcode 4F)
  • CMP (opcode CF)
  • JMP / JML (opcode 5C)
  • JSR / JSL (opcode 22)

All are four bytes long. This is what the various operand bytes represent:

  1. low byte of absolute address (byte within page)
  2. high byte of absolute address (page number)
  3. bank number

Syntax

LDA long

See Also

References