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.
Local Variables in Macros
 Example                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   LOCAL localname [,localname]...
 
  See also: LOCAL in Procedures, MACRO, REPEAT, FOR, FORC, WHILE,
 
  Description:
 
     Declares a label or symbol for local use within a macro or
     iterative block. The assembler generates a different internal name
     for the symbol each time it expands the macro. The LOCAL directive
     allows you to call a macro that contains local jump statements and
     variable definitions without generating the same label each time
     the macro is expanded.
 
     The <localname> parameter is the name of a label or symbol inside
     the macro. Inside the macro expansion, <localname> takes precedence
     over a global label or symbol with the same name.
                                    -♦-