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
Jump to: navigation, search
m (pluralize bytes)
(→‎External Links: added anomie link)
Line 80: Line 80:
=== External Links ===
=== External Links ===
* Official Super Nintendo development manual on INC: [https://archive.org/details/SNESDevManual/book1/page/n232 Appendix C-7 of Book I]
* Official Super Nintendo development manual on INC: [https://archive.org/details/SNESDevManual/book1/page/n232 Appendix C-7 of Book I]
* anomie: https://github.com/yupferris/TasmShiz/blob/master/spc700.txt#L445


[[Category:ASM]]
[[Category:ASM]]
[[Category:SPC700]]
[[Category:SPC700]]
[[Category:Addition and Subtraction Commands]]
[[Category:Addition and Subtraction Commands]]

Revision as of 21:58, 13 July 2024

Basic Info
Addressing Mode Opcode Length Speed
Accumulator BC 1 byte 2 cycles
Direct Page AB 2 bytes 4 cycles
Direct Page Indexed by X BB 2 bytes 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.

Syntax

INC A
INC dp
INC dp+X
INC !abs
INC X
INC Y

See Also

External Links