Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Define Segment Ordering
 Example                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:  .SEQ
 
           .DOSSEG
 
           .ALPHA
 
  See also: SEGMENT
 
  Description:
 
     The .SEQ directive outputs segments to the object file in the same
     order they appear in the source code. The .ALPHA directive outputs
     segments to the object file in alphabetical order by segment name.
     The .DOSSEG directive orders segments according to the standard
     DOS convention used by other Microsoft languages:
 
        ■ CODE segments
        ■ Other non-DGROUP segments
        ■ DGROUP segments
             ■ Segments not in BSS or STACK
             ■ BSS class segments
             ■ STACK class segments
 
     When other Microsoft languages are linked with MASM modules,
     or if the .MODEL directive is used, linker automatically uses
     the .DOSSEG ordering.
 
     The .SEQ directive is in effect by default.
 
     The .DOSSEG directive also causes the linker to generate two
     special symbols, _end and _edata. Do not use these names for your
     own symbols.
                                    -♦-