Files
oldlinux-files/Ref-docs/manual Intel386/I386Manual/LAHF.HTM
2024-02-19 00:21:47 -05:00

48 lines
1.6 KiB
HTML

<html><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>80386 Programmer's Reference Manual -- Opcode LAHF</title>
</head>
<body>
<b>up:</b> <a href="C17.HTM" tppabs="http://webster.cs.ucr.edu/Page_TechDocs/Doc386/C17.HTM">Chapter 17 -- 80386 Instruction Set</a><br>
<b>prev:</b><a href="JMP.HTM" tppabs="http://webster.cs.ucr.edu/Page_TechDocs/Doc386/JMP.HTM"> JMP Jump</a><br>
<b>next:</b><a href="LAR.HTM" tppabs="http://webster.cs.ucr.edu/Page_TechDocs/Doc386/LAR.HTM"> LAR Load Access Rights Byte</a>
<p>
<hr>
<p>
<h1>LAHF -- Load Flags into AH Register</h1>
<pre>
Opcode Instruction Clocks Description
9F LAHF 2 Load: AH := flags SF ZF xx AF xx PF xx CF
</pre>
<h2>Operation</h2>
<pre>
AH := SF:ZF:xx:AF:xx:PF:xx:CF;
</pre>
<h2>Description</h2>
LAHF transfers the low byte of the flags word to AH. The bits, from MSB to LSB, are sign, zero, indeterminate, auxiliary, carry, indeterminate, parity, indeterminate, and carry.
<h2>Flags Affected</h2>
None
<h2>Protected Mode Exceptions</h2>
None
<h2>Real Address Mode Exceptions</h2>
None
<h2>Virtual 8086 Mode Exceptions</h2>
None
<p>
<hr>
<p><b>up:</b> <a href="C17.HTM" tppabs="http://webster.cs.ucr.edu/Page_TechDocs/Doc386/C17.HTM">Chapter 17 -- 80386 Instruction Set</a><br>
<b>prev:</b><a href="JMP.HTM" tppabs="http://webster.cs.ucr.edu/Page_TechDocs/Doc386/JMP.HTM"> JMP Jump</a><br>
<b>next:</b><a href="LAR.HTM" tppabs="http://webster.cs.ucr.edu/Page_TechDocs/Doc386/LAR.HTM"> LAR Load Access Rights Byte</a>
</body>