I'm trying to get current address and push it to the stack from inline assembler.
Knowing that in MASM current address is accessed with the Current Location Counter $
operator I tried this code snippet
__asm {
int 3
mov eax, $
push eax
};
but instead it pushes 0
I can't figure out what I'm doing wrong and how can I make it to work. I looked all over the internet and couldn't find anything.