The structure for the personnel record shown in Fig. 3-60 could be defined

PERSONNEL_DATA    STRUC
     INITIALS     DB     'XX'
     LAST_NAME    DB     5 DUP(?)
     ID           DB     0,0
     AGE          DB     ?
     WEIGHT       DW     ?
PERSONNEL_DATA    ENDS

The structure definition does not reserve storage or directly preassign values: it merely defines a pattern. Therefore, to reserve the necessary space it must be accompanied by a statement for invoking the structure.

Figure 3-60 Allocation and preassignment of structures.

(a) Without duplication(b) With duplication

Table of Contents | Next page | Previous page

This is page 45.