Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>lahf load register ah from flags flags: not altered</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LAHF             Load Register AH from Flags         Flags: not altered

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

    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.

  --------------------------------------------------------------------------
   Operands                  Clocks   Transfers  Bytes   Example
   no operands                 4          -        1     LAHF
  --------------------------------------------------------------------------

       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.

See Also: SAHF PUSHF POPF

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