Propeller Manual

Table Of Contents
3: Assembly Language Reference – CMPS
Propeller Manual v1.1 · Page 275
Explanation
CMPS (Compare Signed) compares the signed values of SValue1 and SValue2. The Z and C
flags, if written, indicate the relative equal, and greater or lesser relationship between the two.
If the
WZ effect is specified, the Z flag is set (1) if SValue1 equals SValue2. If the WC effect is
specified, the C flag is set (1) if SValue1 is less than SValue2.
To compare signed, multi-long values, instead of using
CMPS, use CMP, possibly CMPX, and
finally
CMPSX. See CMPSX on page 277 for more information.