We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
DEC (SPC700): Difference between revisions
From SnesLab
(linkify flags) |
(added syntax) |
||
Line 61: | Line 61: | ||
'''DEC''' is an [[SPC700]] instruction that decrements its operand. | '''DEC''' is an [[SPC700]] instruction that decrements its operand. | ||
==== Syntax ==== | |||
<pre> | |||
DEC A | |||
DEC dp | |||
DEC dp+X | |||
DEC !abs | |||
DEC X | |||
DEC Y | |||
</pre> | |||
=== See Also === | === See Also === |
Revision as of 19:51, 6 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | Speed | ||||
Accumulator | 9C | 1 byte | 2 cycles | ||||
Direct Page | 8B | 2 byte | 4 cycles | ||||
Direct Page Indexed by X | 9B | 2 byte | 5 cycles | ||||
Absolute | 8C | 3 bytes | 5 cycles | ||||
Implied (type 1) | 1D | 1 byte | 2 cycles | ||||
Implied (type 1) | DC | 1 byte | 2 cycles |
Flags Affected | |||||||
---|---|---|---|---|---|---|---|
N | V | P | B | H | I | Z | C |
. | . | . | . | . | . |
DEC is an SPC700 instruction that decrements its operand.
Syntax
DEC A DEC dp DEC dp+X DEC !abs DEC X DEC Y
See Also
External Links
- Official Super Nintendo development manual on DEC: Appendix C-7 of Book I