Re: writing functions without prolog and epilog code



Namaskaar Rohit G,
Whatever you want to return you can copy that stuff in EAX register,
and execute a RET instruction.

Why compiler won't allow "return" statement in naked function
definition, is due to the fact that it doesn't how you're managing
stack, since you've avoided standard prolog code.

Thanx,
Ashish Shukla alias Wah Java !!
Wah Java !!

http://www.geocities.com/wah_java_dotnet/

rohit wrote:
> Hi
>
> I want to write some functions in VC++. The entire code will be written
> in assembly by using __asm directive. Now i donot want the prolog and
> epilog code to be generated while compiling. also i am not willing to
> use naked functions as return from naked functions are not allowed. Is
> their other way around for doing this. Any help will be greatly
> appreciated
>
> Thanks
> Rohit

.