flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Stoping the compilation |
Author |
|
decard 14 Apr 2004, 15:19
AFAIK there's no such directive in FASM
|
|||
14 Apr 2004, 15:19 |
|
zenek_tm 14 Apr 2004, 17:10
Ok something else then.
I have declared a constant Code: value = 10 Code: foo#value |
|||
14 Apr 2004, 17:10 |
|
vid 14 Apr 2004, 19:27
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. |
|||
14 Apr 2004, 19:27 |
|
zenek_tm 14 Apr 2004, 21:16
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. |
|||
14 Apr 2004, 21:16 |
|
zenek_tm 14 Apr 2004, 21:31
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 } |
|||
14 Apr 2004, 21:31 |
|
zenek_tm 15 Apr 2004, 17:39
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.
|
|||
15 Apr 2004, 17:39 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.