Explain the CMP instruction.
CMP: The comparison instruction is a subtraction which changes only the flag bits; the destination operand certainly not changes. A comparison is helpful for checking the whole contents of a register or a memory location against other value. A CMP is usually followed by a conditional jump instruction that tests the condition of the flag bits.