| delorie.com/archives/browse.cgi | search |
| Message-Id: | <199604260741.DAA15437@delorie.com> |
| Date: | Fri, 26 Apr 96 10:40:55 LIT |
| From: | Martynas Kunigelis <martynas DOT kunigelis AT VM DOT KTU DOT LT> |
| Subject: | Getting EIP |
| To: | DJGPP mailing list <djgpp AT delorie DOT com> |
>Does anyone know how to get the IP (Instruction Pointer) (the PC for you > >MIPS people) using gas or djgpp. > >Jason Killen >jkillen AT tinuviel DOT cs DOT wcu DOT edu Try this: .... call foo ... /* you got your EIP in EAX now */ foo: movl (%esp), %eax ret huh, this comes from my Z80 assembly experience. ages ago.... Martynas
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |