pTAL Reference Manual (H06.08+)

Procedures, Subprocedures, and Procedure
Pointers
HP pTAL Reference Manual523746-006
14-12
Formal Parameter Specification
PROC
is the address of the entry point of a procedure. You must assign PROC to a
PROCPTR before you can call it.
type
specifies that the parameter is a function procedure, the return value of which
is one of the following data types:
width
is a constant expression that specifies the number of bits in the variable.
The result of the constant expression must be one of the following values:
UNSIGNED parameters must be passed by value; you cannot use an
indirection symbol (see Table 2-7, Indirection Symbols, on page 2-7) with
UNSIGNED parameters.
fpoint
is an integer in the range -19 through 19 that specifies the implied decimal
point position. The default is 0 (no decimal places). A positive fpoint
specifies the number of decimal places to the right of the decimal point. A
negative fpoint specifies a number of integer places to the left of the
decimal point.
*
prevents scaling of the fpoint of a FIXED actual parameter to match the
fpoint in the parameter specification. Such scaling might cause loss of
precision. The called procedure treats the actual parameter as having an
fpoint of 0.
Data Type
width
INT 16, 32, or 64
REAL 32 or 64
UNSIGNED A value in the range 1 through 31
STRING
INT
REAL
UNSIGNED
FIXED
(
width
(
width
)
)
( )
fpoint
*
VST214.vsd