Propeller Manual

Table Of Contents
3: Assembly Language Reference – CMPSX
Propeller Manual v1.1 · Page 279
A signed triple-long (96-bit) comparison would look similar but with a CMPX instruction
inserted between the
CMP and CMPSX instructions:
cmp XLow, YLow wc wz 'Compare low longs; save C and Z
cmpx XMid, YMid wc wz 'Compare middle longs; save C and Z
cmpsx XHigh, YHigh wc wz 'Compare high longs; save C and Z
For CMPSX, if the WZ effect is specified, the Z flag is set (1) if Z was previously set and
SValue1 equals SValue2 + C (use
WC and WZ on preceding CMP and CMPX instructions). If the WC
effect is specified, the C flag is set (1) if SValue1 is less than SValue2 (as multi-long values).