SAHF
STORE REGISTER
AH
INTO FLAGS
Operation:
I
(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
Flags Affected:
AF,
CF,
PF, SF, ZF
SAHF
SAHF Operands Clocks Transfers Bytes SAHF Coding Example
(no
operands)
4 - 1 SAHF
2-142