SAHF STORE REGISTER AH SAHF

INTO FLAGS

Operation:

Flags Affected:

I

AF, CF, PF, SF, ZF

(SF):(ZF):X:(AF):X:(PF):X:(CF) - (AH)

Description:

SAHF

SAHF (store register AH into flags) transfers bits 7, 6, 4, 2 and 0 from register AH into SF, ZF, AF, PF and CF, respectively, replacing whatever values these flags previously had. OF, DF, IF and TF are not affected. This instruction is provided for 8080/8085 compatibility.

Encoding:

1100111101

SAHF Operands Clocks Transfers Bytes SAHF Coding Example

(no operands)

4

-

1

SAHF

2-142

Page 177
Image 177
Intel 210200-002 manual Sahf Store Register AH Sahf Into Flags, 1100111101