flat assembler
Message board for the users of flat assembler.

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: 389
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 passes, 0.6 seconds, 82432 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: 389
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: 6981
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: 389
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: 389
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: 125
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 rsp, 8*6
        mov qword [rsp+4*8], 0  ;Reserved       
        mov r9, outWritten
        mov r8d, [charCount]    ;charCount
        mov rdx, buffChar
        mov rcx, [consoleHandle]
        call [WriteConsoleA]
        add rsp, 8*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: 389


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: 389
Post 10 Nov 2017, 07:20
View user's profile Send private message Reply with quote
Roman



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



Joined: 05 Mar 2010
Posts: 125
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: 389
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: 389
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


Copyright © 1999-2018, Tomasz Grysztar.

Powered by rwasa.