Section 3: Assembler
227
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
DS — Allocate a Block of Uninitialized Memory
Syntax
DS[
.size ] count
Description
size
Specifies the unit size. The legal size qualifiers are shown below;
the default is
W
.
B
Byte Integer (1 byte)
W
Word Integer (2 bytes)
L
Long-word Integer (4 bytes)
S
Single-precision Real (not supported)
D
Double-precision Real (not supported)
X
Extended-precision Real (not supported)
P
Packed Decimal Real (not supported)
count
Specifies the unit count. It is an absolute expression that cannot
contain any forward, external, or undefined references.
The DS directive allocates a block of uninitialized memory whose size is
determined by the number and size of the unit location. Each location is filled
with the current fill value (see OPT FILLVAL), unless the section is of BSS-type.
Specifying a count of zero forces alignment for the selected data size
(e.g., DS.W 0 forces word alignment).
Examples
DS 256
DS.L 64