pTAL Reference Manual (H06.08+)
Hardware Indicators
HP pTAL Reference Manual—523746-006
13-4
$CARRY
°
$FIX of a REAL or REAL(64) value
°
$FIXD
°
$FIXI
°
$FIXL
°
$FIXR of a REAL or REAL(64) value
°
$INT of a FIXED, REAL, or REAL(64) value
°
$INTR of a FIXED, REAL, or REAL(64) value
°
$FIXEDTOASCII
°
$SCALE for which 1 <= exponent <= 4
°
The next statement is an IF statement that tests $OVERFLOW.
$CARRY
You can test $CARRY if the root operator is one of the following:
•
Signed integer addition or subtraction
INT i, j, k;
i := j + k; ! $CARRY can be tested after this statement
i := j - k; ! $CARRY can be tested after this statement
•
Unsigned integer addition or subtraction
INT i, j, k;
i := j '+' k; ! $CARRY can be tested after this statement
i := j '-' k; ! $CARRY can be tested after this statement
•
Unary minus
INT i;
i := -i; ! $CARRY can be tested after this statement
Condition Codes
When the condition code is accessible following an assignment statement, the numeric
value of the evaluated expression
on the right side of the assignment statement
determines the value of the condition code.
Topics:
•
When Condition Codes Are Accessible on page 13-5
•
When Condition Codes Are Not Accessible on page 13-5










