
AAS ASCII ADJUST AAS
FOR SUBTRACTION
Operation: | Flags Affected: |
if ((AL) & OFH) >9 or (AF) = 1 then | AF,CF. |
(AL) +- (AL) - 6 | OF, PF, SF, ZF undefined |
(AH) +- |
|
(AF) |
|
(CF) +- (AF) |
|
(AL) ~ (AL) & OFH |
|
Description:
AAS (ASCII Adjust for Subtraction) corrects the result of a previous subtraction of two valid unpacked decimal operands (the destina- tion operand must have been specified as
register AL). AAS changes the content of AL to a valid unpacked decimal number; the high- order
Encoding:
1001111111
AAS Operands Clocks Transfers Bytes AAS Coding Example
(no operands) | 4 | - | 1 AAS |