We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
Indirect Addressing: Difference between revisions
From SnesLab
(mention Indirect Page to I.P.) |
(table name; added opcodes) |
||
Line 1: | Line 1: | ||
'''Indirect Addressing''' is supported by some one-byte [[SPC700]] instructions when the [[accumulator]] is one of the operands, such as: | '''Indirect Addressing''' is supported by some one-byte [[SPC700]] instructions when the [[accumulator]] is one of the operands, such as: | ||
* [[MOV]] | * [[MOV]] (opcodes E6 and C6) | ||
* [[AND]] | * [[AND]] (opcode 26) | ||
* [[OR]] | * [[OR]] (opcode 06) | ||
* [[EOR]] | * [[EOR]] (opcode 46) | ||
* [[ADC]] | * [[ADC]] (opcode 86) | ||
* [[SBC]] | * [[SBC]] (opcode A6) | ||
* [[CMP]] | * [[CMP]] (opcode 66) | ||
Some of the above mnemonics have an opcode where both operands utilize indirect addressing, in which case the whole instruction is considered to use [[Indirect Page to I.P. Addressing]]. | Some of the above mnemonics have an opcode where both operands utilize indirect addressing, in which case the whole instruction is considered to use [[Indirect Page to I.P. Addressing]]. | ||
Line 25: | Line 25: | ||
=== References === | === References === | ||
* Figure 3-8-3 on [https://archive.org/details/SNESDevManual/book1/page/n187 page 3-8-9 of Book I] of the official Super Nintendo development manual | * Figure 3-8-3 Memory Access Addressing Effective Address on [https://archive.org/details/SNESDevManual/book1/page/n187 page 3-8-9 of Book I] of the official Super Nintendo development manual | ||
* [[Eyes & Lichty]], [https://archive.org/details/0893037893ProgrammingThe65816/page/37 page 37] | * [[Eyes & Lichty]], [https://archive.org/details/0893037893ProgrammingThe65816/page/37 page 37] | ||
Revision as of 04:02, 5 January 2025
Indirect Addressing is supported by some one-byte SPC700 instructions when the accumulator is one of the operands, such as:
- MOV (opcodes E6 and C6)
- AND (opcode 26)
- OR (opcode 06)
- EOR (opcode 46)
- ADC (opcode 86)
- SBC (opcode A6)
- CMP (opcode 66)
Some of the above mnemonics have an opcode where both operands utilize indirect addressing, in which case the whole instruction is considered to use Indirect Page to I.P. Addressing.
Symbol
(X)
See Also
- Absolute Indirect Addressing
- Absolute Indirect Long Addressing
- Direct Page Indirect Addressing
- Direct Page Indirect Indexed, Y Addressing
- Direct Page Indirect Long Addressing
- Direct Page Indirect Long Indexed, Y Addressing
References
- Figure 3-8-3 Memory Access Addressing Effective Address on page 3-8-9 of Book I of the official Super Nintendo development manual
- Eyes & Lichty, page 37