flat assembler
Message board for the users of flat assembler.

Index > Main > Quiet FASM

Author
Thread Post new topic Reply to topic
xanatose



Joined: 09 Jan 2004
Posts: 57
xanatose
Is there a flag or option to tell FASM not to output anything except in the case of errors?

Im using it for creating various obj for a makefile at it gets anoying.

with Masm I could use the /nologo option
Post 28 Jun 2005, 01:06
View user's profile Send private message Reply with quote
Kain



Joined: 26 Oct 2003
Posts: 108
Kain
Yes:

fasm file.asm file.obj >temp.txt
...
...
del temp.txt


of course, this won't output the erros...
Post 28 Jun 2005, 03:08
View user's profile Send private message Reply with quote
xanatose



Joined: 09 Jan 2004
Posts: 57
xanatose
Not very usefull Smile

Im using fasm to compile a series of obj and its 2 line output means I need to scroll on a console to catch the errors.

Anyway, I check the source of fasm and did not find an option, instead I edited it and made it quiet. Not an optimal solution but it works for my purposes.
Post 28 Jun 2005, 04:54
View user's profile Send private message Reply with quote
veach1



Joined: 16 Jul 2004
Posts: 165
veach1
I use such .bat file
Code:
@echo off
fasm.exe %1.asm %1.exe
if errorlevel 1 goto er
goto ex
:er
pause
:ex
    
Post 28 Jun 2005, 07:26
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
maybe
Code:
fasm %1.asm %1.exe >file.txt
if errorlevel 1 goto er
goto ex
:er
type file.txt
:ex
del file.txt
    

but in case of error you still have to overgo those 2 lines.
Post 28 Jun 2005, 07:49
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
or you can always modify fasm code and recompile it:

(fasm.asm of win32 console version, line 10-11):
Code:
;        mov     esi,_logo
;        call    display_string    


line 25, after "call formatter", add:
Code:
        xor     al,al
        jmp     exit_program    
Post 28 Jun 2005, 13:49
View user's profile Send private message Visit poster's website Reply with quote
xanatose



Joined: 09 Jan 2004
Posts: 57
xanatose
Thanks everyone for responding.
Post 29 Jun 2005, 03:16
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.