From: Nate Eldredge Newsgroups: comp.os.msdos.djgpp Subject: Re: far calls with inline AT&T Date: 31 May 2001 11:13:39 -0700 Organization: MindSpring Enterprises Lines: 24 Sender: nate AT mercury DOT bitbucket DOT com Message-ID: <831yp5xu7g.fsf@mercury.bitbucket> References: <3B156A6F DOT 291FC4B3 AT mailandnews DOT com> <9003-Thu31May2001062959+0300-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: a5.f7.d9.bf Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Server-Date: 31 May 2001 18:13:40 GMT User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" writes: > > From: "J. Weeks" > > Newsgroups: comp.os.msdos.djgpp > > Date: Wed, 30 May 2001 17:47:27 -0400 > > > > I want to call a callgate at descriptor 0x28, so my code is as follows: > > __asm__( > > "mov $0x28, %ax\n" \ > > "mov %ax, %es \n" \ > > "call %es:0x0 \n"); > > > > But it keeps telling me its ignoring my prefix (which I assume to be the > > %es:... ). Any ideas why, and how I can go about this far call. > > Use "lcall", not "call". And use a comma instead of a colon. (This is described in the as manual, under "i386 dependencies".) -- Nate Eldredge neldredge AT hmc DOT edu