We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

Implied Addressing: Difference between revisions

From SnesLab
Jump to: navigation, search
(clarify that one-byte implied is mostly true on 65c816 since there are GSU instructions that seem to fall under this admode)
(added syntax)
Line 37: Line 37:


All implied instructions on the 65c816 except for WDM are one byte long.
All implied instructions on the 65c816 except for WDM are one byte long.
==== Syntax ====
<pre>
CLC
</pre>


=== References ===
=== References ===

Revision as of 19:20, 12 July 2024

There are three types of Implied Addressing on the 65c816:

Type 1 - The register(s) to be operated on are implied in the mnemonic: (17 instructions)

  • DEX (opcode CA)
  • DEY (opcode 88)
  • INX (opcode E8)
  • INY (opcode C8)
  • TAX (opcode AA)
  • TAY (opcode A8)
  • TCD (opcode 5B)
  • TSC (opcode 3B)
  • TDC (opcode 7B)
  • TSC (opcode 3B)
  • TSX (opcode BA)
  • TXA (opcode 8A)
  • TXS (opcode 9A)
  • TXY (opcode 9B)
  • TYA (opcode 98)
  • TYX (opcode BB)
  • XBA (opcode EB)

Type 2 - The flag(s) to be operated on are implied in the mnemonic: (8 instructions)

  • CLC (opcode 18)
  • CLD (opcode D8)
  • CLI (opcode 58)
  • CLV (opcode B8)
  • SEC (opcode 38)
  • SED (opcode F8)
  • SEI (opcode 78)
  • XCE (opcode FB)

Type 3 - Neither flags nor registers operated on: (4 instructions)

  • NOP (opcode EA)
  • STP (opcode DB)
  • WAI (opcode CB)
  • WDM (opcode 42)

All implied instructions on the 65c816 except for WDM are one byte long.

Syntax

CLC

References