From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@nynexst.com (H.J. Lu) To: dj@stealth.ctron.com (DJ Delorie) Cc: gas2@cygnus.com, masaki@eie.minolta.co.jp, raeburn@cygnus.com (Ken Raeburn), ian@cygnus.com (Ian Lance Taylor) Subject: Re: [masaki@eie.monolta.co.jp: GAS bug and etc] Date: Fri, 11 Nov 1994 07:06:00 -0000 Message-id: <9411111506.AA05546@titanic.nynexst.com> References: <9411111450.AA12152@delorie> X-SW-Source: 1994/msg00187.html > > > 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