CLC: Clear Carry Flag

For information about interpreting this page, see the help page.
Opcode and MnemonicEncoding16 bit Mode32 bit Mode64 bit ModeDescription
F8
CLC
ZOValidValidValidClear the CF flag.

Encoding

EncodingOperand
ZONone

Description

The CLC instruction clears the CF (carry) flag in the EFLAGS register.

Operation

This pseudo-code uses C# syntax. A list of the types used is available here.
public void CLC()
{
  CF = 0;
}

Flags Affected

CF (carry flag)
Cleared.
PF (parity flag)
Unmodified.
AF (auxiliary flag)
Unmodified.
ZF (zero flag)
Unmodified.
SF (sign flag)
Unmodified.
OF (overflow flag)
Unmodified.

Exceptions

Protected Mode

#UD
If the LOCK prefix is used.

Real-Address Mode

#UD
If the LOCK prefix is used.

Virtual-8086 Mode

#UD
If the LOCK prefix is used.

Compatibility Mode

#UD
If the LOCK prefix is used.

Long Mode

#UD
If the LOCK prefix is used.