The information in this article applies to:
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.
MORE INFORMATIONThe code below will demonstrate this behavior. The OFFSET directive generates an offset relative to the beginning of the SEGMENT instead of the beginning of the GROUP. When a segment override is used to specify the segment to take the address relative to, the expected offset is generated. Also, the LEA instruction generates the offset relative to the segment the DS register is assumed to. Sample Code
Additional query words: kbinf 5.00 5.10 5.10a
Keywords : |
Last Reviewed: January 7, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |