objdump for dos or windows

This is a discussion on objdump for dos or windows within the Tech Board forums, part of the Community Boards category; I'm in the mood recently to stretch my assembly muscles, and I am trying to find a good, free disassembler ...

  1. #1
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738

    objdump for dos or windows

    I'm in the mood recently to stretch my assembly muscles, and I am trying to find a good, free disassembler for 16-bit DOS executables.

    Surprisingly...it's difficult.

    Really all I want is something as simple as objdump in Linux, where I could something like:

    objdump -d my_binary some_output_file.txt
    Anyone know of anything good to be able to do this?
    My Website

    "Circular logic is good because it is."

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,272
    ndisasm works reasonably well, though you need to fool with the command line options to get it just right, since it doesn't have the ability to interpret the EXE header. And for multi-segment (medium or large memory model) executables it will most likely get confused.

    I've never tried it, but "dumpbin /disasm foo.exe" might work on 16-bit binaries. dumpbin comes with Visual Studio.

    There used to be this incredibly awesome program for disassembling DOS binaries called "Sourcer," I wonder if it's still around.

    EDIT: Good old "debug.exe" can unassemble 16-bit code as well.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    Registered User carrotcake1029's Avatar
    Join Date
    Apr 2008
    Posts
    398
    Why not objdump from a mingw distribution?

  4. #4
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    493
    i think if you go after nasm you'd be in more luck, as far as i remember it was open source and both 16 and 32bit versions should be out there without that much of effort.


    and here it is ,
    Code:
    http://www.icewalkers.com/Linux/Software/52270/NASM.html
    Last edited by Masterx; 02-25-2010 at 08:39 AM.
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
    Bill Bryson


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows 98/2000 programming in Windows XP
    By Bill83 in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 03:16 PM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 06:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 03:55 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 01:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 06:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21