sahf

8086 and later

Store AH into Flags

sahf

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).

Loading...

Forms

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.

FormSinceNotes
sahf 8086