On Apr 1, 3:25 am, Frank Kotler <spamt...@[EMAIL PROTECTED]
> wrote:
> Rod Pemberton wrote:
> > "junkoi" <spamt...@[EMAIL PROTECTED]
> wrote in message
>
>news:4b84e752-f698-4555-a9de-5794d02fe139@[EMAIL PROTECTED]
>
> >>I am wring some code that mix 16bit and 32bit code in asm and C.
> ...
> > 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.
>
> 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...
>
OK, never mind. I found the trick to diassemble 16bit code with
objdump: just use the option "-m i8086". the result is beautiful!!!
i think objdump is a better choice than ndisasm in case you want to
cor****ate the souce code (C) into the output.
Thanks,
J


|