We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
ADC (SPC700): Difference between revisions
From SnesLab
(→See Also: ADDW) |
(direct page admode) |
||
Line 17: | Line 17: | ||
|3 cycles | |3 cycles | ||
|+ | |+ | ||
| | |[[Direct Page Addressing | Direct Page]] | ||
|84 | |84 | ||
|2 bytes | |2 bytes |
Revision as of 18:29, 23 July 2023
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | Speed | ||||
immediate | 88 | 2 bytes | 2 cycles | ||||
86 | 1 byte | 3 cycles | |||||
Direct Page | 84 | 2 bytes | 3 cycles | ||||
94 | 2 bytes | 3 cycles | |||||
85 | 3 bytes | 4 cycles | |||||
95 | 3 bytes | 5 cycles | |||||
96 | 3 bytes | 5 cycles | |||||
87 | 2 bytes | 6 cycles | |||||
97 | 2 bytes | 6 cycles | |||||
99 | 1 byte | 5 cycles | |||||
89 | 3 bytes | 6 cycles | |||||
98 | 3 bytes | 5 cycles |
Flags Clobbered | |||||||
---|---|---|---|---|---|---|---|
N | V | P | B | H | I | Z | C |
. | . | . |
ADC (Add with Carry) is an SPC700 instruction that adds the value of the two operands together (along with the carry flag) and stores the sum in the left operand. Often, the left operand is the accumulator.
See Also
External Links
- Official Super Nintendo development manual on ADC: Appendix C-5 of Book I