Purging Macro Definitions (Purge) - Panasonic PanaXSeries MN1030 Series User Manual

Panasonic microcomputer user's manual
Table of Contents

Advertisement

11.7 Purging Macro Definitions (purge)

Syntax
purge
Functional description
The purge directive purges the definitions of the specified macro names.
Coding rules
The macro names specified with the purge directive are valid for previously defined macro names.
After the purge directive, purged macros will not be expanded even if they are called. They will be
processed as instructions or symbols.
The purge directive cannot be used within macro definitions.
When multiple macro names are specified, they are delimited by commas (,).
Usage example
The following example illustrates the use of the purge control statement.
The above example contains two definitions for the same macro name. The first instance of mac1 ex-
pands to a mov instruction. After the purge control statement, the second definition for mac1 takes ef-
fect.
mac1
macro
mov
endm
_TEXT
section
mac1
purge
mac1
macro
add
endm
mac1
macro_name (, macro_name)...
p1, p2
p1, p2
CODE, PUBLIC, 1
0, A1
mac1
p1, p2
p1, p2
1, A1
Chapter 11 Writing Macro Control Statements
Purging Macro Definitions (purge) 217

Advertisement

Table of Contents
loading

Table of Contents