Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>.data define data segment directive</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
.DATA            Define Data Segment                                Directive

  .DATA

     The .DATA directive is used to start the definition of a data
     segment. All statements that follow are considered part of the data
     segment. You end the definition of the data segment with another
     segment directive (such as .CODE) or an END directive, which
     indicates the end of the file.

     Before you use .DATA, you must have defined a memory model with the
     .MODEL directive.

     The advantage of .DATA is that the data segment's name is translated
     into the standard data segment name for that memory model when the
     file is assembled, which makes it easy to link into high-level
     languages.

See Also: .CODE .CONST .DATA? .FARDATA .MODEL

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson