The wiki has been upgraded to MediaWiki 1.43. The wiki's theme is still being adapted to work with the new version, and may appear broken for the time being. --RanAS
Direct Page Indirect Long Addressing
From SnesLab
(Redirected from Direct Page Indirect Long)
Direct Page Indirect Long Addressing is supported by eight instructions:
- ADC (opcode 67)
- AND (opcode 27)
- CMP (opcode C7)
- EOR (opcode 47)
- LDA (opcode A7)
- ORA (opcode 07)
- SBC (opcode E7)
- STA (opcode 87)
The 24-bit indirect address is located in bank zero by summing the direct register and the byte following the opcode. This 24-bit indirect address becomes the effective address:
- The byte number is located at the sum
- The page number is located at the sum plus one
- The bank number is located at the sum plus two
Syntax
LDA [dp]
See Also
References
- Eyes & Lichty, page 394
- section 3.5.15 of 65c816 datasheet, https://westerndesigncenter.com/wdc/documentation/w65c816s.pdf