beautypg.com

Dd declaration type, Df declaration type, Dl declaration type – Zilog Z8F0130 User Manual

Page 324

background image

Using the Macro Assembler

UM013037-1212

300

Zilog Developer Studio II – Z8 Encore!
User Manual

DD Declaration Type

Synonym

.double

Syntax

DD

double signed floating-point value (32 bits)

Example

DD 0.1, -16.42 ; Reserve space for 2 64-bit double-precision

; signed floating-point numbers. Initialize the

; first with 0.1 and the last with -16.42.

DF Declaration Type

Synonym

.float

Syntax

DF

word signed floating-point constant (32 bits)

Example

DF 0.1,0.2 ; Reserve space for 2 32-bit single-precision signed

; floating-point numbers. Initialize the

; first with 0.1 and the last with 0.2.

DF .5 ; Reserve space for 1 word signed

; floating-point number and initialize it to 0.5.

DL Declaration Type

Synonyms

.long, long

Syntax

DL

long (32 bits)

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.