Crossware

Table of Contents        Previous topic       Next topic       

ASSEMBLER DIRECTIVES->Other Assembler Directives->IFcc

IFcc      Conditional Assembly with Numerical Comparison

The IFcc directives cause the assembly of the subsequent block of statements to be dependant upon the value of the expression in the operand.  The ENDC directive marks the end of the statement block.

Format:
          IFcc      <expression>  <comment>

where cc indicates two characters such as EQ, NE etc as listed below.

The statements following IFcc will be assembled if the expression values satisfy the following conditions:

DirectiveCondition
 
IFEQ<Expression> =  0
IFNE<Expression> <> 0
IFGE<Expression> >= 0
IFGT<Expression> >  0
IFLE<Expression> <= 0
IFLT<Expression> <  0

Conditional assembly directives can be nested.