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
Jump to: navigation, search
(→‎Reference: hid archive URL)
(added syntax)
Line 21: Line 21:


On the [[SPC700]], "imm" means "8-bit immediate data."<sup>[4]</sup>
On the [[SPC700]], "imm" means "8-bit immediate data."<sup>[4]</sup>
==== Syntax ====
<pre>
LDA #const
</pre>


=== See Also ===
=== See Also ===

Revision as of 19:19, 12 July 2024

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]

Syntax

LDA #const

See Also

Reference

  1. Eyes & Lichty page 397, https://archive.org/details/0893037893ProgrammingThe65816/page/n423
  2. lbid, page 108: https://archive.org/details/0893037893ProgrammingThe65816/page/n134
  3. Labiak page 209: https://archive.org/details/Programming_the_65816/page/n219
  4. Appendix C-1 of Book I of the official Super Nintendo development manual
  5. section 3.5.18 of 65c816 datasheet, https://westerndesigncenter.com/wdc/documentation/w65c816s.pdf