From: "John S. Fine" Newsgroups: comp.os.msdos.djgpp Subject: Re: Inline asm problem Date: Thu, 04 Feb 1999 11:17:29 -0500 Lines: 18 Message-ID: <36B9C819.514A@erols.com> References: <36B902B4 DOT 7F00 AT geocities DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: AiHkj+RNyaOCx7unCHthYnXFnNa5LRwvjNmn553X7RQ= X-Complaints-To: abuse AT rcn DOT com NNTP-Posting-Date: 4 Feb 1999 16:18:43 GMT X-Mailer: Mozilla 3.01 (Win95; U) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Andrew Kesterson wrote: > movl %%eip, %0\n No such instruction is possible. You can't directly use eip that way. I can only guess at what you are trying to do, but if my guess is correct, the usual way is to do a call to the immediatly following instruction (that call just pushes eip on the stack) and then do a pop %0. I don't know AT&T inline syntax well enough to give you correct code. -- http://www.erols.com/johnfine/ http://www.geocities.com/SiliconValley/Peaks/8600/