FASM: Get IP Register Value

Programming, for all ages and all languages.
Post Reply
User avatar
matias_beretta
Member
Member
Posts: 101
Joined: Mon Feb 26, 2007 3:39 pm

FASM: Get IP Register Value

Post by matias_beretta »

Hello, thanks for reading my topic. I think the title of my topic says everything :D
Matías Beretta
User avatar
bluecode
Member
Member
Posts: 202
Joined: Wed Nov 17, 2004 12:00 am
Location: Germany
Contact:

Post by bluecode »

Do a call get (e/r)ip from the stack and then return. Then you will get the (e/r)ip after the call instruction.There is no direct way to get the content of this register.
User avatar
matias_beretta
Member
Member
Posts: 101
Joined: Mon Feb 26, 2007 3:39 pm

thanks

Post by matias_beretta »

thanks ;)
Matías Beretta
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

Post by Craze Frog »

Wouldn't this suffice? (Note: I'm guessing.)

Code: Select all

mov eax, $
User avatar
matias_beretta
Member
Member
Posts: 101
Joined: Mon Feb 26, 2007 3:39 pm

reply

Post by matias_beretta »

yes, i think it would work, but $ is very assembler-specific. thanks anyway!
Matías Beretta
Post Reply