NASM 2.05 based x86 Instruction Reference
[ch041]
A.5.22 CMC: Complement Carry Flag CMC ; F5 [8086] CMC changes the value of the carry flag: if it was 0, it sets it to 1, and vice versa.