This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]