.word

Name

.word --  allocates 16-bit words of memory for storage (same as .dw)

Syntax

.word expression [,expression...]

Description

The .word and .dw directives generate consecutive 16-bit words of data for each given expression. If the directive has a label, it refers to the address of the first word. The program section must be ROM type. Any label is assigned the word type.

Note: The .word, .dw directive stores words in byte order, low byte to high byte. This is not correct for VIS address table; use .addrw directive which stores in opposite order.

Example

This directive stores the hexadecimal number FF in a word of memory.

		.word 0FF
	

This directive stores three 16-bit values in consecutive words in memory.

	T:	.dw MPR-10,0FFFF,'AB'