I'm new in assembly and was trying to get this program to work, it is 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 and it doesn't work, it's really killing me this cuz i've looked absolutly everywhere and can't find the answer. the compiler i use is Borland C++ 3.1 and for some reason it doesn't accept assembly variables
void squareroot(int intA, float Result)
fsqrt //Compute sqrt(intA).
cout<<"Square root of: "<<intA<<"="<<Result;