Load Register AH from Flags                         

86/88

Y

186

Y

286

Y

386

Y

486

Y

LAHF

Ovfl

N

Dir

N

Int

N

Trap

N

Sign

N

Zero

N

Aux

N

Prty

N

Carry

N

    LAHF copies the five 8080/8085 flags (Sign, Zero, Auxiliary Carry,
    Parity, and Carry) into bits 7, 6, 4, 2, and 0, respectively, of the
    AH register. The flags themselves are unchanged by this instruction.

       Notes:         This instruction is primarily used to provide upward
                      compatibility between the 8080/8085 family and the
                      8086 family.

                      After this instruction is executed, bits 1, 3 and 5
                      of AH are undefined.

------------------------------------ Timing ----------------------------------

OpCode          Instruction             386     286     86
9F              LAHF                    2       2       4

------------------------------------ Logic -----------------------------------

        AH Bits <--- Flags
        7 6 4 2 0    S Z A P C

See Also SAHF PUSHF POPF Flags


Copyright © 1985 to 2022 Beta Systems                            Last modified: Wednesday, January 05, 2022 .