CLC

From NES Hacker Wiki
Revision as of 15:01, 11 April 2014 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
Status-Ignore.pngStatus-Space.pngStatus-Ignore.pngStatus-Space.pngStatus-Clear.pngStatus-Space.pngStatus-Ignore.pngStatus-Space.pngStatus-Ignore.pngStatus-Space.pngStatus-Ignore.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.

Operation

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

Examples