pTAL Reference Manual (H06.03+)
Arrays
HP pTAL Reference Manual—523746-005
8-6
Declaring Read-Only Arrays
Declaring Read-Only Arrays
A read-only array declaration allocates storage for a nonmodifiable array in a user
code segment. Read-only arrays are sometimes referred to as p-relative arrays,
because they are addressed using the program counter (the p register).
type
is any data type described in Declaring Arrays on page 8-2 except UNSIGNED.
The data type of a read-only array cannot be an address type.
identifier
is the identifier of the read-only array.
range
lower-bound
is an INT or INT(32) constant expression (in the range -32,768 through 32,767)
that specifies the index (relative to the zeroth element) of the first array
element you want allocated. The default value is 0.
upper-bound
is an INT or INT(32) constant expression (in the range -32,768 through 32,767)
that specifies the index (relative to the zeroth element) of the last array element
you want allocated. The default value is the number of elements initialized
minus one.
'p'
specifies a read-only array.
type identifier
range
=
'p' := initialization
,
;
VST022.vsd
[ lower-bound : ]upper-bound
VST993.vsd










