Panasonic PanaXSeries MN1030 Series User Manual page 222

Panasonic microcomputer user's manual
Table of Contents

Advertisement

Chapter 11 Writing Macro Control Statements
Usage example
A source file is shown below. The macro add_adr has one dummy parameter. The dummy parameter is
used as the operand of an add machine language instruction within the macro body. Take note whether
a macro name is the same as a machine language instruction.
The macro is called with var1 and var2 as parameters.
var1
equ
var2
equ
add_adr
macro
add
endm
_CODE
section
main
add_adr
add_adr
end
Reference:
By adding the Lm option when the assembler is started, you can suppress the output of
mnemonics of macros expanded by the assembler.
210 Macro Calls and Expansion
0x10
var1+2
adr
adr, A0
CODE, PUBLIC, 2
var1
var2

Advertisement

Table of Contents
loading

Table of Contents