Section 3: Assembler
223
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
DCB — Allocate a Block of Initialized Memory
Syntax
DCB[
.size ] count, value
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.
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, nor undefined references must be used.
The DCB 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
DCB 256,$FF
DCB.L 16,err_vector