The information in this article applies to:
SUMMARYThe following sample code will be used to explain segment relative and group relative:
When defining data, fixups are relative to the start of the segment.
The variable data_pointer will have an address relative to the start
of the aseg segment. If you want the variable to have an address
relative to the start of the group, you can explicitly state the
offset relative to dgroup as follows.
The exception is when you are using simplified segment directives.
In that case, group relative fixups always are used rather than
segment relative.
In code segments, fixups are relative to either segment or group depending on the ASSUME statements. In other words, the ASSUME STATEMENT is checked before the fixup is generated. The exception here is the same as above. When using simplified segment directives, group relative fixups are the default. The OFFSET operator is segment relative and is discussed further in the following article in the Microsoft Knowledge Base: Q30517 OFFSET Operator Is Segment Relative Additional query words: 5.10
Keywords : |
Last Reviewed: January 4, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |