Directives Reference
ARM DUI 0068B
Copyright © 2000, 2001 ARM Limited. All rights reserved.
7-25
7.3.12
DCW and DCWU
The
DCW
directive allocates one or more halfwords of memory, aligned on 2-byte
boundaries, and defines the initial runtime contents of the memory.
DCWU
is the same, except that the memory alignment is arbitrary.
Syntax
{
label
} DCW
expr
{,
expr
}...
where:
expr
is a numeric expression that evaluates to an integer in the range –32768
to 65535 (see
Numeric expressions
on page 3-20).
Usage
DCW
inserts a byte of padding before the first defined halfword if necessary to achieve
2-byte alignment.
Use
DCWU
if you do not require alignment.
See also:
•
DCB
on page 7-18
•
DCD and DCDU
on page 7-19
•
DCQ and DCQU
on page 7-24
•
SPACE
on page 7-17.
Example
data DCW -225,2*number ; number must already be defined
DCWU 4
7.3.13
DATA
The
DATA
directive is no longer needed. It is ignored by the assembler.