Chapter 10 Writing Assembler Control Statements

10.4.6 #ifb, #ifnb

Syntax

Syntax for #ifb

Syntax for #ifnb

#ifb

dummy_parameter

#ifnb

dummy_parameter

 

block1

 

block1

[#else

block2]

[#else

block2]

 

 

#endif

 

#endif

 

Functional description

#ifb

If the dummy_parameter is a null character, block1 will be assembled. If it is not a null character and an #else directive has been coded, block2 will be assembled.

#ifnb

If the value of expression is not a null character, block1 will be assembled. If it is a null character and an #else directive has been coded, block2 will be assembled.

Coding rules

These directives can only be used within macro definitions.

The parameter must be a dummy parameter.

202 Conditional Assembly

Page 214
Image 214
Panasonic MN1030 user manual 10.4.6 #ifb, #ifnb