Chapter 5

Chapter 5 - ADDInstruction ADD destination,source...

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

View Full Document Right Arrow Icon
ADD Instruction ADD destination,source destination = destination + source ADD AX,BX ADD SUM,EAX ADD EDX,ARRAY[EBX][ESI] ADD CL,5 ADD DL,[BX]
Background image of page 1

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

View Full DocumentRight Arrow Icon
ADC Instruction ADC destination,source destination = destination + source + carry ADC DX,BX ADC COUNT,ECX ADC EAX,ARRAY[EBX][ESI]
Background image of page 2
XADD Instruction XADD destination,source destination = destination + source Source = original destination Assume: BX = 0AH DX = 11H After XADD DX,BX is executed: BX = 1BH DX = 0AH 80486 and Pentium instruction.
Background image of page 3

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

View Full DocumentRight Arrow Icon
INC Instruction   INC operand operand = operand + 1 INC BX INC COUNT INC DWORD PTR [EBX]
Background image of page 4
SUB Instruction SUB destination,source destination = destination - source SUB AX,BX SUB SUM,EAX SUB EDX,ARRAY[EBX][ESI] SUB CL,5 SUB DL,[BX]
Background image of page 5

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

View Full DocumentRight Arrow Icon
SBB Instruction SBB destination,source destination = destination - source - carry SBB DX,BX SBB COUNT,ECX SBB EAX,ARRAY[EBX][ESI]
Background image of page 6
DEC Instruction   DEC operand operand = operand - 1 DEC BX DEC COUNT DEC DWORD PTR [EBX]
Background image of page 7

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

View Full DocumentRight Arrow Icon
CMP operand1,operand2 operand1 - operand2 Flags are updated and the result is discarded. CMP AL,BL
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 27

Chapter 5 - ADDInstruction ADD destination,source...

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

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