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
(bit 0) |
(linkify status reg) |
||
Line 1: | Line 1: | ||
The '''Carry Flag''' (C) exists on the [[65c816]]. It is bit 0 of the status register. | The '''Carry Flag''' (C) exists on the [[65c816]]. It is bit 0 of the [[status register]]. | ||
It can be set with [[SEC]] and cleared with [[CLC]]. Or, [[SEP]] and [[REP]] can be used. | It can be set with [[SEC]] and cleared with [[CLC]]. Or, [[SEP]] and [[REP]] can be used. |
Revision as of 09:53, 17 July 2024
The Carry Flag (C) exists on the 65c816. It is 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:
See Also
Reference
- Labiak, William. Page 108. https://archive.org/details/Programming_the_65816/page/n118