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 (Super FX): Difference between revisions
From SnesLab
(→References: hid archive URL) |
(2 byte Instructions) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" style="float:right;clear:right;width:60%" | |||
{| class="wikitable" style="float:right;clear:right;width: | |||
!colspan="8"|Basic Info | !colspan="8"|Basic Info | ||
|+ | |+ | ||
Line 12: | Line 10: | ||
|+ | |+ | ||
| | | | ||
| | |3D5n | ||
|2 bytes | |2 bytes | ||
|6 cycles | |6 cycles | ||
Line 18: | Line 16: | ||
|2 cycle | |2 cycle | ||
|+ | |+ | ||
| | |[[Immediate]] | ||
|3F5n | |3F5n | ||
|2 bytes | |2 bytes | ||
Line 27: | Line 25: | ||
{| class="wikitable" style="float:right;clear:right;width:30%" | {| class="wikitable" style="float:right;clear:right;width:30%" | ||
!colspan="9"|Flags | !colspan="9"|Flags Affected | ||
|+ | |+ | ||
|B | |B | ||
|ALT1 | |[[ALT1]] | ||
|ALT2 | |[[ALT2]] | ||
|O/V | |[[O/V]] | ||
|S | |S | ||
|CY | |[[CY]] | ||
|Z | |Z | ||
|+ | |+ | ||
Line 45: | Line 43: | ||
| | | | ||
|} | |} | ||
'''ADC''' (Add with carry) is a [[Super FX]] instruction that performs an addition. The [[source register]] is always the first addend. The second addend may be any of the 16 R registers or an immediate value. The third addend is [[CY]]. The sum is stored in the destination register. | |||
=== See Also === | |||
* [[ADD]] | |||
* [[ADC]] | |||
* [[SUB]] | |||
=== External Links === | === External Links === | ||
Line 52: | Line 57: | ||
[[Category:Super FX]] | [[Category:Super FX]] | ||
[[Category:Arithmetic Operation Instructions]] | [[Category:Arithmetic Operation Instructions]] | ||
[[Category:Two-byte Instructions]] |
Latest revision as of 17:34, 29 November 2023
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
3D5n | 2 bytes | 6 cycles | 6 cycles | 2 cycle | |||
Immediate | 3F5n | 2 bytes | 6 cycles | 6 cycles | 2 cycle |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
0 | 0 | 0 |
ADC (Add with carry) is a Super FX instruction that performs an addition. The source register is always the first addend. The second addend may be any of the 16 R registers or an immediate value. The third addend is CY. The sum is stored in the destination register.
See Also
External Links
- Official Nintendo documentation on ADC: Page 2-9-3 of Book II