Blkw declaration type, Db declaration type, Dl declaration type – Zilog ZUSBOPTS User Manual

Page 257

Advertising
background image

UM017105-0511

Directives

Zilog Developer Studio II – ZNEO™

User Manual

229

Examples

BLKL 16 ; Allocate 16 uninitialized longs.

BLKL 16, -1 ; Allocate 16 longs and initialize them to -1.

BLKW Declaration Type

Syntax

BLKW

count [, <init_value>]

Examples

BLKW 16 ; Allocate 16 uninitialized words.

BLKW 16, -1 ; Allocate 16 words and initialize them to -1.

DB Declaration Type

Synonyms

.byte

,

.ascii

,

DEFB

,

FCB

,

STRING

,

.STRING

,

byte

,

.asciz

Syntax

DB

byte data (8 bits)

Examples

DB "Hello World" ; Reserve and initialize 11 bytes.

DB 1,2 ; Reserve 2 bytes. Initialize the

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

DB %12 ; Reserve 1 byte. Initialize it with %12.

There is no trailing null for the DB declaration type. A trailing null is added for

.asciz

declaration types.

DL Declaration Type

Synonyms

.long, long

Syntax

DL long (32 bits)

Note:

Advertising
This manual is related to the following products: