pTAL Reference Manual (H06.03+)

Introduction to pTAL
HP pTAL Reference Manual523746-005
1-5
Recursion
Recursion
Because each activation of a procedure or subprocedure has its own data area, a
procedure or subprocedure can call itself or can call another procedure that in turn
calls the original procedure.
Parameters
A procedure or subprocedure can have optional or required parameters. The same
procedure or subprocedure can process different sets of variables sent by different
calls to it.
Data Types
A pTAL program can declare and refer to the following types of data:
Data Grouping
A pTAL program can declare and use groups of related variables, such as arrays and
structures (records).
Data Type Description
STRING 8-bit integer byte
INT, INT(16) 16-bit integer word
INT(32) 32-bit integer doubleword
FIXED, FIXED(0), INT(64) 64-bit integer quadrupleword
FIXED(-19 to -1) Fixed-point quadrupleword
FIXED(1 to 19) Fixed-point quadrupleword
REAL, REAL(32) 32-bit floating-point doubleword
REAL(64) 64-bit floating-point quadrupleword
UNSIGNED(
n) n-bit field, where 1 <= n <= 31
BADDR 32-bit byte address
WADDR 32-bit 2-byte address
CBADDR 32-bit byte code word address
CWADDR 32-bit 2-byte code word address
SGBADDR 16-bit SG-relative byte address
SGWADDR 16-bit SG-relative 2-byte address
SGXBADDR 32-bit SG-relative 2-byte address
SGXWADDR 32-bit SG-relative 2-byte address
EXTADDR 32-bit byte address
PROCADDR 32-bit code byte address