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

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
LONG
Declare long-sized symbol, long aligned/sized data, or read/write a long of main memory.
VAR
DAT
((PUB ┆ PRI))
Explanation
LONG
operates on memory.
Long Variable Declaration (Syntax 1)
In
long-sized, or are any array of longs. For example:
VAR
The above example declares two variables (symbols),
long-sized variable. The line under the
create an array of 25 long-sized variable elements called
Page 236 · Propeller Manual v1.0
LONG
LONG
LONG
long Temp
long List[25]
VAR
1) declare a long-sized (32-bit) symbol or a multi-long symbolic array in a
2) declare long-aligned, and/or long-sized, data in a
3) read or write a long of main memory at a base address with an optional offset.
is one of three multi-purpose declarations (
blocks, syntax 1 of
Symbol
Count
Symbol, arranged in an array from element 0 to element Count-1.
Data
BaseAddress
If Offset is omitted, BaseAddress is the actual address to operate on. If Offset is
specified, BaseAddress + Offset is the actual address to operate on.
Offset
– Spin Language Reference
Symbol
Data
[BaseAddress]
is a constant expression or comma-separated list of constant expressions.
is an optional expression indicating the offset from BaseAddress to operate on.
is an optional expression indicating the number of long-sized elements for
is the desired name for the variable.
[Count ]
is an expression describing the address of main memory to read or write.
LONG
[Offset ]
LONG
can be used to:
is used to declare global, symbolic variables that are either
'Temp is a long (2 words, 4 bytes)
'List is a long array
Temp
declaration uses the optional Count field to
BYTE
Temp
DAT
,
List
WORD
and
block, or
. Both
, and
List
.
Temp
LONG
Temp
) that declares or
is simply a single,
and
VAR
List
block, or
can be

Related parts for 122-32000