www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/04/16:12:50

From: "John S. Fine" <johnfine AT erols DOT com>
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
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019