We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

Carry Flag: Difference between revisions

From SnesLab
Jump to: navigation, search
(coalesced description)
(mention BCS and BCC)
Line 20: Line 20:
* [[PLP]]
* [[PLP]]
* [[RTI]]
* [[RTI]]
The carry flag influences whether [[BCS]] and [[BCC]] branch or not.


=== See Also ===
=== See Also ===

Revision as of 13:25, 22 July 2024

The Carry Flag (C) exists on the 65c816 as bit 0 of the status register.

It can be set with SEC and cleared with CLC. Or, SEP and REP can be used.

The following other 10 instructions have side effects that directly affect the carry flag:

The following two instructions indirectly affect the carry flag by loading the status register:

The carry flag influences whether BCS and BCC branch or not.

See Also

Reference