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.
Start a Data Segment
 Example                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   .DATA
 
            .DATA?
 
  See also: .FARDATA, Uninitialized Data Placeholder (?), .MODEL, .CODE,
            .CONST, .STACK, @data, @DataSize, Table of Memory Models
 
  Description:
 
     The .DATA directive starts the initialized data segment (with
     segment name _DATA) and ends the previous segment, if any. The
     .DATA segment should contain all global data that have initial
     values.
 
     The .DATA? directive starts the uninitialized data segment (with
     segment name _BSS) and ends the previous segment, if any. Place all
     uninitialized data in the .DATA? segment.
 
     Although uninitialized data can be placed in the .DATA segment by
     declaring data with the ? operator, use the .DATA? directive to
     minimize the size of the .EXE file and to maximize compatibility
     with other languages.
 
     The .MODEL directive must precede these directives. It generates a
     GROUP statement that places _DATA and _BSS in DGROUP.
                                    -♦-