Defines the specified symbol name as a local symbol that is valid only within the macro body where it is defined.
Symbol field |
Mnemonic field |
Operand field |
Comment field |
[label:] |
.LOCAL |
symbol-name[, ... ] |
[; comment] |
Defines the specified symbol name as a local symbol that is valid only within the macro body where it is defined. |
If a macro that defines a symbol within the macro body is referenced more than once, the assembler will output a double definition error for the symbol. |
The .LOCAL directive can only be used within a macro definition or in "#pragma inline_asm" in a C source program. |
The .LOCAL directive should be used before the symbol specified in the operand field is referenced. Using this directive at the beginning of a macro body is recommended. |
All symbol names defined through the .LOCAL directive within a module should be different. A single name cannot be assigned to multiple local symbols used in each macro body. |
Reserved words cannot be defined as symbols. When the same symbol as a user-defined symbol is specified, the definition through the .LOCAL directive takes priority. |
If a symbol having the same name as a formal parameter for a macro definition is defined as a local symbol in the definition of the macro through the .LOCAL directive, an error will occur. |