Syntax

DC.W initializer [, initializer]…
DW initializer [, initializer]…

Description

The DC.W directive defines an object as an initialized array of words. If the directive is labeled, the label is assigned the location counter of the current section before the data is placed in that section. If a single initializer is present, the label's data type is set to WORD; otherwise, it is set to be a fixed array of WORD, the bounds of which are set by the number of elements defined.

The number of bytes per word is defined by the target processor. For 32-bit processors, one word is usually four bytes, and for 8-bit and 16-bit processors, one word is usually two bytes.

Note

The location counter is not aligned before allocating space.