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

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
This phenomenon, whether or not it is intentional, occurs for byte-aligned/byte-sized data as
well, for example:
DAT
...results in only the low bytes of each value, $AA and $11 being stored in consecutive
locations.
Occasionally, however, it is desirable to store an entire large value as smaller elemental units
that are not necessarily aligned according to the size of the value itself. To do this, specify
the value’s size just before the value itself.
DAT
This example specifies byte-aligned data, but a word-sized value followed by a long-sized
value. The result is that the memory contains $AA and $FF, consecutively, and following it,
$11, $55, $99 and $BB.
If we modify line three of the first example above as follows:
...then we’d end up with $F8, $24, $01, and $00 occupying bytes 12 through 15. Byte 15 is
the upper byte of the value and it just happens to be immediately left of the next long
boundary so no additional zero-padded bytes are needed for the next long-aligned data.
Optionally, the Symbol field of syntax 1 can be included to “name” the data. This makes
referencing the data from a
DAT
PUB GetData | Temp
This example creates a data table called
The public method,
its local variable,
You can also use the
example:
Page 210 · Propeller Manual v1.0
byte $FFAA, $BB995511
byte word $FFAA, long $BB995511
word $FFC2, long 75000
MyData
Temp := MyData[0]
– Spin Language Reference
byte $FF, 25, %1010
Temp
GetData
BYTE
.
,
PUB
WORD
, reads the first byte of
or
, and
PRI
block easy. For example:
LONG
MyData
'Get first byte of data table
declarations to read main memory locations. For
that consists of bytes $FF, 25 and %1010.
MyData
from main memory and stores it in

Related parts for 122-32000