flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
zhak 28 Apr 2021, 14:39
Looks like no, as
Code: calminstruction inst local sym arrange sym, '1' asmcmd =display sym local sym asmcmd =display sym end calminstruction just displays two '1's |
|||
![]() |
|
Tomasz Grysztar 28 Apr 2021, 14:59
Each CALM instruction has its own namespace, and LOCAL just forces a symbol to be considered present in that namespace, to prevent looking for global definitions. Note that if there is no global (meaning: in any of the parent namespaces) symbol defined with such name, then the one in the instruction's own namespace is going to be used anyway (even if you do not use LOCAL). What CALM's LOCAL actually does is that it gives the symbol a defined but unusable value, to force the symbol look-up to stop at the local level instead of going to the parent namespaces.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.