The Macro Assembler can provide a way to define a variable with a specific type. This is done using the following syntax ( Listing: Assembly code analog of a C struct of type: myType):
var: typeName
where:
myType: STRUCT field1: DS.W 1 field2: DS.W 1 field3: DS.B 1 field4: DS.B 3 field5: DS.W 1 ENDSTRUCT DataSection: SECTION structVar: TYPE myType ; var `structVar' is of type `myType'