flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > 'listing' directive desired

Author
Thread Post new topic Reply to topic
ronware



Joined: 08 Jan 2004
Posts: 179
Location: Israel
ronware 14 Jan 2004, 19:51
FASM is fantastic (!), but it would be even better if there were a way to generate a listing of exactly what FASM produces. Like NASM with the '-l listfile' commandline option.
Post 14 Jan 2004, 19:51
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 15 Jan 2004, 09:15
Post 15 Jan 2004, 09:15
View user's profile Send private message Visit poster's website Reply with quote
ronware



Joined: 08 Jan 2004
Posts: 179
Location: Israel
ronware 15 Jan 2004, 16:50
THIS IS PERFECT!!!!


Thank you, Privalov, I hope it will make it in the next release!
Post 15 Jan 2004, 16:50
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 24 Jan 2004, 11:46
Here is the 'plugin' version of listing feature - just put this file into the directory of fasm's release you're using, and add line
Code:
include 'listing.inc'    
at the beginning of FASM.ASM - then recompile it, and you've got the version that produces the listing.


Description: listing feature for fasm
Download
Filename: LISTING.INC
Filesize: 6.64 KB
Downloaded: 1014 Time(s)

Post 24 Jan 2004, 11:46
View user's profile Send private message Visit poster's website Reply with quote
ronware



Joined: 08 Jan 2004
Posts: 179
Location: Israel
ronware 25 Jan 2004, 04:58
It always makes a listing Sad What about the version with the third cmd-line parameter?
Post 25 Jan 2004, 04:58
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 25 Jan 2004, 19:12
privalov: i think you should provide such plugins on fasm site, not only on forum only.
Post 25 Jan 2004, 19:12
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 25 Jan 2004, 20:41
This is still highly "unofficial" addition. Maybe if I make it better...
Post 25 Jan 2004, 20:41
View user's profile Send private message Visit poster's website Reply with quote
Posetf



Joined: 01 Mar 2004
Posts: 35
Location: London
Posetf 01 Apr 2004, 16:27
Not a problem for me, but I thought you might like to be told that the end if statement appears to make it loop infinitely, filling the listing file with 00's. An example is:

format PE
section '.data' data readable writeable
showcallinfo = 0
if showcallinfo
trapline dd ?
end if
section '.text' code readable executable
start:
ret
entry start
Post 01 Apr 2004, 16:27
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.