FILD doubt

Andrew Dunstan a_dunstan at hotmail.com
Thu Aug 31 00:04:31 PDT 2006




>From: "Vikas N Kumar" <walburn at gmail.com>
>To: yasm-devel at tortall.net
>Subject: FILD doubt
>Date: Thu, 31 Aug 2006 02:35:36 -0400
>
>Any help will be appreciated.
>How do i place an int in the floating point stack and why is the above
>error occurring ?
Specify the size of the int using dword or qword. For example:
fild dword [rax]
will push the 32-bit int pointed to by rax onto the fp stack.
fild qword [rax]
will push the 64-bit int pointed to by rax onto the fp stack. The int must 
be in memory, not in a GPR.
>
>If I use cvtsi2sd it will work fine, but then how do i multiple two
>xmm registers which have only one double precision number in them. As
>in, I load one double-precision number in XMM0 and one in XMM1, but
>what instruction do i use to multiply them correctly ?
mulsd xmm1, xmm0
Multiplies the double precision value in the low half of xmm0 by the double 
precision value in the low half of xmm1 and stores the product in the low 
half of xmm1. The high half of xmm1 is untouched.




More information about the yasm-devel mailing list