beautypg.com

Define, Ee the, Dw declaration type – Zilog Z8F0130 User Manual

Page 325: Dw24 declaration type

background image

UM013037-1212

DEFINE

Zilog Developer Studio II – Z8 Encore!

User Manual

301

DW Declaration Type

Synonyms

.word, word

,

.int

Syntax

DW

word data (16 bits)

Examples

DW "Hello World" ; Reserve and initialize 11 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. When used for an ASCII character
string as in the first example here, 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

DEFINE

Defines a segment with its associated address space, alignment, and origin. You must
define a segment before you can use it, unless it is a predefined segment. If a clause is not
given, use the default for that definition. For more information about the

SEGMENT

direc-

tive, see the

SEGMENT

section on page 307; for a list of predefined segments, see the

Predefined Segments

section on page 279.

The following sections describe the supported clauses:

Note: