Section 3: Assembler
239
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
IFcc — Assemble If Condition True
Syntax
IF
cc value
Description
cc
Specifies a conditional relation between the specified value and
zero. The following are the valid condition codes:
EQ
Expression is equal to zero
NE
Expression is not equal to zero
GE
Expression is greater than or equal to zero
GT
Expression is greater than zero
LE
Expression is less than or equal to zero
LT
Expression is less than zero
value
Specifies the control value for the assembly block. It is an absolute
expression that cannot contain any forward, external, or undefined
references.
Each IFcc directive introduces a conditional assembly block. If the value
value
observes the specified conditional relation, then the statements between the
given IFcc directive and the first matching ELSEC or ENDC directive are
assembled and the remainder of the block is skipped. Otherwise, the statements
associated with the IFcc directive are skipped and control passes to the
aforementioned matching directive.
Conditional assembly directives can be nested to 40 levels.
Example
IFGT count
MOVEQ #5,D2
ENDC