Hi ,
I totally understand the recursion in C programming and now trying more further to understand what is going behind the scenes , so trying please to have the conversion on assembly language for this chunk of code ( just for more understandings not more ) .
C code is :
Code:
int divide(int a)
{
if ( a > 1 )
{
return divide(a/2);
}
return a;
}
Could anyone please help me for conversion this code to assembly language?
like normally Im not programming on assembly language and learnt it long long time ago but trying to understand only
the recursion part how it's done on assembly behind.
thanks much