Chapter 5

Chapter 5 - ADD Instruction ADD destination,source...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 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] ADC Instruction ADC destination,source destination = destination + source + carry ADC DX,BX ADC COUNT,ECX ADC EAX,ARRAY[EBX][ESI] 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. INC Instruction INC operand operand = operand + 1 INC BX INC COUNT INC DWORD PTR [EBX] 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] SBB Instruction SBB destination,source destination = destination - source - carry SBB DX,BX SBB COUNT,ECX SBB EAX,ARRAY[EBX][ESI] DEC Instruction DEC operand operand = operand - 1 DEC BX DEC COUNT DEC DWORD PTR [EBX] CMP Instruction CMP operand1,operand2 operand1 - operand2 Flags are updated and the result is discarded....
View Full Document

Page1 / 27

Chapter 5 - ADD Instruction 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