CMP Instruction
CMP — Compare |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
When two operands are compared, the Zero and Carry flags indicate the relation between operands.
|
|
|
If two operands being compared are assumed to be signed, the Sign, Zero, and Overflow flags indicate the relations between operands.
|
|
“I’m not arguing, I’m just explaining why I’m right.” ― Unknown |