
PROGRAMMING CONCEPTS–I 2-15
2.3.9 | Full Segment Definition
Now let us see the traditional model of MASM. In the simplified memory model, it is left
to the loader software to initialize the segment registers. In the traditional model, we use
directives to define segments, and instructions to initialize the segment registers. This is
called the Full Segment definition. The CS and SS registers are automatically initialized
by the loader, but the DS and ES (if the extra segment is being used) will have to be ini-
tialized by the programmer. Let us re-write Example 2.9 using the full segment definition.
Example 2.12
DAT SEGMENT ;start the data segment ...