Define – Zilog EZ80F916 User Manual
Page 223

UM014423-0607
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
203
Example
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)
Example
DW "Hello World" ; Reserve and initialize 11 words.
DW "Hello" ; Reserve 12 words, initialize 6.
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.
NOTE: 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
DEFINE
Defines a segment with its associated address space, alignment, and origin, which are
called “clauses” of the
DEFINE
directive. You must define a segment before you can use it,
unless it is a predefined segment. If a clause is not given, the default for that clause is used
in the definition. Clauses are described in the following sections:
•
•
•