pTAL Reference Manual (H06.08+)
Built-In Routines
HP pTAL Reference Manual—523746-006
15-78
$POINT
$POINT
$POINT returns the fpoint value (as an integer) of a FIXED expression.
fixed-expression
is a FIXED expression.
The compiler emits no instructions when evaluating fixed-expression ; therefore,
fixed-expression cannot call a routine and cannot be an assignment expression.
$PROCADDR
$PROCADDR converts an INT(32) value to a PROCADDR address.
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
Example 15-74. $POINT Routine
FIXED(3) result;
FIXED(3) a;
FIXED(3) b;
result := $SCALE (a, $POINT (b)) / b;
! Return fpoint of FIXED expression & scale value by that factor
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
( )
VST107.vsd
$POINT
fixed-expression
$PROCADDR
(
identifier
)
VST031.vsd










