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
(moved tables up) |
(linkify flags) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" style="float:right;clear:right;width: | {| class="wikitable" style="float:right;clear:right;width:40%" | ||
!colspan="8"|Basic Info | !colspan="8"|Basic Info | ||
|+ | |+ | ||
Line 7: | Line 7: | ||
|'''Speed''' | |'''Speed''' | ||
|+ | |+ | ||
| | |[[Accumulator Addressing | Accumulator]] | ||
|9C | |9C | ||
|1 byte | |1 byte | ||
|2 cycles | |2 cycles | ||
|+ | |+ | ||
| | |[[Direct Page Addressing | Direct Page]] | ||
|8B | |8B | ||
|2 byte | |2 byte | ||
|4 cycles | |4 cycles | ||
|+ | |+ | ||
| | |[[Direct Page Indexed by X]] | ||
|9B | |9B | ||
|2 byte | |2 byte | ||
|5 cycles | |5 cycles | ||
|+ | |+ | ||
| | |[[Absolute Addressing | Absolute]] | ||
|8C | |8C | ||
|3 bytes | |3 bytes | ||
|5 cycles | |5 cycles | ||
|+ | |+ | ||
| | |[[Implied]] (type 1) | ||
|1D | |1D | ||
|1 byte | |1 byte | ||
|2 cycles | |2 cycles | ||
|+ | |+ | ||
| | |[[Implied]] (type 1) | ||
|DC | |DC | ||
|1 byte | |1 byte | ||
Line 39: | Line 39: | ||
{| class="wikitable" style="float:right;clear:right;width:30%" | {| class="wikitable" style="float:right;clear:right;width:30%" | ||
!colspan="8"|Flags | !colspan="8"|Flags Affected | ||
|+ | |+ | ||
|N | |[[Negative Flag|N]] | ||
|V | |[[Overflow Flag|V]] | ||
|P | |[[Direct Page Flag|P]] | ||
|B | |[[Break Flag|B]] | ||
|H | |[[Half-Carry Flag|H]] | ||
|I | |[[Interrupt Enable Flag|I]] | ||
|Z | |[[Zero Flag|Z]] | ||
|C | |[[Carry Flag|C]] | ||
|+ | |+ | ||
| | | | ||
Line 60: | Line 60: | ||
|} | |} | ||
'''DEC''' is an [[SPC700]] instruction that decrements | '''DEC''' is an [[SPC700]] instruction that decrements its operand. | ||
=== See Also === | === See Also === | ||
* [[DEC]] | * [[DEC]] | ||
* [[INC (SPC700)]] | * [[INC (SPC700)]] | ||
* [[DEX]] | |||
* [[DEY]] | |||
=== External Links === | === External Links === |
Latest revision as of 05:01, 27 November 2023
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.
See Also
External Links
- Official Super Nintendo development manual on DEC: Appendix C-7 of Book I