pTAL Reference Manual (H06.03+)
HP pTAL Reference Manual—523746-005
7-1
7 Simple Variables
A simple variable is a single-element data item of a specified data type that is not an
array, a structure, or a pointer. After you declare a simple variable, you can use its
identifier in statements to access or change the data contained in the variable. You
must declare variables before you use them.
This section defines the syntax for declaring simple variables. The declaration
determines:
•
The kind of values the simple variable can represent
•
The amount of storage the compiler allocates for the variable
•
The operations you can perform on the variable
•
The byte or word addressing mode of the variable
•
The direct or indirect addressing mode of the variable
•
How the compiler allocates storage for simple variables
•
How you access the variables
Topics:
•
Declaring Simple Variables on page 7-1
•
Specifying Simple Variable Address Types on page 7-3
•
Initializing Simple Variables With Numbers on page 7-4
•
Initializing Simple Variables With Character Strings on page 7-4
•
Examples on page 7-4
Declaring Simple Variables
The simple variable declaration associates an identifier with a single-element data item
and optionally initializes it.
VOLATILE
type
identifier
initialization:=
;
,
VST622.vsd










