i've found the answer, and i've learned a lot about the assembly while looking for thx anyway and soz for bothering
void square_root(int intA, float Result)
{
asm {
fild intA
fsqrt
fst Result
jmp End
}
End:
cout<<Result;
getch();
}
Hi
I'm new in assembly and was trying to get this program to work, it supposed to calculate the square root of any integer but i don't know how to load the ax into the stack, get the square root and return the value to the c++ variable, that was the closest i could come up with, it's really...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.