flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > How to save info about compilation in file

Author
Thread Post new topic Reply to topic
ziral2088



Joined: 16 Aug 2009
Posts: 15
Location: Ukraine
ziral2088 27 Jun 2010, 16:11
I need to save info about some data in additional file with macros.
So after compilation i will have two files:
1. main.exe
2. main.info

In main.info i will place some RVAs of procedures.
How can it be done? I dont know any directive to save data to another file...
Post 27 Jun 2010, 16:11
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 28 Jun 2010, 06:06
ziral2088,

Standard output can be used (display) as another output stream with trivial head / tail filtering (it becomes nontrivial in case of error though).
Post 28 Jun 2010, 06:06
View user's profile Send private message Reply with quote
ziral2088



Joined: 16 Aug 2009
Posts: 15
Location: Ukraine
ziral2088 28 Jun 2010, 15:05
How can i write with display command to file?
How can i tell to fasm that i want to create additional file during compilation.
Post 28 Jun 2010, 15:05
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20360
Location: In your JS exploiting you and your system
revolution 28 Jun 2010, 15:10
Code:
format ...
;stuff
display 'My info for output',13,10    
And at the command prompt:
Code:
fasm myUberFile.asm myUberFile.exe > myUberFile.info    
Post 28 Jun 2010, 15:10
View user's profile Send private message Visit poster's website Reply with quote
ziral2088



Joined: 16 Aug 2009
Posts: 15
Location: Ukraine
ziral2088 28 Jun 2010, 22:40
Thanks. That is what i need.
Post 28 Jun 2010, 22:40
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.