Direct Page Indirect Addressing
From SnesLab
(Redirected from Direct Page Indirect)
Direct Page Indirect Addressing is supported by eight instructions:
- ADC (opcode 72)
- AND (opcode 32)
- CMP (opcode D2)
- EOR (opcode 52)
- LDA (opcode B2)
- ORA (opcode 12)
- SBC (opcode F2)
- STA (opcode 92)
Syntax
LDA (dp)
In the above example, the 16-bit address stored at location dp of the direct page is fetched, and then the accumulator is loaded with the byte that lives at that address.
In emulation mode, the 16-bit pointer can't straddle a page boundary.[4]
See Also
References
- Eyes & Lichty, page 393
- page 128, lbid
- section 3.5.16 of 65c816 datasheet, https://westerndesigncenter.com/wdc/documentation/w65c816s.pdf
- Clark, Bruce. http://www.6502.org/tutorials/65c816opcodes.html#5.9