OFFSET Always Returns the END of a Segment Name (75276)
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
This article was previously published under Q75276 SUMMARY
With the release of the Microsoft Macro Assembler (MASM) version 6.0,
the OFFSET operator applied to a segment name now returns the end of
the segment relative to the start of the segment.
This is a change from MASM versions 5.x where "OFFSET segname" will
return the beginning of the segment if it is declared class 'CODE'.
If the segment is declared of some other class, "OFFSET segname"
will return either the end of the segment relative to the beginning
of a segment if full segment definitions are used, or the end of the
segment relative to the start of the group the segment was contained
in if simplified directives are used.
Modification Type: | Major | Last Reviewed: | 10/29/2003 |
---|
Keywords: | KB75276 |
---|
|