How to mov EAX, &func?

Mehrdad wfunction at hotmail.com
Tue May 15 12:33:41 PDT 2012


How do get the address of a function in naked assembly code?

void foo()
{
	asm
	{
		naked;
		mov EAX, &foo;
	}
}

This doesn't work...


More information about the Digitalmars-d mailing list