This tutorial (https://www.tutorialspoint.com/assembly_programming/assembly_arithmetic_instructions) is just work in integer, doesn't work in double-precision floating point.
It said I must use xmm register with addsd instruction. Actually yes it's working fine I was using it.
addsd xmm0, xmm1
But can I have same rule like that tutorial I mean with using general purpose like rax and this rule:
- Register to register
- Memory to register
- Register to memory
- Register to constant data
- Memory to constant data
Also why xmm register is 128-bit while double-precision floating point is 64-bit. Is another bit wasted?