Cmp-arithmetic instruction-microprocessor, Assembly Language

CMP: Compare: - This instruction compares the source operand, which can be a register or memory location an immediate data with a destination operand that might be a register or a memory location. For the purpose of comparison, it subtracts the  source  operand  from  the destination  operand  but does  not stock up the result anywhere. The flags are affected and depending on the result of the subtraction. If both of the operands are equal to zero flag is set. If the source operand is higher than the destination operand, carry flag is set or else is reset. The instance of this instruction are following:

Example :

1. CMP      BX,         0100H          Immediate

2. CMP      0100                          Immediate [AX implicit]

3. CMP      [5000H],OIOOH          Direct

4. CMP      BX,         [SI]               Register indirect

5. CMP      BX,         CX                Register

 

Posted Date: 10/12/2012 1:33:15 AM | Location : United States







Related Discussions:- Cmp-arithmetic instruction-microprocessor, Assignment Help, Ask Question on Cmp-arithmetic instruction-microprocessor, Get Answer, Expert's Help, Cmp-arithmetic instruction-microprocessor Discussions

Write discussion on Cmp-arithmetic instruction-microprocessor
Your posts are moderated
Related Questions
Sum of series of 10 numbers and store result in memory location total

A good starting point for your program is the toupper.asm program shown in class. It already queries the user for input and sets up a loop that looks at each character of the input

Ask question #MinimuWHAT ARE CONSTANTS AND WHAT DO THEY DO?m 100 words accepted#

Write a procedure to read a text file and copy its contents to another text file using 8086 assembly language .

64-bit integer calculator, which processes using 16-bits at a time (reg/mem16 operands)

write a program assembly language for adding two 3*3 matrix

DEC : A powerful new Alpha 64 bit RISC computer chip was introduced in the year 1977, as new VAX (Virtual Address Extension) Computer. The VAX was 32 bit computer line based on

LDS/LES Instruction execution :  LAHF : Load AH from Lower Byte of Flag: - This instruction loads the AH register with the lower byte of the flag register. This instruction ca


1) Write an 80x86 assembly language program in EXE file format to do the following tasks: a) Open and read the contents of a file into memory (use at least 1 kB). b) Sort the li