* remove "\r" nonsense
[mascara-docs.git] / i386 / i386.reference / SAHF.htm
blob07fdf47c7bfa4e7622a5ecc2321704313c3c2d04
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2 <HTML>
3 <HEAD>
4 <TITLE>80386 Programmer's Reference Manual -- Opcode SAHF</TITLE>
5 </HEAD>
6 <BODY>
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>
11 <P>
12 <HR>
13 <P>
14 <H1>SAHF -- Store AH into Flags</H1>
16 <PRE>
17 Opcode Instruction Clocks Description
19 9E SAHF 3 Store AH into flags SF ZF xx AF xx PF xx CF
20 </PRE>
22 <H2>Operation</H2>
24 <PRE>
25 SF:ZF:xx:AF:xx:PF:xx:CF := AH;
26 </PRE>
28 <H2>Description</H2>
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>
39 None
41 <H2>Real Address Mode Exceptions</H2>
43 None
45 <H2>Virtual 8086 Mode Exceptions</H2>
47 None
50 <P>
51 <HR>
52 <P>
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>
57 </BODY>