Imagine I have the following simple C program:
int main() { int a=5, b= 6, c; c = a +b; return 0; }
Now, I would like to know the address of
Tested in Visual Studio 2008:
int addr; __asm { call _here _here: pop eax ; eax now holds the PC. mov [addr], eax } printf("%x\n", addr);
Credit to this question.