SAHF sets the low byte of the flags word according to the
contents of the AH register.
The operation of SAHF is:
AH --> SF:ZF:0:AF:0:PF:1:CF
See also LAHF (LAHF).
SAHF sets the low byte of the flags word according to the
contents of the AH register.
The operation of SAHF is:
AH --> SF:ZF:0:AF:0:PF:1:CF
See also LAHF (LAHF).
Every form of sahf the assembler accepts, from NASM's own instruction table.
The second column is the processor that introduced the form; a badge marks a form that needs
an extension, that is lockable, or that long mode dropped.
| Form | Since | Notes |
|---|---|---|
| sahf | 8086 |