flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > [fasmg, CALM] case insensitive instruction with dot in name |
Author |
|
Tomasz Grysztar 29 Apr 2021, 12:46
Dot is the namespace separator, so it is not a definition of instruction called "B.EQ", but a definition of instruction called "EQ" in the "B" namespace. For "B" namespace to be case-insensitive, it needs such symbol to be defined to anchor it:
Code: define B? ; prepare namespace calminstruction B.EQ? operands& end calminstruction Code: B? = 1 B = 2 macro b.EQ? ; same as: macro B?.EQ? display 'I' end macro macro B.EQ? ; this selects the second namespace, because case-sensitive takes precedence display 'S' end macro B.EQ ; S b.eq ; I B?.EQ ; I |
|||
29 Apr 2021, 12:46 |
|
zhak 29 Apr 2021, 13:34
Ah, I see. I tried wrapping all in "namespace", obviously without success. Thanks a lot!
|
|||
29 Apr 2021, 13:34 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.