PRB: Usage of an ORG Directive in a STRUCT Declaration (111474)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 6.0
- Microsoft Macro Assembler (MASM) 6.0a
- Microsoft Macro Assembler (MASM) 6.0b
- Microsoft Macro Assembler (MASM) 6.1
- Microsoft Macro Assembler (MASM) 6.1a
- Microsoft Macro Assembler (MASM) 6.11
This article was previously published under Q111474 SUMMARY
Beginning with MASM version 6.0, an ORG directive is permitted in a
structure declaration. This enables the generation of a template that can
ease references to the internals of data structures that are predefined,
for example by the operating system, the operating platform, or a high-
level language compiler. A consequence of declaring an ORG in a STRUCT is
that an instance is not intended to be defined in the source file, and in
fact will generate the following error:
error: A2159: structure cannot be instanced
This is the expected behavior.
Modification Type: | Minor | Last Reviewed: | 10/14/2003 |
---|
Keywords: | KB111474 |
---|
|