cmc
Complement carry flag
Complements the carry flag, setting it to 1 if it was 0 and to 0 if it was 1.
8086 and later
CFPFAFZFSFDFOF ●––––––
- ● set from the result
- – not changed
- Reads CF
Forms
cmc
global _start
section .text
_start:
mov rax, 12
mov rbx, 5
mov rcx, 3
mov rsi, 9
cmc
mov rax, 60 ; syscall 60: exit
xor rdi, rdi
syscall