122-32000 Parallax Inc, 122-32000 Datasheet - Page 364

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
CMPSX
Instruction: Compare two signed values plus C.
CMPSX
Result: Optionally, equality and greater/lesser status is written to the Z and C flags.
Explanation
CMPSX
C. Use the
perform multi-long, signed comparisons; 64-bit signed comparisons, for example. The Z and
C flags, if written, indicate the relative equal, and greater or lesser relationship between the
two.
If the
SValue2 + C (use
specified, the C flag is set (1) if SValue1 is less than SValue2 (as multi-long values).
Note that in a multi-long signed operation, the first instruction is unsigned (ex:
middle instructions are unsigned, extended (ex:
extended (ex:
CMPX
Instruction: Compare two unsigned values plus C.
CMPX
Result: Optionally, equality and greater/lesser status is written to the Z and C flags.
Page 364 · Propeller Manual v1.0
–INSTR– ZCRI –CON–
110001 000i 1111 ddddddddd sssssssss
(Compare Signed, Extended) compares the signed values of SValue1 and SValue2 plus
WZ
Value1,
SValue1,
SValue1
SValue2
Value1
Value2
effect is specified, the Z flag is set (1) if Z was previously set and SValue1 equals
,
CMPSX
CMPSX
(d-field) is the register containing the value to compare with that of Value2.
(s-field) is a register or a 9-bit literal whose value is compared with Value1.
#
(d-field) is the register containing the value to compare with that of SValue2.
(s-field) is a register or a 9-bit literal whose value is compared with SValue1.
Value2
#
instruction after a
).
SValue2
WC
– Assembly Language Reference
–DEST–
and
WZ
on preceding
–SRC–
CMP
or
Z & (Result = 0)
CMPX
CMP
Z Result
(with the
or
CMPX
CMPX
), and the last instruction is signed,
instruction). If the
WC
Signed Borrow
, and optionally
C Result
Not Written
Result
WZ
WC
, effect) to
CMP
effect is
Clocks
), any
4

Related parts for 122-32000