.word Directive

Syntax

.word expression1 [, expression2] ... [, expressionN]

Description

The .word directive truncates the expression values specified in the comma-separated list to 16-bit values and assembles the values in successive locations. The expression values must be absolute. The operands in the .word directive can optionally have the form expressionVal [ :expressionRep]

The expressionVal is a 16-bit value. The optional expressionRep is a non-negative expression that specifies how many times to replicate the value of expressionVal. The expression value (expressionVal) and repetition count (expressionRep) must be absolute.

This directive automatically aligns its data and preceding labels on a word boundary. This feature can be disabled with the .align 0 directive.