pTAL Reference Manual (H06.08+)
Simple Variables
HP pTAL Reference Manual—523746-006
7-2
Declaring Simple Variables
VOLATILE
specifies that the value of this variable must be maintained in memory, not in a
register. Each reference to a VOLATILE data item causes the data item to be read
or written to memory even when code is optimized. Based on the order of reads
and writes in the source code, VOLATILE also causes that precise order of
memory references to be preserved, again, when code is optimized.
type
is one of the following data types:
•
BADDR
•
CBADDR
•
CWADDR
•
EXTADDR
•
INT
•
INT(32)
•
FIXED
•
FIXED (fpoint )
•
PROCADDR
•
REAL
•
REAL
•
REAL(64)
•
SGBADDR
•
SGWADDR
•
SGXBADDR
•
SGXWADDR
•
STRING
•
UNSIGNED (width )
•
WADDR
fpoint
For the FIXED data type, fpoint is the implied fixed-point setting. fpoint is
an integer in the range -19 through 19. If you omit fpoint, the default fpoint is
0 (no decimal places).
A positive fpoint specifies the number of decimals to the right of the decimal
point. A negative fpoint specifies a number of integers to the left of the
decimal point.
fpoint can also be an asterisk (*).










