Data Allocation Statements

A data allocation statement has the following syntax:

[label:] dataop operands     // comments

Where:

label

Defines a symbol whose value is the address of the first data object defined by the statement. If the assembler inserts padding to align the location counter to an implied alignment boundary, the label is assigned the value of the newly-aligned address.

The assembler interprets a label followed by a double-colon (::) as a global symbol. See the Symbol Scope Declaration section for more information about global symbols.

dataop

Defines the type and size of data objects that are assembled. Data object mnemonics are not case-sensitive. The Data Allocation Statements section lists the data object mnemonics.

operands

Contain multiple expressions separated by commas. Each expression defines a separate data object of the same type and size. The assembler puts the data objects into consecutive locations in memory, and automatically aligns each to its natural boundary.

 

The following is an example of a data-allocation statement with a label:

L2: data4.ua L1, L1+7, .t1+0x34, $-15