This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


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

Re: [masaki@eie.monolta.co.jp: GAS bug and etc]


> I think gas will add a right address prefix automatically when it sees
> a large offset. Ken?

The problem with using the 16-bit jcxz is that, even if the offset is
small, if the target isn't in the first 64K of memory, the program is
toast.  The reason is that %eip is masked to 0x0000ffff AFTER adding
the offset.  The 32-bit version doesn't do this.  I can't see this
behavior being of *any* use in a 32-bit program, unless you *really*
know what you're doing.