flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > are macros that can do expression evaluation supported ?

Author
Thread Post new topic Reply to topic
fasmFUN



Joined: 25 May 2019
Posts: 5
fasmFUN
hey all.
are macros that can do expression evaluation supported ?
maybe something like this http://masm32.com/board/index.php?topic=94.0 ?
Post 19 Aug 2020, 13:39
View user's profile Send private message Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 807
Location: Belarus
DimonSoft
It’s not clear where on the page is the feature you’re asking for. There is some support for calculations in FASM macros but generally assembly-time features are enough for calculations.
Post 19 Aug 2020, 14:45
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3018
Location: vpcmipstrm
bitRAKE
fasm can solve basic algebra at assemble-time. And fasmg even more powerful. Given the 35 page post at the forum, it seems like you are looking for a code generator, though. If that is the case, why not just use a compiler then? A far more powerful tool for code generation.
Post 20 Aug 2020, 01:32
View user's profile Send private message Visit poster's website Reply with quote
fasmFUN



Joined: 25 May 2019
Posts: 5
fasmFUN
bitRAKE wrote:
it seems like you are looking for a code generator, though. why not just use a compiler then?

SO from your question i GUESS that the answer is: 'NO it's NOT possible. look for a better assembler.'
Post 22 Aug 2020, 17:35
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3018
Location: vpcmipstrm
bitRAKE
I'm glad you are able to get around to what you are trying to say.

_________________
¯\(°_o)/¯ unlicense.org
Post 22 Aug 2020, 19:38
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17624
Location: In your JS exploiting you and your system
revolution
Expression evaluation is native in the assembler. No need for a macro to do it.
Code:
mov eax, 1 + 2 * (3 + 4)    
Post 22 Aug 2020, 23:42
View user's profile Send private message Visit poster's website Reply with quote
fasmFUN



Joined: 25 May 2019
Posts: 5
fasmFUN
revolution wrote:
Expression evaluation is native in the assembler. No need for a macro to do it.
Code:
mov eax, 1 + 2 * (3 + 4)    

and with variables ?
Post 26 Aug 2020, 21:18
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17624
Location: In your JS exploiting you and your system
revolution
fasmFUN wrote:
revolution wrote:
Expression evaluation is native in the assembler. No need for a macro to do it.
Code:
mov eax, 1 + 2 * (3 + 4)    

and with variables ?
Yes. fasm is multi-pass and it can solve many expressions with variables or constants. Try it.
Post 26 Aug 2020, 22:50
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.