beautypg.com

Delimiting macro arguments, Labels, Anonymous labels – Zilog EZ80F916 User Manual

Page 242

background image

UM014423-0607

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

222

ENDMACRO RECURS_MAC

Delimiting Macro Arguments

Macro arguments can be delimited by using the current macro delimiter characters defined
using the

MACDELIM

directive. The delimiters can be used to include commas and spaces

that are not normally allowed as part of an argument. The default delimiters are brackets

{ }

, but braces

[ ]

and parentheses

( )

are also allowed.

Example

BRA: MACRO ARG1

JP ARG1

ENDMAC LJMP

Invocation

BRA {dummy,X}

Result

JP dummy,X

LABELS

Labels are considered symbolic representations of memory locations and can be used to
reference that memory location within an expression. See “Label Field” on page 188 for
the form of a legal label.

The following sections describe labels:

“Anonymous Labels” on page 222

“Local Labels” on page 223

“Importing and Exporting Labels” on page 223

“Label Spaces” on page 223

Anonymous Labels

The ZDS II assembler supports anonymous labels. The following table lists the reserved
symbols provided for this purpose.

Table 10. Anonymous Labels

Symbol

Description

$$

Anonymous label. This symbol can be used as a label an arbitrary number of times.

This manual is related to the following products: