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

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
Explanation
CMPX
the
multi-long comparisons; 64-bit unsigned comparisons, for example. The Z and C flags, if
written, indicate the relative equal, and greater or lesser relationship between the two.
If the
Value2 + C (use
the C flag is set (1) if Value1 is less than Value2 (as multi-long values).
COGID
Instruction: Get current cog’s ID.
COGID
Result: The current cog’s ID (0-7) is written to Destination.
Explanation
COGID
similar to the Spin command of the same name; see
If the
Destination unless the
COGID
depending on the relation between the cog’s hub access window and the instruction’s moment
of execution. See Hub on page 24 for more information.
–INSTR– ZCRI –CON–
–INSTR– ZCRI –CON–
110011 000i 1111 ddddddddd sssssssss
000011 0011 1111 ddddddddd ------001
CMPX
(Compare Extended) compares the unsigned values of Value1 and Value2 plus C. Use
WZ
WZ
returns the ID of the cog that executed the command. The
is a Hub instruction.
Destination
Destination
instruction after a
effect is specified, the Z flag is set (1) if Z was previously set and Value1 equals
effect is specified, the Z flag is set if the cog ID is zero. The result is written to
WC
(d-field) is the register to write the cog’s ID into.
and
NR
–DEST–
–DEST–
WZ
effect is specified.
on preceding
CMP
Hub instructions require 7 to 22 clock cycles to execute
or
–SRC–
–SRC–
5: Assembly Language Reference –
CMPX
CMP
(with the
or
Z & (Result = 0)
CMPX
Result = 0
Z Result
Z Result
WC
COGID
instruction). If the
, and optionally
on page 186.
Unsigned Borrow
Propeller Manual v1.0 · Page 365
C Result
C Result
---
COGID
WZ
WC
, effect) to perform
instruction behaves
effect is specified,
Not Written
Result
Result
Written
Clocks
Clocks
7..22
4

Related parts for 122-32000