[Solved] Assembly code fsqrt and fmul instructions
It looks like you are trying to do something similar to this: #include <stdio.h> double hullSpeed(double lgth) { double result; __asm__( “fldl %1\n\t” //st(0)=>st(1), st(0)=lgth . FLDL means load double float “fsqrt\n\t” //st(0) = square root st(0) “fmulp\n\t” //Multiplies st(0) and st(1) (1.34). Result in st(0) : “=&t” (result) : “m” (lgth), “0” (1.34)); return … Read more