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 high-order half-bytes are zeroed. AAD updates PF, SF and ZF; the content of AF, CF and OF is undefined following execution of AAD.

Encoding:

1101010100001010

AAD Operands Clocks Transfers Bytes AAD Coding Example

(no operands)

60

-

2 AAD

2-50

Page 85
Image 85
Intel 210200-002 manual Ascii Adjust for Division, Description