Instruction Set Listing
3-7
Unpacked-Decimal Adjustment Instructions
Packed-Decimal Adjustment Instructions
Consider using decimal arithmetic instead of binary arithmetic under the following
circumstances:
n
When the numbers you are using represent only decimal quantities.
Manipulating numbers in binary and converting them back and forth between binary and
decimal can introduce rounding errors.
n
When you need to read or write many ASCII numbers.
Converting a number between ASCII and decimal is simpler than converting it between
ASCII and binary.
3.1.8
Flag
Single-Flag Instructions
Multiple-Flag Instructions
Mnemonic
Name
See Page
AAA
ASCII Adjust AL After Addition
AAD
ASCII Adjust AX Before Division
AAM
ASCII Adjust AL After Multiplication
AAS
ASCII Adjust AL After Subtraction
Mnemonic
Name
See Page
DAA
Decimal Adjust AL After Addition
DAS
Decimal Adjust AL After Subtraction
Mnemonic
Name
See Page
CLC
Clear Carry Flag
CLD
Clear Direction Flag
CLI
Clear Interrupt-Enable Flag
CMC
Complement Carry Flag
RCL
Rotate through Carry Left
RCR
Rotate through Carry Right
STC
Set Carry Flag
STD
Set Direction Flag
STI
Set Interrupt-Enable Flag
Mnemonic
Name
See Page
POPF
Pop Flags from Stack
SAHF
Store AH in Flags
Summary of Contents for Am186 Series
Page 1: ...Am186 and Am188 Family Instruction Set Manual February 1997...
Page 10: ...Table of Contents x...
Page 18: ...Programming 1 8...
Page 40: ...Instruction Set Listing 3 14...