www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/26/16:14:18

Date: Thu, 27 Feb 1997 10:04:37 +0000
From: Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz>
Subject: Re: nasm disassembler
To: djgpp AT delorie DOT com
Reply-to: billc AT blackmagic DOT tait DOT co DOT nz
Message-id: <33155C35.2761@blackmagic.tait.co.nz>
Organization: Tait Electronics NZ
MIME-version: 1.0
References: <19970226 DOT 150434 DOT 7543 DOT 1 DOT fwec AT juno DOT com>

Mark T Logan wrote:
> 
> I just downloaded nasm, and even though I haven't
> had a chance to test it out yet, I am fairly impressed.
> I have a question about the disassembler.  It claims
> to only be able to disassemble a straight binary file,
> no COFF, of ELF formats.  How can I translate GCC
> output (COFF) to simple binary?

IMO, I think it would be better to modify the disassemble to handle coff
and elf (I could help you with the coff format, and DJ has (or at least
had) an exelent coff reference on his web site).  From my look at the
disassembler source, it's only the main() function (or a function
slightly deeper, can't remember) that is file dependent.  The code that
atually does the disassembling work on ONE instruction at a time,
allowing for much more sophisticated disassmeblers.

I beleive nasm's disassembler program is only a demo, not a real tool.

Bill
-- 
Leave others their otherness.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019