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.
.MODEL
◄Directive Summary► ◄Summary► ◄Example► ◄@Model►
──────────────────────────────────────────────────────────────────────────────
Syntax: .MODEL memorymodel [,langtype] [,stacktype]
Initializes the program memory model. Should be placed at the
beginning of the source file before any other simplified segment
directive. .MODEL can only occur once. Creates ASSUME and GROUP
statements used by specified memory model.
If you use the language argument with .MODEL, all procedure names are
public.
memorymodel TINY, SMALL, COMPACT, MEDIUM, LARGE, or HUGE. If you
are writing an assembler routine for a high-level
language, this should match the memorymodel used by the
compiler or interpreter.
langtype C, Pascal, FORTRAN, or BASIC. Instructs the assembler to
follow the naming, calling, and return conventions for
the indicated language.
stacktype Legal values: nearStack (SS=DS) or farStack (SS!=DS).
nearStack is default.
See Also: @DataSize, .CODE, .DATA, ASSUME, GROUP, EXTRN
-♦-