AAA ASCII ADJUST AAA

FOR ADDITION

Operation:

Flags Affected:

if ((AL) & OFH) >9 or (AF) = 1 then (AL) ~ (AL) + 6

(AH) ~ (AH) + 1 (A F) ~ 1

(CF) ~ (AF)

(AL) ~ (AL) & OFH

AF, CF.

OF, PF, XF, ZF undefined

Description:

AAA(ASCII Adjust for Addition) changes the contents of register AL to a valid unpacked decimal number; the high-order half-byte is zeroed. AAA updates AF and CF; the content of OF, PF, SF and ZF is undefined following execution of AAA.

Encoding:

100110111 I

AAA Operands Clocks Transfers Bytes AAA Coding Example

(no operands)

4

-

1 AAA

2-49

Page 84
Image 84
Intel 210200-002 manual AAA Ascii Adjust AAA For Addition, Operation Flags Affected