EasyManua.ls Logo

Panasonic PanaXSeries MN1030 Series - Page 215

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 10 Writing Assembler Control Statements
Conditional Assembly 203
Usage example
A source file that uses #ifb is shown below. If the dummy parameter para to the macro debug is a null
character, the program will execute next_cycle. If it is not a null character, the program will execute
test and then execute next_cycle. In this example, the identifier MODE is passed to the macro debug.
When a replacement string has been specified, the call is without a null character.
global check proc
;
debug macro string
#ifb string
jsr check
jsr proc
#else
jsr proc
#endif
endm
;
_TEXT section CODE, PUBLIC,
1
#define MODE debug_on
debug MODE
#undef MODE
#define MODE
debug MODE

Table of Contents

Related product manuals