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.
LOCAL (in procedures)
◄Directive Summary► ◄Summary► ◄Example► ◄LOCAL in Macros►
──────────────────────────────────────────────────────────────────────────────
Syntax: LOCAL vardef [,vardef]...
Generates code to create a series of one or more stack (automatic)
variables, which can be accessed only within the current procedure.
The assembler uses the same method used by high-level languages
to create local variables. The .MODEL directive must have previously
used with a langtype argument.
Each vardef takes the following syntax:
name[count][:type]
in which name is the name of the variable, count is an optional
parameter (which must appear in brackets if it is used), and
type is a standard data type which can be preceeded by PTR,
NEAR PTR, or FAR PTR.
Once declared in a LOCAL statement, local variables can be referred
to by name. The assembler translates references to these variables
into references to their actual location on the stack.
See Also: PROC
-♦-