Passing a Pointer to a Structure from C to Assembly (62626)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 5.1
- Microsoft Macro Assembler (MASM) 5.1a
- Microsoft Macro Assembler (MASM) 6.0
- Microsoft Macro Assembler (MASM) 6.0a
- Microsoft Macro Assembler (MASM) 6.0b
This article was previously published under Q62626 SUMMARY
The code sample below illustrates how to pass a structure from a C
module to an assembly module. This code makes it possible to access
the structure fields within the assembly module using the "." field
operator.
Within the assembly module a structure is declared. This structure is
used as a template by the assembler to resolve accessing the fields of
the structure. The structure may be given any label name.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | KB62626 |
---|
|