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: 243
Mike Gonta 06 May 2019, 00:04
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
look and see - many look but few see

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



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 06 May 2019, 08:30
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: 243
Mike Gonta 06 May 2019, 11:25
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
look and see - many look but few see

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



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 09 May 2019, 10:36
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 21 May 2019, 17:14
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



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 21 May 2019, 17:21
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.