1.

Mention The Characteristics Of The Cmp Instructions.?

Answer»

The various characteristics of the Compare (CMP) instruction are as follows:

  1. The CMP instruction can be used to compare TWO 8-bit or two 16-bit numbers.
  2. Whenever a compare operation is performed the result of such an operation reflects in one of the six status flags CF, AF, OF, PF, SF and ZF.
  3. The CMP operation is also known as the subtraction method as it uses two`s COMPLEMENT for it.
  4. The result of a CMP operation is never saved but corresponding to the result of the instruction the flag statuses may be changed or RESET.
  5. The operands of CMP instruction may reside in the MEMORY or can be a component of an instruction.

The various characteristics of the Compare (CMP) instruction are as follows:



Discussion

No Comment Found