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

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
VAR
The above example declares two variables (symbols),
word-sized variable. The line under the
create an array of 25 word-sized variable elements called
accessed from any
they are global to the object. An example of this is below.
PUB SomeMethod
For more information about using
Declarations (Syntax 1) on page 315, and keep in mind that
that description.
Word Data Declaration (Syntax 2)
In
compiled as constant values in main memory.
optional symbol preceding it, which can be used for later reference. See
example:
DAT
The above example declares two data symbols,
of word-aligned and word-sized data in main memory.
640, $AAAA and 5,500, respectively.
creates a byte-aligned but word-sized set of data in main memory.
memory, are $FF99 and 1,000, respectively. When accessed a byte at a time,
$99, $FF, 232 and 3 since the data is stored in little-endian format.
This data is compiled into the object and resulting application as part of the executable code
section and may be accessed using the read/write form, syntax 3, of
more information about using
Page 332 · Propeller Manual v1.0
word Temp
word List[25]
Temp := 25_000
List[0] := 500
List[1] := 9_000
List[24] := 60_000
MyData word 640, $AAAA, 5_500
MyList byte word $FF99, word 1_000 'Byte-aligned/word-sized data
DAT
blocks, syntax 2 of
– Spin Language Reference
PUB
or
PRI
WORD
method within the same object that this
is used to declare word-aligned, and/or word-sized data that is
WORD
WORD
in this way, refer to the
'Temp is a word (2 bytes)
'List is a word array
'Set Temp to 25,000
'Set first element of List to 500
'Set second element of List to 9,000
'Set last element of List to 60,000
MyList
Temp
in this way, refer to the
MyData
uses a special
declaration uses the optional Count field to
DAT
blocks allow this declaration to have an
Temp
'Word-aligned/word-sized data
and
MyData
List
and
MyList
WORD
’s values, in main memory, are
DAT
DAT
List
. Both
is used for the Size field in
.
block syntax of
.
section’s Declaring Data
MyData
MyList
VAR
Temp
VAR
WORD
Temp
block was declared;
DAT
section’s Variable
is simply a single,
’s values, in main
(see below). For
points to the start
and
, page 208. For
MyList
List
WORD
contains
can be
that

Related parts for 122-32000