flat assembler
Message board for the users of flat assembler.

Index > Main > Output filename

Author
Thread Post new topic Reply to topic
TimK



Joined: 14 Feb 2010
Posts: 20
TimK
How to define output file name for FASM generated exe's? There is no corresponding cmdline switches... May be some source directive?
Post 16 Feb 2010, 22:24
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Code:
fasm file.asm output.exe    
Post 16 Feb 2010, 22:34
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
TimK



Joined: 14 Feb 2010
Posts: 20
TimK
Smile Thanks!
Post 16 Feb 2010, 22:49
View user's profile Send private message Reply with quote
bitshifter



Joined: 04 Dec 2007
Posts: 764
Location: Massachusetts, USA
bitshifter
Also, fasm uses the NAME of the file being assembled.
And fasm recognizes some standard types internally...

Make 16Bit DOS .COM program...
Code:
org 0x0100    


Make Win32 portable executable...
Code:
format PE GUI 4.0    


Make a MZ executable (.EXE) file...
Code:
format MZ    


Make a binary file with user defined extension...
Code:
format binary as 'BIN'    


There are many more, but these are the ones i have used...
See the manual for a better explanation of these directives...
Post 17 Feb 2010, 01:18
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17287
Location: In your JS exploiting you and your system
revolution
bitshifter wrote:
Make a binary file with user defined extension...
Code:
format binary as 'BIN'    
Binary format defaults to 'bin' anyway. Or did you want THE ALL CAPS EXTENSION? Wink
Post 17 Feb 2010, 01:30
View user's profile Send private message Visit poster's website Reply with quote
bitshifter



Joined: 04 Dec 2007
Posts: 764
Location: Massachusetts, USA
bitshifter
Hehe, good point...
It was just to show how to define custom extension Smile
Post 17 Feb 2010, 19:13
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.