EasyManua.ls Logo

Panasonic PanaXSeries MN1030 Series - Ifgt, #Ifge

Panasonic PanaXSeries MN1030 Series
340 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 10 Writing Assembler Control Statements
200 Conditional Assembly
10.4.5 #ifgt, #ifge
Syntax
Syntax for #ifgt Syntax for #ifge
#ifgt expression #ifge expression
block1 block1
[#else [#else
block2] block2]
#endif #endif
Coding rules
#ifgt
If the value of expression is positive, block1 will be assembled. If it is not positive and an #else
directive has been coded, block2 will be assembled.
#ifge
If the value of expression is 0 or positive, block1 will be assembled. If it is negative and an #else
directive has been coded, block2 will be assembled.
Note that 0 is not included in positive numbers.
Usage example
A source file that uses #ifgt is shown below.
DEVICE equ 1
_TEXT section CODE, PUBLIC, 1
#ifgt DEVICE-1
mov 0x01, D0
#else
mov 0x02, D0
#endif
#ifge DEVICE-1
mov 0x03, D1
#else
mov 0x04, D1
#endif

Table of Contents

Related product manuals