EasyManua.ls Logo

Panasonic PanaXSeries MN1030 Series - Page 222

Panasonic PanaXSeries MN1030 Series
340 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 11 Writing Macro Control Statements
210 Macro Calls and Expansion
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.
Reference:
By adding the Lm option when the assembler is started, you can suppress the output of
mnemonics of macros expanded by the assembler.
var1 equ 0x10
var2 equ var1+2
add_adr macro adr
add adr, A0
endm
_CODE section CODE, PUBLIC, 2
main
add_adr var1
add_adr var2
end

Table of Contents

Related product manuals