beautypg.com

Dw declaration type, Dw24 declaration type – Zilog ZUSBOPTS User Manual

Page 258

background image

Directives

UM017105-0511

230

Zilog Developer Studio II – ZNEO™
User Manual

Examples

DL 1,2 ; Reserve 2 long words. Initialize the

; first with a 1 and last with a 2.

DL %12345678 ; Reserve space for 1 long word and

; initialize it to %12345678.

DW Declaration Type

Synonyms

.word, word

,

.int

Syntax

DW

word data (16 bits)

Examples

DW "Hello World" ; Reserve and initialize 11 words.

DW "Hello" ; Reserve and initialize 5 words.

DW 1,2 ; Reserve 2 words. Initialize the

; first word with a 1 and the second with a 2.

DW %1234 ; Reserve 1 word and initialize it with %1234.

There is no trailing null for the DW declaration type. Each letter gets 16 bits with the upper
8 bits zero.

DW24 Declaration Type

Synonyms

.word24, .trio, .DW24

Syntax

DW24

word data (24 bits)

Examples

dw24 %123456 ; Reserve one 24-bit entity and initialize it with

%123456

.trio %789abc ; Reserve one 24-bit entity and initialize it

with %798abc

Note:

This manual is related to the following products: