version 2009-08-04

CMPS : CoMPare Signed

Substract the second operand (snd register) from the first operand (either si4 or imm16). Set the NPC's LSB with the borrow bit of the result (set if a signed borrow occured, clear otherwise).

Internally, this works just like the SUB instruction but the result is never written. The CMPU instruction is identical but performs an unsigned comparison.