Directives Reference

7.3.12DCW 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

number+4

7.3.13DATA

The DATA directive is no longer needed. It is ignored by the assembler.

ARM DUI 0068B

Copyright © 2000, 2001 ARM Limited. All rights reserved.

7-25

Page 307
Image 307
ARM VERSION 1.2 manual DCW and Dcwu, To 65535 see Numeric expressions on, DCD and Dcdu on DCQ and Dcqu on, Data