flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > match question... |
Author |
|
Tomasz Grysztar 02 Jul 2006, 11:51
Actually you get "const.a.1 equ 1" and "const.a.2 equ 2" here.
PS. Look into section 2.3.7 to get the information necessary for interpretations. |
|||
02 Jul 2006, 11:51 |
|
Joshua 02 Jul 2006, 12:15
Sorry, you're right, i interpreted the results wrong...
What i need is a list of macro variables actually... Code: macro m var { List equ List,var } a equ 1 m a In old versions with fix this resulted in: List fix List,a Now with all equates this is: List equ List,1 (because equ evaluates equ) |
|||
02 Jul 2006, 12:15 |
|
vid 02 Jul 2006, 12:26
i think there is "define" which doesn't evaluate equates on it's right side, see manual, i'm not sure
|
|||
02 Jul 2006, 12:26 |
|
Tomasz Grysztar 02 Jul 2006, 12:37
That's right, you should use DEFINE:
Code: macro m var { match list_elements, List \{ define List list_elements,var \} } a equ 1 m a (the MATCH is needed because "define List List,var" wouldn't replace the "List" and thus would be unuseful). |
|||
02 Jul 2006, 12:37 |
|
Joshua 02 Jul 2006, 14:30
thanks!
|
|||
02 Jul 2006, 14:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.