
AAD
ASCII ADJUST FOR DIVISION
AAD
Operation: | Flags Affected: |
(AL) ~ (AH) * OAH + (AL) | PF, SF, ZF. |
(AH) +- 0 | AF, CF, OF undefined |
Description:
AAD (ASCII Adjust for Division) modifies the numerator in AL before dividing two valid unpacked decimal operands so that the quo- tient produced by the division will be a valid unpacked decimal number. AH must be zero
for the subsequent DIY to produce the correct result. The quotient is returned in AL, and the remainder is returned in AH; both
Encoding:
1101010100001010
AAD Operands Clocks Transfers Bytes AAD Coding Example
(no operands) | 60 | - | 2 AAD |