assembly - Lecture on Arithmetic Instructions The ADD, ADC,...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Lecture on Arithmetic Instructions The ADD, ADC, INC, AAA, DAA Instructions: The instruction set of the 8088/8086 microprocessor contains a set of arithmetic instructions. These include instructions for addition, subtraction, multiplication, and division operation. The form of each of the addition instructions is shown in the following table: Mnemonic Meaning Format Operation Flags affected ADD Addition ADD D,S (S)+(D) (D) carry (CF) ALL INC Increment by one INC D (D)+1 (D) ALL but CY AAA ASCII adjust for addition AAA If the sum is >9, AH is incremented by 1 AF,CF ADC Add with carry ADC D,S (S)+(D)+(CF) (D) carry (CF) ALL DAA Decimal adjust for addition DAA Adjust AL for decimal Packed BCD ALL
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The destination on all addition instructions can not be immediate number and no memory to memory can be added. Example: Assume that AX and BX registers contain 1100H and 0ABCH, respectively. What is the result of executing the instruction ADD AX, BX The content of the source (BX) will be added to the content of the destination (AX) to give 0ABC + 1100 = 1BBC in the destination AX. The process of executing this instruction is shown in the following figures.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 10

assembly - Lecture on Arithmetic Instructions The ADD, ADC,...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online