add directory study
This commit is contained in:
48
study/Ref-docs/manual Intel386/I386Manual/AAD.HTM
Normal file
48
study/Ref-docs/manual Intel386/I386Manual/AAD.HTM
Normal file
@@ -0,0 +1,48 @@
|
||||
<html><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>80386 Programmer's Reference Manual -- Opcode AAD</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="AAA.HTM" tppabs="http://webster.cs.ucr.edu/Page_TechDocs/Doc386/AAA.HTM"> AAA ASCII Adjust after Addition</a><br>
|
||||
<b>next:</b><a href="AAM.HTM" tppabs="http://webster.cs.ucr.edu/Page_TechDocs/Doc386/AAM.HTM"> AAM ASCII Adjust AX after Multiply</a>
|
||||
<p>
|
||||
<hr>
|
||||
<p>
|
||||
<h1>AAD -- ASCII Adjust AX before Division</h1>
|
||||
<pre>
|
||||
|
||||
|
||||
|
||||
Opcode Instruction Clocks Description
|
||||
|
||||
D5 0A AAD 19 ASCII adjust AX before division
|
||||
</pre>
|
||||
<h2>Operation</h2>
|
||||
<pre>
|
||||
|
||||
|
||||
|
||||
AL := AH * 10 + AL;
|
||||
AH := 0;
|
||||
</pre>
|
||||
<h2>Description</h2>
|
||||
AAD is used to prepare two unpacked BCD digits (the least-significant digit in AL, the most-significant digit in AH) for a division operation that will yield an unpacked result. This is accomplished by setting AL to AL + (10 * AH), and then setting AH to 0. AX is then equal to the binary equivalent of the original unpacked two-digit number.
|
||||
<h2>Flags Affected</h2>
|
||||
SF, ZF, and PF as described in <a href="APPC.HTM" tppabs="http://webster.cs.ucr.edu/Page_TechDocs/Doc386/APPC.HTM">Appendix C</a>; OF, AF, and CF are undefined
|
||||
<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="AAA.HTM" tppabs="http://webster.cs.ucr.edu/Page_TechDocs/Doc386/AAA.HTM"> AAA ASCII Adjust after Addition</a><br>
|
||||
<b>next:</b><a href="AAM.HTM" tppabs="http://webster.cs.ucr.edu/Page_TechDocs/Doc386/AAM.HTM"> AAM ASCII Adjust AX after Multiply</a>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user