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

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
COGNEW
Start the next available cog to run Spin code or Propeller Assembly code.
((PUB ┆ PRI))
((PUB ┆ PRI))
Returns: The ID of the newly started cog (0-7) if successful, or -1 otherwise.
Explanation
COGNEW
it. If successful,
available,
COGNEW
COGNEW
starts a new cog and runs either a Spin method or a Propeller Assembly routine within
SpinMethod
can be followed by a parameter list enclosed in parentheses.
ParameterList
SpinMethod. It must be included only if SpinMethod requires parameters.
StackPointer
the new cog. The new cog uses this space to store temporary data during further calls
and expression evaluations. If insufficient space is allocated, either the application
will fail to run or it will run with strange results.
AsmAddress
Parameter
new cog’s read-only Cog Boot Parameter (
pass a either a single 14-bit value or the address of a block of memory to be used by
the assembly routine. Parameter is required by
routine, simply set it to an innocuous value like zero (0).
COGNEW
(SpinMethod
(AsmAddress, Parameter )
COGNEW
returns -1.
is used to optionally pass a value to the new cog. This value ends up in the
is the
is a pointer to memory, such as a long array, reserved for stack space for
is the address of a Propeller Assembly routine, usually from a
is an optional, comma-delimited list of one or more parameters for
(ParameterList)
returns the ID of the newly started cog. If there were no more cogs
PUB
or
PRI
Spin method that the new cog should run. Optionally, it
4: Spin Language Reference –
, StackPointer )
PAR
) register. Parameter can be used to
COGNEW
Propeller Manual v1.0 · Page 189
, but if not needed for your
DAT
block.

Related parts for 122-32000