Why aren't we consistent on displacement in x86 disassembler?

H. J. Lu hjl@lucon.org
Thu Apr 26 15:59:00 GMT 2007


On Thu, Apr 26, 2007 at 04:36:25PM +0100, Jan Beulich wrote:
> >We can do one of
> >
> >1. Use decimal on all 8bit displacements and hex on all 16/32bit
> >displacement.
> >2. Use hex on all displacements.
> >
> >Any comments?
> 
> I'd prefer option 2. Jan

I have another idea. We use decimal on all displacements which
can be fitted in 8 bits since -128 is easier to read than
0xffffff80 and is what is in the original assembly code anyway.


H.J.



More information about the Binutils mailing list