flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Expanding symbolic constants when passing them to a macro.

Author
Thread Post new topic Reply to topic
ranincrossbow



Joined: 01 Feb 2007
Posts: 2
ranincrossbow
What i want to do is to generate a list of name symbols that whould then be used to generate both import and export tables of a PE. I do the following.

I make the following definition:
Code:
LIST fix func1, func2, func3, func4, func5    
Then i assemble another list:
Code:
irp item, LIST {
common
    EXP_LIST equ 'mydll.dll'
forward
    EXP_LIST equ EXP_LIST, exp_#item, `item
}    
The result of that macro would be equal to:
Code:
EXP_LIST equ 'mydll.dll', exp_func1, 'func1', exp_func2, 'func2', exp_func3, 'func3', exp_func4, 'func4', exp_func5, 'func5'    
Then i want to pass EXP_LIST to the standart export macro, buf the following does not work:
Code:
export EXP_LIST    


Is there any possibility to overcome that?
Post 02 Feb 2007, 08:22
View user's profile Send private message ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7797
Location: Kraków, Poland
Tomasz Grysztar
Post 02 Feb 2007, 09:00
View user's profile Send private message Visit poster's website Reply with quote
ranincrossbow



Joined: 01 Feb 2007
Posts: 2
ranincrossbow


Thanks! The first link was really useful. Smile
Post 02 Feb 2007, 09:59
View user's profile Send private message ICQ Number 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.