pTAL Reference Manual (H06.08+)
Statements
HP pTAL Reference Manual—523746-006
12-27
Testing Address Types
You can nest IF statements to any level.
Topics:
•
Testing Address Types on page 12-27
•
Testing Hardware Indicators on page 12-27
Testing Address Types
An IF statement can test the following as if they were Boolean values:
•
Any 16-bit-compatible value:
°
INT
°
STRING
°
UNSIGNED(1-16)
•
All address-typed variables except:
°
CBADDR
°
CWADDR
°
PROCADDR
Testing Hardware Indicators
pTAL does not have the hardware indicators—the overflow bit, the carry bit, or the
condition codes—that TAL has. Instead, the compiler emits code that supports the
$OVERFLOW, $CARRY, and condition code test operators (<, >, =, <=, >=, <>,'<', '>',
'=', '<=', '>=', '<>').
For more information, see Section 13, Hardware Indicators.










