Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
.STACK
◄Directive Summary► ◄Summary► ◄Example► ◄@stack►
──────────────────────────────────────────────────────────────────────────────
Syntax: .STACK [size]
Defines the program stack segment (STACK) and ends previous segment,
if any. The .MODEL directive must have previously been used. You
should generally not place any code or data in this segment; the
processor uses the stack segment to store data during procedure and
interrupt calls.
The .MODEL directive generates a GROUP statement that places the STACK
segment in DGROUP, unless the farStack attribute is given.
size Optional; specifies size of the stack in bytes. If none is
given, the default is 1024.
See Also: .DATA, .DATA?, .FARDATA, .MODEL, .CONST
-♦-