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
(→Syntax: added alternate mnemonics) |
(made flags affected more prominent) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 50: | Line 50: | ||
|[[Carry Flag|C]] | |[[Carry Flag|C]] | ||
|+ | |+ | ||
| | |N | ||
|. | |. | ||
|. | |. | ||
Line 56: | Line 56: | ||
|. | |. | ||
|. | |. | ||
|Z | |||
|. | |. | ||
|} | |} | ||
Line 75: | Line 75: | ||
<pre> | <pre> | ||
INA | |||
INX | INX | ||
INY | INY | ||
Line 84: | Line 85: | ||
* [[INX]] | * [[INX]] | ||
* [[INY]] | * [[INY]] | ||
* [[ADC (SPC700)]] | |||
* [[ADC]] | |||
=== External Links === | === External Links === |
Latest revision as of 14:00, 30 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 |
N | . | . | . | . | . | Z | . |
INC is an SPC700 instruction that increments its operand by one.
Syntax
INC A INC dp INC dp+X INC !abs INC X INC Y
The above are official, but some people prefer alternate mnemonics like:
INA INX INY
See Also
External Links
- Official Super Nintendo development manual on INC: Appendix C-7 of Book I
- anomie: https://github.com/yupferris/TasmShiz/blob/master/spc700.txt#L445