Characteristics of the CMP instructions. - 8086

Mention the characteristics of the CMP instructions.



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

- The CMP instruction can be used to compare two 8-bit or two 16-bit numbers.

- 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.

-The CMP operation is also known as the subtraction method as it uses two`s complement for it.

- 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.

- The operands of CMP instruction may reside in the memory or can be a component of an instruction.
Post your comment