Section 3: Assembler
279
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
size
Specifies the size of the
CMP
instruction generated for the expression
that follows the logical operator. (The size qualifier for the first expression
is attached to the preceding
IF
,
UNTIL
, or
WHILE
directive.) The legal
values are shown below:
B
Byte Integer
W
Word Integer
L
Long-word Integer
S
Single-precision Real (not supported)
D
Double-precision Real (not supported)
X
Extended-precision Real (not supported)
P
Packed Decimal Real (not supported)
A
CMP
instruction is generated for each specified pair of effective
address operands. If necessary, the operands of this instruction will be
exchanged to produce a legal instruction; in this case, the corresponding
conditional test will also be reversed. The operands will be exchanged in
the following cases:
•
The second operand is immediate data.
•
The first operand is a data or address register, and the second
operand is not a data or address register.
A conditional branch is generated for each specified conditional test. If
necessary, the negation of a conditional test will be used to produce the
correct flow of control.
Examples
<NE>
D1 <GT> #LIMIT
A0 <LT> A1 AND.L D2 <NE> #0
Mnemonic Condition Mnemonic Condition
CC Carry Clear LS Low or Same
CS Carry Set LT Less Than
EQ Equal MI Minus
GE Greater or Equal NE Not Equal
GT Greater Than PL Plus
HI High VC Overflow Clear
LE Less or Equal VS Overflow Set
Table 3.30: Integer Conditional Tests