flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [fasmg] Feature request - nologo switch

Author
Thread Post new topic Reply to topic
Mike Gonta



Joined: 26 Dec 2010
Posts: 238
Location: the-ideom
Mike Gonta
A nologo (as well as suppressing the passes/time/size info) command line switch would allow the output from
the display command to be redirected to a file as a clean output file.

_________________
Mike Gonta
the-ideom - now you know how to compile

https://mikegonta.com
Post 06 May 2019, 00:04
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7498
Location: Kraków, Poland
Tomasz Grysztar
This perhaps a good option to have, however to get a clean output file you can also simply redirect DISPLAY with a macro:
Code:
virtual as 'out'
  __display::
end virtual

macro display? values&
        virtual __display
                db values
        end virtual
end macro    
Post 06 May 2019, 08:30
View user's profile Send private message Visit poster's website Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 238
Location: the-ideom
Mike Gonta
Tomasz Grysztar wrote:
This perhaps a good option to have, however to get a clean output file you can also simply redirect DISPLAY with a macro:
Code:
virtual as 'out'
  __display::
end virtual

macro display? values&
        virtual __display
                db values
        end virtual
end macro    
Excellent.
And to get a clean stdout, how about ob (output byte).
Code:
virtual as 'out'
  __output::
end virtual

macro ob? values&
  virtual __output
    db values
  end virtual
end macro    

_________________
Mike Gonta
the-ideom - now you know how to compile

https://mikegonta.com
Post 06 May 2019, 11:25
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7498
Location: Kraków, Poland
Tomasz Grysztar
Starting with version g.ijlx0 there is now "-n" switch that leaves you with a clean DISPLAY output.
Post 09 May 2019, 10:36
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
I don't know the details. So just outputting (some) stuff to stderr isn't good enough??
Post 21 May 2019, 17:14
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7498
Location: Kraków, Poland
Tomasz Grysztar
The errors (including custom error message and source lines listing) go to stderr, while logo and output of DISPLAY directives go to stdout. Stripping the logo with "-n" allows to get pure DISPLAY content on stdout.
Post 21 May 2019, 17:21
View user's profile Send private message Visit poster's website 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-2019, Tomasz Grysztar.

Powered by rwasa.