There is a C code that calls the procedure in assembly language:
extern double convert(char str[]);
I want to return the result to ASM via EDX:EAX
.
Question. In these registers already have a number, so I leave it? Or load it in ST(0)
as one?
int main() { double result; char str[] = "1234567890123"; result = convert(str); printf("convert(\"%s\") = %lf\n", str, result); } // main convert("1234567890123") = 1234567890123.000000;