Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- iAPx86 - <b>sahf store register ah into flags flags: o d i t s z a p c</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SAHF            Store Register AH into Flags         Flags: O D I T S Z A P C
                                                            - - - - * * * * *
SAHF

        Logic   Flag-reg bits   .     AH bits
                  S Z A P C     .    7 6 4 2 0

    SAHF copies bits 7, 6, 4, 2, and 0 from the AH register into the
    low byte of the flags register, replacing the previous values of
    the Sign, Zero, Auxiliary Carry, Parity, and the Carry flags.

    No other flags are changed by this instruction.


    Opcode      Format
    9E          SAHF


    Length and timing
    Operands    Bytes   8088    186     286     386     486     Pentium
    -            1       4       3       2       3       2       2   NP

See Also: LAHF POPF SETcc CLC STC CLD STD CLI STI Flags

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson