Section 3: Assembler
183
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.fill — Allocate a Block of Initialized Memory
Syntax
.fill[
.size] count, value
Description
size
Specifies the unit size. The legal size qualifiers are shown below;
the default is
b
.
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.
value
Specifies the unit value. If
size is
w
or
l
, any integer expression
can be used; otherwise, an absolute expression that contains no
forward, external, or undefined references must be used.
The
.fill directive
allocates
a
block
of
initialized
memory
whose
size
is
determined
by the number and size of the unit location. Each location is filled with the
specified value
value. This directive cannot be used in BSS-type sections.
Examples
.fill 256, 0xff
.fill.l 16, err_vector