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] |
> > > 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 How big is your offset? I need to know the exact number. FYI, jcxz/jecxz can only take a signed byte disp. But gas treats the disp as unsigned byte. > 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. > Ken, Ian, I have sent you guys a patch for that. You don't like it. It may bit them now. -- H.J. Lu NYNEX Science and Technology, Inc. hjl@nynexst.com