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

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
DAT
The first thing on line two of this example,
byte-aligned and byte-sized. At compile time, the data following
in program memory a byte at a time starting at the next available location. Line three
specifies word-aligned and word-sized data. Its data,
word boundary position following the data that appeared before it; with any unused bytes
from the previous data filled with zeros to pad up to the next word boundary. The fourth line
specifies long-aligned and long-sized data; its data will be stored at the next long boundary
following the word-aligned data that appeared before it, with zero-padded words leading up
to that boundary. Table 4-8 shows what this looks like in memory (shown in hexadecimal).
L = longs, W = words, B = bytes, D = data
The first nine bytes (0 – 8) are the byte data from line one; $40 = 64 (decimal), $41 = “A”,
$53 = “S”, etc. Byte 9 is padded with zero to align the first word of word-aligned data,
$FFC2, at byte 10. Bytes 10 and 11 (word 5) contain the first word-sized value, $FFC2,
stored in low-byte-first format as $C2 and $FF. Bytes 12 and 13 (word 6) is the lowest word
of 75000; more on this later. Bytes 14 and 15 (word 7) are zero padded to align the first long
of long-aligned data, $44332211. Bytes 16 through 19 (long 5) contain that value in low-
byte-first format. Finally, bytes 20 through 23 (long 6) contains the second long of data, 32,
in low-byte-first format.
You may have noticed that the value 75000 was specified as a word-sized one. The number
75000 in hexadecimal is $124F8, but since that’s larger than a word, only the lowest word
($24F8) of the value was stored. This resulted in word 6 (bytes 12 and 13) containing $F8
and $24, and word 7 (bytes 14 and 15) containing $00 and $00 due to the padding for the
following long-aligned values.
W
B
D
L
byte 64, "A", "String", 0
word $FFC2, 75000
long $44332211, 32
40
0
0
41
1
0
53
2
1
74
3
72
4
2
69
5
2
6E
6
Table 4-8: Example Data in Memory
3
67
7
00
8
4
00
9
3
C2 FF
10
5
BYTE
11
4: Spin Language Reference –
F8
12
, indicates the data following it should be
6
13
24
$FFC2
4
14
00
7
and
15
00
Propeller Manual v1.0 · Page 209
16
11
75000
BYTE
8
17
22
, 64, “A”, etc., is stored
5
, will begin at the next
18
33
9
19
44
20
20
10
21
00
6
22
00
11
23
00

Related parts for 122-32000