This shows you the differences between two versions of the page.
cc65:symbols_in_local_scopes [2011-07-10 19:51] uz |
cc65:symbols_in_local_scopes [2012-07-22 09:02] (current) uz Typo fix |
||
---|---|---|---|
Line 52: | Line 52: | ||
</code> | </code> | ||
- | the assembler doesn't know if a local definition for ''condition' will follow, so it delays evaluation of the expression until the local scope is closed. But expressions in ''.IF'' commands must actually be known when they're parsed. Which is why you get an error in this case. | + | the assembler doesn't know if a local definition for ''condition'' will follow, so it delays evaluation of the expression until the local scope is closed. But expressions in ''.IF'' commands must actually be known when they're parsed. Which is why you get an error in this case. |
The solution is the same as above. Just tell the assembler that you're talking about the global symbol: | The solution is the same as above. Just tell the assembler that you're talking about the global symbol: |