flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Feature request: Unrolling macros

Author
Thread Post new topic Reply to topic
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY 10 Oct 2006, 23:41
Hi Tomasz!
Is it possible to add an "unrolling macros" feature to either fasm core or FASMW editor?
What I mean is being able to see what the code inside a macro would become.
Example:
Code:
macro say_hello {
invoke MessageBox,0,hellomsg,hellottl,0
jmp @f
hellomsg db "Hello!",0
hellottl db "Macro test",0
}

include '%fasminc%\win32ax.inc'

main:
say_hello
ret
.end main
    


Using unrolling feature at say_hello would show:
Quote:

push 0
push hellottl
push hellomsg
push 0
call [MessageBoxA]


Of course for this example it isn't very usefull, but imagine for complex macros!
I hope you consider this sugestion!
Thanks in advance!
Post 10 Oct 2006, 23:41
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 11 Oct 2006, 01:48
Not sure if this is exactly what you want but maybe helps

http://board.flatassembler.net/topic.php?p=32927#32927

Cheers
Post 11 Oct 2006, 01:48
View user's profile Send private message Reply with quote
MichaelH



Joined: 03 May 2005
Posts: 402
MichaelH 11 Oct 2006, 04:53
Fasmpre is a great tool, I use it as often as fasm itself but like OzzY, I would love if it went that bit further and stripped everything back to bare bones .... it would certainly help if/when a debugger for fasm syntax is incorporated into the fasm package.


Hmmmm....., Tomasz has given us all so much and all we seem to do is ask for more ...... lucky Tomasz has a sense of humour huh Wink
Post 11 Oct 2006, 04:53
View user's profile Send private message 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.