TAL Reference Manual

TAL Reference Manual526371-001
7-1
7 Arrays
In TAL, an array is a one-dimensional set of elements of the same data type. Each
array is stored as a collective group of elements. Once you declare an array, you can
use its identifier to access the array elements individually or as a group.
This section defines the syntax for declaring arrays. The declaration determines:
The kind of values the array can represent
The amount of storage the compiler allocates for the array
The operations you can perform on the array
The byte or word addressing mode of the array
The direct or indirect addressing mode of the array
You can declare:
Arrays—which are stored in the user data segment or in an extended data
segment
Read-only arrays—which are stored in a user code segment
For more information on syntax for declaring arrays within structures, see Section 8,
Structures. This section also explains how to declare structures that simulate arrays of
arrays or arrays of structures (including multidimensional arrays).
The
TAL Programmer’s Guide describes:
How to make assignments to arrays
How to copy, scan, or compare data in arrays
How the compiler allocates storage for arrays
Array Declaration
An array declaration associates an identifier with a set of elements of the same data
type. The array elements are contiguously stored in the user data segment or in an
extended data segment.