hi all
i've the following function and i want access to its parametres through the ebp register but the function always return 0
int getParam(int x)
{
int result;
asm("mov 8(%ebp),%eax"); // copy x into eax
asm("mov %eax, -4(%ebp)"); // copy eax into result
return result;
}
i konw its not CB related , but i hope to get some help
thanks in advance