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.
Select Segment Size
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   OPTION SEGMENT:segmentsize
 
  See also: SEGMENT, .MODEL, Table of Memory Models
 
  Description:
 
     The SEGMENT:USE16 option selects 16-bit segments. The SEGMENT:USE32
     option selects 32-bit segments. The SEGMENT:FLAT option selects
     the 32-bit flat segment. This option overrides the segment size set
     optionally set by the SEGMENT and .MODEL directives.
 
     The default segment size is selected by the following rules:
 
     ■ A .386 or higher processor selection directive selects USE32.
 
     ■ A .MODEL FLAT statement selects FLAT. All other memory models select
       USE16.
 
     ■ The OPTION SEGMENT: directive will override any other defaults.
 
     ■ In all other cases, the default is USE16.
                                    -♦-