View Full Version : using type double in assembly

11-28-2004, 01:27 AM
How do you use the data type double (not double word) in assembly?
like, if i have the following code:

(assume x is a of type double)

mov eax, x

then eax doesn't get the value of x...

if i make x a type int, however, eax will get the value of x
is there a special instruction for moving/adding doubles?

lea doesn't work either

any help will be appreciated

11-29-2004, 06:13 PM
Do you mean double byte? In that case it's: db
If you are referring to "double" as in c++ style doubles, i'm not