flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
decard
AFAIK there's no such directive in FASM
![]() |
|||
![]() |
|
zenek_tm
Ok something else then.
I have declared a constant Code: value = 10 Code: foo#value ![]() |
|||
![]() |
|
vid
impossible (sorry). I got fooled with this too. And due to FASM internal way it works it won't be possible unless some really REALLY big internal changes will be made.
You can obtain similar results by using macro with group argument, in "forward" or "reverse" block. If you give me more concrete example i'll (maybe) show you how. |
|||
![]() |
|
zenek_tm
This is what I want to achieve. It's macro to declare fields in class.
Code: macro var variable { fields#className = fields#className + 1 numer = fields#className field#className#numer equ .#variable ; the dot is there so the fields can be declared without it } I also ask you to check if the syntax in this macro is correct, since I'm still learning it and this macro does not work at all, so there is no way I can test it. |
|||
![]() |
|
zenek_tm
Useful ideas always come late I guess
![]() I believe that this macro should solve my problem. I have no time to test it now though. Code: macro var [variable] { ; field counter is not necessary here common fields#className fix variable ; something like this is in proc macro } Code: macro createstruc { struc className _% forward fields#className ; or maybe even .#fields#className but that I can't tell now ; other declarations %_ struct className } |
|||
![]() |
|
zenek_tm
I solved this problem and started a seperate thread about the macros i'm writing. Any further questions about those macros will be placed in that thread.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.