<<< Creating a Stack | Index | The .CODE Directive >>> |
The .DATA directive creates a near data segment.
This segment contains the frequently used data for your program.
Data segment can occupy
up to 64K in MS-DOS
or up to 512 megabytes under flat model in Windows NT.
.DATA? and .CONST enhance compatibility with Microsoft high-level languages. In Microsoft languages, .CONST is used to define constant data, such as strings and floating-point numbers that must be stored in memory.
The .DATA? segment is used for storing uninitialized variables. You can follow this convention if you want. If you use C startup code, .DATA? is initialized to 0.
<<< Creating a Stack | Index | The .CODE Directive >>> |