Panasonic PanaXSeries MN1030 Series User Manual page 215

Panasonic microcomputer user's manual
Table of Contents

Advertisement

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
;
debug
macro
#ifb
string
jsr
jsr
#else
jsr
#endif
endm
;
_TEXT
section
#define
MODE
debug
#undef
MODE
#define
MODE
debug
check
proc
string
check
proc
proc
CODE, PUBLIC,
1
debug_on
MODE
MODE
Chapter 10 Writing Assembler Control Statements
Conditional Assembly 203

Advertisement

Table of Contents
loading

Table of Contents