We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
Immediate Addressing: Difference between revisions
From SnesLab
(#) |
(added ref to Appendix C-1) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Immediate Addressing''' is when the data to be operated on directly follows the opcode in the instruction steam. The immediate data is generally preceded by a # in the assembler source. | '''Immediate Addressing''' is when the data to be operated on directly follows the opcode in the instruction steam. The immediate data is generally preceded by a # in the assembler source. | ||
Supported by the following instructions: | |||
* [[ADC]] | |||
* [[SBC]] | |||
* [[EOR]] | |||
* [[AND]] | |||
* [[ORA]] | |||
* [[LDA]] | |||
* [[LDX]] | |||
* [[LDY]] | |||
* [[CMP]] | |||
* [[CPX]] | |||
* [[CPY]] | |||
* [[BIT]] | |||
* [[SEP]] | |||
* [[REP]] | |||
* [[ADD (Super FX)]] | |||
On the [[SPC700]], "imm" means "8-bit immediate data."<sup>[4]</sup> | |||
=== See Also === | |||
* [[Implied Addressing]] | |||
=== Reference === | |||
# [[Eyes & Lichty]] page 397, https://archive.org/details/0893037893ProgrammingThe65816/page/n423 | |||
# lbid, page 108: https://archive.org/details/0893037893ProgrammingThe65816/page/n134 | |||
# [[Labiak]] page 209: https://archive.org/details/Programming_the_65816/page/n219 | |||
# https://archive.org/details/SNESDevManual/book1/page/n226 | |||
[[Category:ASM]] | [[Category:ASM]] | ||
[[Category:Addressing Modes]] | [[Category:Addressing Modes]] | ||
[[Category:Inherited from 6502]] |
Latest revision as of 08:09, 18 December 2023
Immediate Addressing is when the data to be operated on directly follows the opcode in the instruction steam. The immediate data is generally preceded by a # in the assembler source.
Supported by the following instructions:
On the SPC700, "imm" means "8-bit immediate data."[4]
See Also
Reference
- Eyes & Lichty page 397, https://archive.org/details/0893037893ProgrammingThe65816/page/n423
- lbid, page 108: https://archive.org/details/0893037893ProgrammingThe65816/page/n134
- Labiak page 209: https://archive.org/details/Programming_the_65816/page/n219
- https://archive.org/details/SNESDevManual/book1/page/n226