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

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
the loop has
through the loop it reads the next long, effectively @
Note that if the data was not long-aligned, either intentionally or coincidentally, we’d have
different results from the
shifted forward by one byte, the first value read by the loop would be $995544xx; where xx is
an unknown byte-sized value. Similarly, the second value read would be 256255; made up of
the $FF from the upper byte of
bytes of
memory to avoid this likely unintentional result.
Using a similar syntax, longs of main memory can be written to as well, as long as they are
RAM locations. For example:
This line writes the value 2,000,000,000 to the first long of data at
LONG[@MyList][0] := 2_000_000_000
MyList
Index
’s second value. Make sure to pay close attention to data value alignments in
set to 0, the first long of
REPEAT
MyList
loop just described. For example, if
’s first value, and the 3 and 232 from the lower two
4: Spin Language Reference –
MyList
MyList
'Write 2 billion to first word
'of MyList
is read, $FF995544. The next time
+
1
Propeller Manual v1.0 · Page 239
(the 1,000).
MyList
MyList
.
happened to be

Related parts for 122-32000