Ifeq, #Ifneq - Panasonic PanaXSeries MN1030 Series User Manual

Panasonic microcomputer user's manual
Table of Contents

Advertisement

10.4.3 #ifeq, #ifneq

Syntax
Syntax for #ifeq
#ifeq
[#else
#endif
Functional description
#ifeq
If parameter1 and parameter2 are the same string, block1 will be assembled. If they are different and
an #else directive has been coded, block2 will be assembled.
#ifneq
If parameter1 and parameter2 are different strings, block1 will be assembled. If they are the same and
an #else directive has been coded, block2 will be assembled.
Coding rules
These directives can only be used within macro definitions.
Either or both of parameter1 and parameter2 may be dummy parameters set up during macro
definition.
parameter1, parameter2
block1
block2]
Chapter 10 Writing Assembler Control Statements
Syntax for #ifneq
parameter1, parameter2
#ifneq
block1
[#else
block2]
#endif
Conditional Assembly 195

Advertisement

Table of Contents
loading

Table of Contents