lahf
Load ah from flags
Copies the low byte of rflags into ah.
8086 and later
CFPFAFZFSFDFOF –––––––
- Changes no flag
- Reads CF PF AF ZF SF
Forms
lahf
global _start
section .text
_start:
mov rax, 12
mov rbx, 5
mov rcx, 3
mov rsi, 9
lahf
mov rax, 60 ; syscall 60: exit
xor rdi, rdi
syscall