.MODEL Directive Forces DOSSEG Segment Ordering in MASM (68562)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 5.0
- 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
- Microsoft Macro Assembler (MASM) 6.11
This article was previously published under Q68562 SUMMARY
The .MODEL assembler directive forces the segments in the resulting
executable program to be ordered as if the DOSSEG directive had been
used. This will override any other directives used to organize
segments in an executable program. The code below demonstrates this
behavior.
Because of this, the options below will be ignored:
/A and /S command line switches
.ALPHA and .SEQ assembler directives
This behavior is not documented and no warnings or errors are
generated.
This behavior is also true with QuickAssembler versions 2.01 and 2.51.
The .MODEL assembler directive was designed for use in mixed-language
programming. Because of this, it will automatically order the segments
in a way compatible with the way higher-level language compilers order
them. This will happen even if the <,language> option on the .MODEL
directive is not used.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | KB68562 |
---|
|