Directives Reference
ARM DUI 0068B Copyright © 2000, 2001 ARM Limited. All r ights 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 page7-18
DCD and DCDU on page 7-19
DCQ and DCQU on page7-24
SPACE on page7-17.
Example
data DCW -225,2*number ; number must already be defined
DCWU number+4
7.3.13 DATA
The
DATA
directive is no longer needed. It is ignored by the assembler.