The Macro Assembler is extended with the following new keywords in order to support ANSI-C type definitions.
The structured type definition for
STRUCT can be encoded as in the following listing:
Listing: Definition for STRUCT
typeName: STRUCT
lab1: DS.W 1 lab2: DS.W 1 ...
ENDSTRUCT
where:
- typeName is the name associated with the defined type. The type name is considered to be a user-defined keyword. The Macro Assembler will be case-insensitive on typeName.
- STRUCT specifies that the type is a structured type.
- lab1 and lab2 are the fields defined inside of the typeNametype. The fields will be considered as user-defined labels, and the Macro Assembler will be case-sensitive on label names.
- As with all other directives in the Assembler, the STRUCT and UNION directives are case-insensitive.
- The STRUCT and UNION directives cannot start on column 1 and must be preceded by a label.