Intel 210200-002 manual Aam, Ascii Adjust AAM for Multiply

Models: 210200-002

1 354
Download 354 pages 14.88 Kb
Page 86
Image 86

AAM

Operation:

(AH) ~ (AL) / OAH (AL) ~ (AL) % OAH

Description:

ASCII ADJUST AAM FOR MULTIPLY

Flags Affected:

PF, SF, ZF.

AF, CF, OF undefined

AAM (ASCII Adjust for Multiply) corrects the result of a previous multiplication of two valid unpacked decimal operands. A valid 2- digit unpacked decimal number is derived from the content of AH and AL and is

returned to AH and AL. The high-order half- bytes of the multiplied operands must have been OH for AAM to produce a correct result. AAM updates PF, SF and ZF; the content of AF, CF and OF is undefined following execu- tion of AAM.

Encoding:

1101010000001010

AAM Operands Clocks Transfers Bytes AAM Coding Example

(no operands)

83

-

2 AAM

2-51

Page 86
Image 86
Intel 210200-002 manual Aam, Ascii Adjust AAM for Multiply