CMP Instruction

Purpose:Arithmetic Comparison between two scalar quantities
Format:opcode src1.rx, src2.wx
Operation:src1 compared to src2;
Condition
Codes:
N <- src1 LSS src2;
Z <- src1 EQL src2;
V <- 0;
C <- src1 LSSU src2; (integer)
C <- 0; (floating)
Exceptions:None (Integer);
Reserved Operand (Floating Point)
Opcodes:
91CMPBCompare Byte
B1CMPWCompare Word
D1CMPLCompare Long
51CMPFCompare Float
71CMPDCompare Double
Description: The source 1 operand is compared with the source2 operand. The source operands are unaffected. The only action is to affect the codition codes.
Notes: On a floating reserved operand fault the condition codes are unpredictable.