Z8 Microcontrollers
ZiLOG Instruction Descriptions and Formats
UM001601-0803 12-19
CCF
COMPLEMENT CARRY FLAG
CCF
Complement Carry Flag
CCF
Instruction Format:
Operation:
C <— NOT C
The C Flag is complemented. If C = 1, then it is changed to C = 0; or, if C = 0, then it is changed to C = 1.
Example:
If the C Flag contains a 0, the statement:
CCF
Op Code: EF
will change the C Flag from C = 0 to C = 1.
Flags: C: Complemented
Z: Unaffected
S: Unaffected
V: Unaffected
D: Unaffected
H: Unaffected