12 dcw and dcwu, 13 data – ARM VERSION 1.2 User Manual
Page 307

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:
•
•
•
•
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.