flat assembler
Message board for the users of flat assembler.

Index > Main > Code of macros

Author
Thread Post new topic Reply to topic
Kicer



Joined: 30 Apr 2005
Posts: 34
Location: Poland
Kicer 21 Sep 2005, 10:18
Hi!
is (or will be) possible to receive in listing file the code of macro?
in example:

code of program:
Code:
macro something param
{
mov eax,param
}

something 2
something 4
    


and then i listing file I wish i could find something like this:
Code:
something 2:
mov eax,2
something 4:
mov eax,4
    

against to:

Code:
                                                macro something param
                                                {
                                                mov eax,param
                                                }
                                                
00000000: 66 B8 02 00 00 00                     something 2
00000006: 66 B8 04 00 00 00                     something 4
    
Post 21 Sep 2005, 10:18
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 21 Sep 2005, 10:47
It's currently not possible because listing can only copy the original lines from source - the lines chewed by preprocessor are in the internal format which cannot be exactly converted back to text.

However at least partial conversion of preprocessed source to readable text is possible, and is already done for example by fasmw's error handler. So it might be only a matter of equipping the listing module with such feature.

In short: not possible with currently officially available tools; though may be possible in future.
Post 21 Sep 2005, 10:47
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.