Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

good disassembler for mixed 16bit and 32bit code?
Hi,

I am wring some code that mix 16bit and 32bit code in asm and C. To
fight some bugs I am having, I need to diassemble the code.
Unfortunately I found that objdump is horrible: it very often produces
bad disassembly that is very different from the source, so I cannot
understand where the problem is.

I use objdump with option "-S -d". So could anybody tell if if there
is a way to have objdump worked better?

Or: Is there a more reliable disassembler than objdump for what I am
doing?

Thanks,
J


Report this thread to moderator Post Follow-up to this message
Old Post
junkoi
03-31-08 09:20 AM


Re: good disassembler for mixed 16bit and 32bit code?
"junkoi" <spamtrap@crayne.org> wrote in message
news:4b84e752-f698-4555-a9de-5794d02fe139@c19g2000prf.googlegroups.com...
> I am wring some code that mix 16bit and 32bit code in asm and C. To
> fight some bugs I am having, I need to diassemble the code.
> Unfortunately I found that objdump is horrible: it very often produces
> bad disassembly that is very different from the source, so I cannot
> understand where the problem is.
>

It's likely that objdump is 32-bit only...

> I use objdump with option "-S -d". So could anybody tell if if there
> is a way to have objdump worked better?
>
> Or: Is there a more reliable disassembler than objdump for what I am
> doing?
>

I was using NDISASM (comes with NASM assembler) to check your code the other
day.  It uses a very different syntax from GNU AS.  I also use two other
disassemblers rarely: WDIS (Watcom's disassembler - TASM style syntax) and
objdump...

Sorry...


Rod Pemberton


Report this thread to moderator Post Follow-up to this message
Old Post
Rod Pemberton
04-01-08 12:42 AM


Re: good disassembler for mixed 16bit and 32bit code?
Rod Pemberton wrote:
> "junkoi" <spamtrap@crayne.org> wrote in message
> news:4b84e752-f698-4555-a9de-5794d02fe139@c19g2000prf.googlegroups.com...
> 
...
> It's likely that objdump is 32-bit only...
> 
>
> I was using NDISASM (comes with NASM assembler) to check your code the oth
er
> day.

Ndisasm won't do mixed 16- and 32-bit code in one gulp. You'd have to
disassemble once with "-b 16" and once with "-b 32", and cut-and-paste
the two together. Might need other command line switches to set an
origin, a synch point, and/or to skip sections to make it pretty. Not
very convenient, but it should do the job, if you can't find anything
better...

Best,
Frank


Report this thread to moderator Post Follow-up to this message
Old Post
Frank Kotler
04-01-08 12:42 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

A86 Assembler archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:35 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.