Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    using type double in assembly

    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)

    Code:
    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

  • #2
    Regular Coder
    Join Date
    May 2004
    Location
    New Hampshire, America
    Posts
    246
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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
    sure.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •