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

From SnesLab
Revision as of 18:39, 25 July 2023 by Xetheria (talk | contribs) (created page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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:

  • ADC (opcode 98h)
  • AND (opcode 38h)
  • SBC (opcode B8h)
  • OR (opcode 18h)
  • EOR (opcode 58h)
  • CMP (opcode 78h)
  • MOV (opcode 8Fh)