<<< SUB vs. DEC | Index | Unconditional Jumps >>> |
Format:
cmp destination, source
Semantics:
(destination) - (source)
The destination and source are not altered.
Useful to test relationship such as < > or = between the two operands.
Used in conjunction with conditional jump instructions for decision making purposes.
Examples:
cmp ebx, eax je done ; jump if equal .. done: ..
<<< SUB vs. DEC | Index | Unconditional Jumps >>> |