We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
INC (SPC700): Difference between revisions
From SnesLab
(accumulator addressing) |
(linkify flags) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
|2 cycles | |2 cycles | ||
|+ | |+ | ||
| | |[[Direct Page Addressing | Direct Page]] | ||
|AB | |AB | ||
|2 byte | |2 byte | ||
|4 cycles | |4 cycles | ||
|+ | |+ | ||
| | |[[Direct Page Indexed by X]] | ||
|BB | |BB | ||
|2 byte | |2 byte | ||
|5 cycles | |5 cycles | ||
|+ | |+ | ||
| | |[[Absolute Addressing | Absolute]] | ||
|AC | |AC | ||
|3 bytes | |3 bytes | ||
|5 cycles | |5 cycles | ||
|+ | |+ | ||
| | |[[Implied]] (type 1) | ||
|3D | |3D | ||
|1 byte | |1 byte | ||
|2 cycles | |2 cycles | ||
|+ | |+ | ||
| | |[[Implied]] (type 1) | ||
|FC | |FC | ||
|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: | ||
|} | |} | ||
'''INC''' is an [[SPC700]] instruction that increments the operand. | '''INC''' is an [[SPC700]] instruction that increments the operand by one. | ||
=== See Also === | === See Also === |
Latest revision as of 05:01, 27 November 2023
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | Speed | ||||
Accumulator | BC | 1 byte | 2 cycles | ||||
Direct Page | AB | 2 byte | 4 cycles | ||||
Direct Page Indexed by X | BB | 2 byte | 5 cycles | ||||
Absolute | AC | 3 bytes | 5 cycles | ||||
Implied (type 1) | 3D | 1 byte | 2 cycles | ||||
Implied (type 1) | FC | 1 byte | 2 cycles |
Flags Affected | |||||||
---|---|---|---|---|---|---|---|
N | V | P | B | H | I | Z | C |
. | . | . | . | . | . |
INC is an SPC700 instruction that increments the operand by one.
See Also
External Links
- Official Super Nintendo development manual on INC: Appendix C-7 of Book I