cli
Clear interrupt flag
Clears the interrupt flag, disabling maskable interrupts.
8086 and later
CFPFAFZFSFIFDFOF –––––●––
- ● set from the result
- – not changed
Forms
cli
Only privileged code may do this, such as an operating-system kernel: in a Linux program cli raises a general-protection fault, which the program receives as a segmentation fault. sti sets the flag again.
global _start
section .text
_start:
mov rax, 12
mov rbx, 5
mov rcx, 3
mov rsi, 9
cli
mov rax, 60 ; syscall 60: exit
xor rdi, rdi
syscall