I have managed to use inline assembly in into my project and it runs properly without errors. But I am also required to use floating point instruction set in my project. I usually try to do a simple operation and then gradually make it more complex and keep testing. Unfortunately, the most simplest operation throws errors.
This is the code snippet of the FPU operation I'm trying to execute.
This is the error message I receive after trying to run this operation
1 2 3 4 5 6
Assembler messages:
Error: operand type mismatch for `fld'
Error: operand type mismatch for `fld'
Error: operand type mismatch for `fstp'
I also want to mention another problem, after executing this function of the code below, I get the result comes up wrong. The correct answer should be 0x3863CE4BD77C | 62001313994620 but I get (3461076860) as my answer which is totally wrong. I run the asm code separately but both solutions give the same answer. Can anyone See the error?