Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Assembly Language - <b>stack define a stack segment combine type</b> http://www.X-Hacker.org [<<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

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