Message-Id: Date: Mon, 29 Apr 1996 12:49:18 +1200 From: Bill Currie To: djgpp AT delorie DOT com Subject: Re: Getting the IP On 25/4/96 5:27 pm, did thus say >>> > 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 gas code call 1f 1:popl %eax c or c++ asm("call 1f; 1: popl %0":"=g"(ip)); where ip is the destination variable Hope this helps Bill