This is my first attempt at using assembly and I'm just trying to use the Intel Architecture instruction FABS
. (Referencing this document on page 399).
This is simply supposed to clear the sign bit.
The little I know about assembly involves sources and destinations but I'm not seeing any reference to the notation for this instruction.
Below is one of my attempts at using it (using Visual studio 2012, C++):
double myabs(double x){
__asm(fabs(x));
return x;
}
This particular attempt give the error C2400: inline assembler syntax error in 'opcode'; found '('
Please note that I want to use the assembly instruction and am not interested in other / "better" options that are available.