Assembly Language Help (alang.hlp) (
Table of Contents;
Topic list)
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.
Start Stack Segment
◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Syntax: .STACK [size]
See also: @stack, .MODEL, .DATA, .DATA?, .FARDATA, .FARDATA?,
.CODE, .CONST, SEGMENT, Table of Memory Models
Description:
Creates the program stack segment (with segment name STACK) nested
inside the current segment, if any. The .MODEL directive must
precede this directive. The .MODEL directive generates a GROUP
statement that places the STACK segment in DGROUP unless the
FARSTACK attribute is given.
A single .STACK statement opens and closes the stack segment,
so you should not include an additional ENDS statement.
The <size> parameter specifies size of the stack in bytes (default
1024).
-♦-