From NES Hacker Wiki
Revision as of 09:05, 28 January 2019 by TheAlmightyGuru (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Clear Carry Flag
Opcode: CLC
Operation: 0 → C
Status Register: Status-List.png

CLC (Clear Carry Flag) clears the Carry Flag in the Processor Status Register by setting the 0th bit 0. To set the carry flag, use SEC. Clearing the carry flag should be done prior to any instruction that might set it where you might need to read the carry flag's value after the instruction.


This pseudo C code shows how the CLC opcode functions when it is executed.

SET_CARRY((0));               // Set the 0th bit of the processor status to 0.

Addressing Modes

Addressing Mode Assembly Language Form Opcode # Bytes # Cycles
Implied CLC 18 1 2