Mention how do the following instructions differ in their functionality
SUB: It performs changes the destination operand and the subtraction operation.
CMP: Comparison instruction is a subtraction which changes only the flag bits; this destination operand never changes.