1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML 2.0//EN">
4 <TITLE>80386 Programmer's Reference Manual -- Opcode SAHF
</TITLE>
7 <B>up:
</B> <A HREF=
"c17.htm">
8 Chapter
17 --
80386 Instruction Set
</A><BR>
9 <B>prev:
</B><A HREF=
"RET.htm"> RET Return from Procedure
</A><BR>
10 <B>next:
</B><A HREF=
"SAL.htm"> SAL/SAR/SHL/SHR Shift Instructions
</A>
14 <H1>SAHF -- Store AH into Flags
</H1>
17 Opcode Instruction Clocks Description
19 9E SAHF
3 Store AH into flags SF ZF xx AF xx PF xx CF
25 SF:ZF:xx:AF:xx:PF:xx:CF := AH;
30 SAHF loads the flags listed above with values from the AH register,
31 from bits
7,
6,
4,
2, and
0, respectively.
33 <H2>Flags Affected
</H2>
35 SF, ZF, AF, PF, and CF as described above
37 <H2>Protected Mode Exceptions
</H2>
41 <H2>Real Address Mode Exceptions
</H2>
45 <H2>Virtual
8086 Mode Exceptions
</H2>
53 <B>up:
</B> <A HREF=
"c17.htm">
54 Chapter
17 --
80386 Instruction Set
</A><BR>
55 <B>prev:
</B><A HREF=
"RET.htm"> RET Return from Procedure
</A><BR>
56 <B>next:
</B><A HREF=
"SAL.htm"> SAL/SAR/SHL/SHR Shift Instructions
</A>