TAL Reference Manual

Expressions
TAL Reference Manual526371-001
4-25
Group Comparison Expression
If you enclose constant in brackets ([ ]) and if the destination has a byte address or
is a STRING structure pointer, the system compares a single byte regardless of the
size of
constant. If you do not enclose constant in brackets or if the destination has
a word address or is an INT structure pointer, the system compares a word,
doubleword, or quadrupleword as appropriate for the size of
constant.
constant-list
is a list of one or more constants, which are concatenated and compared to var1.
Specify
constant-list in the form shown in Section 3, Data Representation.
next-addr
is a variable to contain the address of the first byte or word in var1 that does not
match the corresponding byte or word in
var2. The compiler returns a 16-bit or 32-
bit address as described in Usage Considerations
.
Usage Considerations
After a group comparison, you can test the condition code setting by using the
following relational operators (with no operands) in a conditional expression:
The compiler does a standard comparison and returns a 16-bit
next-addr if:
Both var1 and var2 have standard byte addresses
Both var1 and var2 have standard word addresses
The compiler does an extended comparison (which is slightly less efficient) and returns
a 32-bit
next-addr if:
Either var1 or var2 has a standard byte address and the other has a standard word
address
Either var1 or var2 has an extended address
< CCL if var1 '<' var2
= CCE if var1 = var2
> CCG if var1 '>' var2