Intel 80286, 80287 manual D4 OA, Aam

Models: 80287 80286

1 515
Download 515 pages 45.04 Kb
Page 227
Image 227

THE 80286 INSTRUCTION SET

AAM - ASCII Adjust AX After Multiply ·

OpcodeInstruction ClocksDescription

D4 OA

AAM

16

ASCII adjust AX after multiply

FLAGS MODIFIED

Sign, zero, parity

FLAGS UNDEFINED

Overflow, auxiliary carry, carry

OPERATION

AAM should be used only after executing a MUL instruction between two unpacked BCD digits, leaving the result in the AX register. Since the result is less than one hundred, it is contained cntirely in the AL register. AAM unpacks the AL result by dividing AL by ten, leaving the quotient (most significant digit) in AH, and the remainder (least significant digit) in AL.

PROTECTED MODE EXCEPTIONS

None

REAL ADDRESS MODE EXCEPTIONS

None

8-17

Page 227
Image 227
Intel 80286, 80287 manual D4 OA, Aam