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
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 (SPC700) (opcode 98h)
- AND (SPC700) (opcode 38h)
- SBC (SPC700) (opcode B8h)
- OR (SPC700) (opcode 18h)
- EOR (SPC700) (opcode 58h)
- CMP (SPC700) (opcode 78h)
- MOV (opcode 8Fh)
Syntax
ADC dp, #imm AND dp, #imm SBC dp, #imm OR dp, #imm EOR dp, #imm CMP dp, #imm MOV dp, #imm
See Also
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