If, #Ifn - Panasonic PanaXSeries MN1030 Series User Manual

Panasonic microcomputer user's manual
Table of Contents

Advertisement

10.4.2 #if, #ifn

Syntax
Syntax for #if
#if
[#else
#endif
Functional description
#if
If the value of expression is not 0, block1 will be assembled. If it is 0 and an #else directive has been
coded, block2 will be assembled.
#ifn
If the value of expression is 0, block1 will be assembled. If it is not 0 and an #else directive has been
coded, block2 will be assembled.
Coding rules
These directives can be used within macro definitions and wherever machine language instructions can
be coded.
expression
block1
block2]
Chapter 10 Writing Assembler Control Statements
Syntax for #ifn
expression
#ifn
block1
[#else
block2]
#endif
Conditional Assembly 193

Advertisement

Table of Contents
loading

Table of Contents