Using OFFSET with a Group of Data Segments (49246)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 5.1
- Microsoft Macro Assembler (MASM) 5.1a
- Microsoft Macro Assembler (MASM) 5.0
This article was previously published under Q49246 SUMMARY
When using the OFFSET directive to refer to a variable defined in a
SEGMENT that is part of a GROUP, the offset generated is from the
beginning of the SEGMENT if full segment declarations are used.
Normally when using the OFFSET directive, the offset generated is
from the beginning of the GROUP when simplified segment declarations
are used.
This behavior occurs in Microsoft Macro Assembler (MASM) versions
5.0, 5.1, and 5.1a and in QuickAssembler versions 2.01 and 2.51.
Starting with MASM 6.0 you can use the OPTION OFFSET directive to
control whether the offset generated is from the beginning of the
SEGMENT or from the beginning of the GROUP.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | KB49246 |
---|
|