STC
Set Carry Flag
stableVMJITAOTinstruction
Encodings
| Opcode | Instruction | Op/En | 64-bit | Compat/Legacy | Description |
|---|---|---|---|---|---|
F9 | STC | ZO | Valid | Valid | Set CF flag. |
Measured cost
Loading measurements from arch-data...
Flags named
CFCarryPFParityAFAuxiliary carryZFZeroSFSignOFOverflow
Description
Sets the CF flag in the EFLAGS register. Operation is the same in all modes.
Operation
CF := 1;Flags affected
The CF flag is set. The OF, ZF, SF, AF, and PF flags are unaffected.
Exceptions
Real address mode
#UD | If the LOCK prefix is used. |
Protected 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. |
64-bit mode
#UD | If the LOCK prefix is used. |