Message-Id: <199604260741.DAA15437@delorie.com> Date: Fri, 26 Apr 96 10:40:55 LIT From: Martynas Kunigelis Subject: Getting EIP To: DJGPP mailing list >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