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
I am running a small minecraft server off of my old mac mini, and am having a big issue. My computer isn''t very good, and even just running this server is an issue. I use a comma

RET : Return from the Procedure:- At each CALL instruction, the register IP and register CS of the next instruction is pushed to stack, before the control is transferred to the

The modes are determined by the contents of the control register, whose format is given in Figure These modes are: Mode 0: If a group is in mode 0, it is divided into 2 sets.

CBW: Convert Signed Byte to Word: This instruction converts a signed byte to a signed word. In other terms, it copies the sign bit of a byte to be converted to all of the bits in

Machine Level Programs In this section, a few machine levels programming instance, rather then, instruction sequences are presented for comparing the 8086 programming with that

;StrNCpyAsm - copy zero terminated string2 to zero terminated string1, ; but copy no more than count (parameter) characters ; or the length of string2, whi

Interrupt System Based on Single 8259 A The 8259A is contained in a 28-pin dual-in-line package that need only a + 5-V supply voltage.  Its organization is shown in given figur

do you have experts that know 4 digit 7_Seg dispaly

Write an assembly language program that defines symbolic constants for all seven days of the week

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