Iflt, #Ifle - Panasonic PanaXSeries MN1030 Series User Manual

Panasonic microcomputer user's manual
Table of Contents

Advertisement

Chapter 10 Writing Assembler Control Statements

10.4.4 #iflt, #ifle

Syntax
Syntax for #iflt
#iflt
[#else
#endif
Functional description
#iflt
If the value of expression is negative, block1 will be assembled. If it is not negative and an #else
directive has been coded, block2 will be assembled.
#ifle
If the value of expression is 0 or negative, block1 will be assembled. If it is positive and an #else
directive has been coded, block2 will be assembled.
Usage example
The first example will be of #iflt. A source file is shown below. The "size-16" expression of the #iflt is
not negative, so block 2 is assembled
MNXXX
equ
;
dsize
macro
#iflt
size-
mov
#else
mov
#endif
endm
_TEXT
section
dsize
198 Conditional Assembly
Syntax for #ifle
expression
#ifle
block1
[#else
block2]
#endif
32
size
32
0x01, D0
0x02, D0
CODE, PUBLIC, 1
MNXXX
expression
block1
block2]

Advertisement

Table of Contents
loading

Table of Contents