| |||
| Home > Assembler > Directives > DCD or & directive | |||
The DCD directive allocates one or more words
of memory, aligned on 4-byte boundaries, and defines the initial
runtime contents of the memory. & is a synonym
for DCD.
The syntax of DCD is:
{label} DCD expression{,expression}
where:
expressionis either:
A numeric expression. See Numeric expressions.
A program-relative expression.
You must use the DATA directive
if you use DCD to define labeled data within Thumb
code. Refer to DATA directive for
more information.
DCD inserts up to 3 bytes of padding before the
first defined word, if necessary, to achieve 4-byte alignment. Use DCDU if
you do not require alignment.
See also: