[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
STACK            Define a Stack Segment                          Combine Type

  segname   SEGMENT STACK

    Causes the linker to concatenate all segments having the same segment
    name, and to assign all addresses in such segments relative to the SS
    register.

       Notes:     The STACK combine type is the same as the PUBLIC combine
                  type, except that SS is the default segment register for
                  segments of the STACK type. The SP register is
                  initialized to the end of this new concatenated STACK
                  segment.

                  If there is not at least 1 stack segment, the Linker
                  will give a warning stating that no stack segment was
                  found.

                  If a stack segment is created but the STACK combine type
                  is not used, the user must explicitly load the SS
                  register with the segment address.

                  If no combine type is specified, the segment gets its
                  own physical segment when loaded into memory.

See Also: AT COMMON MEMORY PUBLIC
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson