Intel 80287, 80286 manual AAD Ascii Adjust AX Before Division, Aao

Models: 80287 80286

1 515
Download 515 pages 45.04 Kb
Page 226
Image 226

THE 80286 INSTRUCTION SET

AAD - ASCII Adjust AX Before Division

OpcodeInstruction ClocksDescription

05 OA

AAO

14

ASCII adjust AX before division

FLAGS MODIFIED

Sign, zero, parity

FLAGS UNDEFINED

Overflow, auxiliary carry, carry

OPERATION

AAD is used to prepare two unpacked BCD digits (least significant in AL, most significant in AH) for a division operation which will yield an unpacked result. This is accomplished by setting AL to AL + (10 X AH), and then setting AH to O. This leaves AX equal to the binary equivalent of the original unpacked 2-digit number.

PROTECTED MODE EXCEPTIONS

None

REAL ADDRESS MODE EXCEPTIONS

None

8-16

Page 226
Image 226
Intel 80287, 80286 manual AAD Ascii Adjust AX Before Division, Aao