I think I had that one before. Try this one:
void foo()
{
    void* foopt = cast(void*)&foo;
    asm
    {
        naked;
        mov EAX fooptr;
    }
}

On Tue, May 15, 2012 at 11:33 PM, Mehrdad <[email protected]> wrote:

> How do get the address of a function in naked assembly code?
>
> void foo()
> {
>        asm
>        {
>                naked;
>                mov EAX, &foo;
>        }
> }
>
> This doesn't work...
>



-- 
Bye,
Gor Gyolchanyan.

Reply via email to