8 - Chapter 8 Arithmetic and Logic Instructions 1 Addition...

Info icon This preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Chapter 8 Arithmetic and Logic Instructions
Image of page 1

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

View Full Document Right Arrow Icon
2 Addition The ADD instruction is used for binary addition. The addition causes the flag bits to change. Addition can be 8-, 16-, and 32-bits. All of the addressing modes are used by addition. ADD AL,BL ;AL=AL+BL ADD EAX,EBX ;EAX = EAX + EBX ADD CL, 44H ;CL=CL+44H
Image of page 2
3 Addition • The program adds two consecutive bytes of data stored at the data segment offset address NUMB and NUMB+1 to the AL register. •DI= offset address of NUMB •[DI]= contents of the data segment memory location addressed by DI.
Image of page 3

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

View Full Document Right Arrow Icon