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

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
PAR
Cog Boot Parameter register.
((PUB ┆ PRI))
Returns: Address value passed during boot-up with
Explanation
The
COGNEW
are used by Propeller Assembly code to locate and operate on memory shared between Spin
code and assembly code.
Since the
into it via
to zero.
Using PAR
PAR
point to shared main memory between the two. Either the
launching Propeller Assembly into a cog, affects the
VAR
PUB Main | Temp
DAT
Process
:loop
PAR
long
cognew(@Process, @Shared)
repeat
is affected by Spin code and is used by assembly code as a memory pointer mechanism to
PAR
<do something with Shared vars>
command; see
register contains the address value passed into the Parameter field of a
PAR
COGINIT
Shared
register is intended to contain an address upon cog boot-up, the value stored
and
COGINIT
COGNEW
org 0
mov Mem, PAR
<do something>
wrlong ValReg, Mem 'Move ValReg value to Shared
jmp :loop
jmp :loop
is limited to 14-bits; a 16-bit word with lower two bits cleared
, page 187 and
4: Spin Language Reference –
COGNEW
COGINIT
PAR
'Shared variable (Spin & Assy)
'Launch assy, pass Shared addr
'Retrieve shared memory addr
, page 189. The
register. For example:
COGINIT
or
Propeller Manual v1.0 · Page 283
COGNEW
or
COGNEW
.
PAR
register’s contents
command, when
COGINIT
or

Related parts for 122-32000