www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/01/20:58:37

From: Nate Eldredge <neldredge AT hmc DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Setting a variable's selector?
Date: 01 Dec 1999 16:52:24 -0800
Organization: InterWorld Communications
Lines: 13
Message-ID: <83aenutb93.fsf@mercury.st.hmc.edu>
References: <3845a29a DOT 0 AT samba>
NNTP-Posting-Host: mercury.st.hmc.edu
X-Trace: nntp1.interworld.net 944096002 88231 134.173.45.219 (2 Dec 1999 00:53:22 GMT)
X-Complaints-To: usenet AT nntp1 DOT interworld DOT net
NNTP-Posting-Date: 2 Dec 1999 00:53:22 GMT
X-Newsreader: Gnus v5.7/Emacs 20.4
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Gareth Williams" <ghw2002tii AT hotmail DOT com> writes:

> Also, is it possible to read %%eip with gas?

It's not possible to do it directly on an x86, but this will work:

	call 0f
0:	popl %eax  # #eip value is now in %eax

-- 

Nate Eldredge
neldredge AT hmc DOT edu

- Raw text -


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