flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Different variable types in a group of macro arguments |
Author |
|
RIxRIpt 06 Aug 2013, 12:54
How to make/fix macro A (which is below) so it would accept a group of arguments that could be parsed by different macroses (B and C)? I'm stuck on a point where I cannot pass label(address of variable) to macros A with prefix "p=" (i.e. A label1, const1, const2, p=label2, const3) FASM Displays the error: undefined symbol 'label2'.
Code: macro A v1, [vg] { common if ~ vg eq reverse define matched + define matched - match =p==value,vg \{ B value restore matched \} match -,matched \{ C vg restore matched \} restore matched common end if ;Do smth with value v1 } macro B v { ;Do smth with value v } macro C v { ;Do smth with value v } I've also tried to implement this without match checking the type of argument using eqtype [0], by passing label2 to macro A like [label2] P.S. This question has been also asked here. P.P.S. Is it possible to re-send confirmation email from this forums? (I registered here with nick riscript about 6 month ago, but didn't receive any confirmation email) Edit: endif -- sorry, it is "end if" in my code. (fixed here)[/b] Last edited by RIxRIpt on 06 Aug 2013, 13:21; edited 1 time in total |
|||
06 Aug 2013, 12:54 |
|
RIxRIpt 06 Aug 2013, 13:25
I've found a problem. I didn't notice that that definition of "label2" was "Label2", that's why I got an error "undefined symbol"
I'm sorry for that, ty anyway You can close this topic. |
|||
06 Aug 2013, 13:25 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.