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
(Labiak link) |
(list of instructions that affect it) |
||
Line 1: | Line 1: | ||
The '''Carry Flag''' exists on the [[65c816]]. | The '''Carry Flag''' exists on the [[65c816]]. | ||
It can be set with [[SEC]] and cleared with [[CLC]]. | 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: | |||
* [[ADC]] | |||
* [[ASL]] | * [[ASL]] | ||
* [[CMP]] | |||
* [[CPX]] | |||
* [[CPY]] | |||
* [[LSR]] | * [[LSR]] | ||
* [[ROL]] | |||
* [[ROR]] | * [[ROR]] | ||
* [[ | * [[SBC]] | ||
* [[XCE]] | |||
The following two instructions indirectly affect the carry flag by loading the [[status register]]: | |||
* [[PLP]] | |||
* [[RTI]] | |||
=== Reference === | === Reference === |
Revision as of 08:52, 7 December 2023
The Carry Flag exists on the 65c816.
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:
Reference
- Labiak, William. https://archive.org/details/Programming_the_65816/page/n118