List Of Assembler Control Statements - Panasonic PanaXSeries MN1030 Series User Manual

Panasonic microcomputer user's manual
Table of Contents

Advertisement

17.4 List of Assembler Control Statements

This section provides a list of assembler control statements.
#include
"file_name
#define
identifier[replacement_string]
#undef
identifier
#ifdef
identifier
block1
[#else
block2]
#endif
#ifndef
identifier
block1
[#else
block2]
#endif
#if
expression
block1
[#else
block2]
#endif
#ifn
expression
block1
[#else
block2]
#endif
#ifeq
parameter1, parameter2
block1
[#else
block2]
#endif
#ifneq
parameter1, parameter2
block1
[#else
block2]
#endif
Syntax
Function & Notes
Reads in the source file specified by file_name.
Replaces the identifier with the replacement_string.
Purges the identifier previously defined by #define.
Assembles block1 if the identifier was defined before
the #ifdef statement.
Assembles block2 if it was not defined (nothing will be
assembled if there is no #else).
Assembles block1 if the identifier was defined before
the #ifdef statement.
Assembles block2 if it was not defined (nothing will be
assembled if there is no #else.
Assembles block1 if the expression is not 0.
Assembles block2 if it is 0 (nothing will be assembled
if there is no #else).
Assembles block1 if the expression is 0.
Assembles block2 if it is not 0 (nothing will be
assembled if there is no #else).
Assembles block1 if parameter1 and parameter2 are
equal. Assembles block2 if they are not equal (nothing
will be assembled if there is no #else). At least one or
the other of parameter1 and parameter2 must be a
dummy parameter within a macro definition. #ifeq can
only be used within macro definitions.
Assembles block1 if parameter1 and parameter2 are
equal. Assembles block2 if they are not equal (nothing
will be assembled if there is no #else). At least one or
the other of parameter1 and parameter2 must be a
dummy parameter within a macro definition. #ifneq
can only be used within macro definitions.
List of Assembler Control Statements 321
Chapter 17 Appendix

Advertisement

Table of Contents
loading

Table of Contents