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

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
CMP
Instruction: Compare two unsigned values.
CMP
Result: Optionally, equality and greater/lesser status is written to the Z and C flags.
Explanation
CMP
flags, if written, indicate the relative equal, and greater or lesser relationship between the two.
If the
specified, the C flag is set (1) if Value1 is less than Value2.
CMPS
Instruction: Compare two signed values.
CMPS
Result: Optionally, equality and greater/lesser status is written to the Z and C flags.
Explanation
CMPS
flags, if written, indicate the relative equal, and greater or lesser relationship between the two.
Page 362 · Propeller Manual v1.0
–INSTR– ZCRI –CON–
–INSTR– ZCRI –CON–
100001 000i 1111 ddddddddd sssssssss
110000 000i 1111 ddddddddd sssssssss
(Compare Unsigned) compares the unsigned values of Value1 and Value2. The Z and C
Value1,
(Compare Signed) compares the signed values of SValue1 and SValue2. The Z and C
WZ
SValue1,
Value1
Value2
SValue1
SValue2
effect is specified, the Z flag is set (1) if Value1 equals Value2. If the
#
(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.
Value2
(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.
#
– Assembly Language Reference
SValue2
–DEST–
–DEST–
–SRC–
–SRC–
Result = 0
Result = 0
Z Result
Z Result
Unsigned Borrow
Signed Borrow
C Result
C Result
Not Written
Not Written
Result
Result
WC
effect is
Clocks
Clocks
4
4

Related parts for 122-32000