sti
Set interrupt flag
Sets the interrupt flag, enabling maskable interrupts.
8086 and later
CFPFAFZFSFIFDFOF –––––●––
- ● set from the result
- – not changed
Forms
sti
Like cli, only privileged code may do this: in a Linux program sti raises a general-protection fault, which the program receives as a segmentation fault.
global _start
section .text
_start:
mov rax, 12
mov rbx, 5
mov rcx, 3
mov rsi, 9
sti
mov rax, 60 ; syscall 60: exit
xor rdi, rdi
syscall