-
Notifications
You must be signed in to change notification settings - Fork 98
CMC
Henk-Jan Lebbink edited this page Jun 5, 2018
·
12 revisions
CMC — Complement Carry Flag
Opcode | Instruction | Op/ En | 64-bit Mode | Compat/ Leg Mode | Description |
F5 | CMC | ZO | Valid | Valid | Complement CF flag. |
Op/En | Operand 1 | Operand 2 | Operand 3 | Operand 4 |
ZO | NA | NA | NA | NA |
Complements the CF flag in the EFLAGS register. CMC operation is the same in non-64-bit modes and 64-bit mode.
EFLAGS.CF[bit 0]← NOT EFLAGS.CF[bit 0];
The CF flag contains the complement of its original value. The OF, ZF, SF, AF, and PF flags are unaffected.
#UD If the LOCK prefix is used.
Source: Intel® Architecture Software Developer's Manual (May 2018)
Generated: 5-6-2018