beautypg.com

Delimiting macro arguments, Labels, See the – Zilog Z8F0130 User Manual

Page 356

background image

Using the Macro Assembler

UM013037-1212

332

Zilog Developer Studio II – Z8 Encore!
User Manual

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 1

; Delimiter changed to [


MACDELIM [


BRA: MACRO ARG1

JP ARG1

ENDMACRO


LAB: BRA [NE,

LAB]

Example 2

; Using default delimiter

BRA: MACRO ARG1

JP ARG1

ENDMACRO


LAB: BRA {NE,LAB}

Labels

Labels are considered symbolic representations of memory locations and can be used to
reference that memory location within an expression. See the

Label Field

section on page

284 for the form of a legal label.

The following sections describe labels:

Anonymous Labels

– see page 333

Local Labels

– see page 333

Importing and Exporting Labels

– see page 333

Label Spaces

– see page 333

Label Checks

– see page 334