Instruction Set
4-16
ADD
ADD
The microcontroller does not provide an instruction that performs decimal addition. To add
decimal numbers, use ADD to perform binary addition, and then convert the result to decimal
using AAA or DAA.
ADC, ADD, SBB, and SUB set AF when the result needs to be converted for decimal
arithmetic. AAA, AAS, DAA, and DAS use AF to determine whether an adjustment is
needed. This is the only use for AF.
Related Instructions
If you want to
See
Convert an 8-bit unsigned binary sum to its unpacked decimal equivalent
AAA
Add two numbers and the value of CF
ADC
Convert an 8-bit integer to its 16-bit equivalent
CBW
Convert an 8-bit unsigned binary sum to its packed decimal equivalent
DAA
Add 1 to a number
INC
Change the sign of an integer
NEG
Содержание Am186 Series
Страница 1: ...Am186 and Am188 Family Instruction Set Manual February 1997...
Страница 10: ...Table of Contents x...
Страница 18: ...Programming 1 8...
Страница 40: ...Instruction Set Listing 3 14...