flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Main > Why i not get in text file info from fasm.exe about error ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 343
Why i not get in text file info from fasm.exe about error ?
Win 7 64 bit Service Pack 1.
I run bat file:

Code:

fasm.exe "DX11.asm" d11.exe >> out.txt 
pause




If in DX11.asm file error syntax like mogg eax,10 i see in console line number witch error.
but in out.txt file i see only

Code:
flat assembler  version 1.69.03  (1428357 kilobytes memory)



If DX11.asm code compile successful i see in out.txt

Code:
flat assembler  version 1.69.03  (1433517 kilobytes memory)
5 passes0.6 seconds82432 bytes.



Why fasm not output in out.txt file text about line error and syntax error ?


Last edited by Roman on 26 Oct 2017, 07:26; edited 1 time in total
Post 26 Oct 2017, 07:18
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 343
PS: I try do bat fasm DX11.asm -s d11.fas
but get very big text file.
I get all lines my code in d11.fas ! This method uncomfortable.
Very big text file.
Post 26 Oct 2017, 07:24
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6633
Location: Kraków, Poland
The information about error goes to STDERR and not STDOUT. Use "2>>" to redirect it:

Code:
fasm.exe "DX11.asm" d11.exe >> out.txt 2>> err.txt

Post 26 Oct 2017, 07:48
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 343
Thanks Tomasz for your help !
Now work perfect !
Post 26 Oct 2017, 07:58
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 343
My Question.
Impassible output info(not in file err.txt) in commandline or win clipboard ?
And my program get this info from (invoke GetCommandLine )
Post 26 Oct 2017, 08:22
View user's profile Send private message Reply with quote
donn



Joined: 05 Mar 2010
Posts: 64
Hi Roman,

I don't really use the console much, but if you're trying to write to the console, maybe something along the lines of:


Code:
        sub rsp8*6
        mov qword [rsp+4*8], 0  ;Reserved       
        mov r9outWritten
        mov r8d, [charCount]    ;charCount
        mov rdxbuffChar
        mov rcx, [consoleHandle]
        call [WriteConsoleA]
        add rsp8*6




If you're just trying to get standard error to the console window instead of a file, think it should just be a matter of proper redirection https://support.microsoft.com/en-us/help/110930/redirecting-error-messages-from-command-prompt-stderr-stdout. If you're using DX11, you may need to redirect the window'ed app some more, not sure.

Just some ideas, good luck. https://docs.microsoft.com/en-us/windows/console/setstdhandle
Post 26 Oct 2017, 20:30
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 343


Last edited by Roman on 10 Nov 2017, 13:25; edited 4 times in total
Post 10 Nov 2017, 07:09
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 343
Post 10 Nov 2017, 07:20
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 343
Post 10 Nov 2017, 07:28
View user's profile Send private message Reply with quote
donn



Joined: 05 Mar 2010
Posts: 64
Nice, you got the error info
Post 10 Nov 2017, 17:07
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 343
Thanks.
Now GUI looks awful.
I must do many things in my program.
And make GUI interface more enjoyable.
Now i upgrade my GUI interface for crazy things.
Post 10 Nov 2017, 19:05
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 343
New video.
Update background.
And add 2 cool things !
https://www.youtube.com/watch?v=ejYDVofkRs0&feature=youtu.be
Post 11 Nov 2017, 18:41
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.