pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
The quotient or remainder of an FIXED dividend and an INT(32) divisor is an INT(32) quotient
in the range 0 to 232-1.
$OVERFLOW (page 335) returns false after an unsigned division or remainder operator unless
either of the following is true:
◦ The divisor is 0
◦ The quotient is greater than 216-1 for an INT quotient, 232-1 for an INT(32)
Comparing Addresses
pTAL rules for comparing address types are more restrictive than the rules for comparing nonaddress
types.
Table 31 Valid Address-Type Comparisons
Non-Extended AddressesExtended Addresses
Operators Unsigned relational operators:Unsigned relational operators:
'<', '=', '>', '<=', '<>', '>='none
Signed relational operators:Signed relational operators:
=, <><, =, >, <=, <>, >=
Abbreviated forms Testing address type as true or false:Testing address type as true or false:
IF @p THENIF @p THEN
IF NOT @p THEN...IF NOT @p THEN...
Topics:
• Extended Addresses (page 77)
• Nonextended Addresses (page 78)
Extended Addresses
The following rules apply when you compare extended addresses (EXTADDRs, EXT32ADDRs, and
EXT64ADDRs):
• Use signed relational operators to compare extended addresses. Unsigned operators are not
valid.
• If you compare an EXTADDR or EXT32ADDR address to a constant, the constant must be a
32-bit integer.
• If you compare an EXT64ADDR address to a constant, the constant must be of type FIXED.
• If you compare two different sized extended addresses, the smaller address is implicitly cast
to the larger address and then compared.
NOTE: The address types, EXT32ADDR, EXT64ADDR, PROC32ADDR, and PROC64ADDR are
available in the 64-bit addressing functionality added to the EpTAL compiler starting with SPR
T0561H01^AAP. For more information, see Appendix E, “64-bit Addressing Functionality”
(page 531).
Comparing Addresses 77