flat assembler
Message board for the users of flat assembler.

Index > Windows > how to convert a 64bit floating-point to qword?

Author
Thread Post new topic Reply to topic
nazha



Joined: 05 Mar 2009
Posts: 40
Location: Beijing, China
nazha 29 Aug 2009, 08:09
how to convert a 64bit ieee754 floating-point to a qword decimal?

_________________
Assembly Asker
Post 29 Aug 2009, 08:09
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 29 Aug 2009, 15:13
Do you mean qword integer?

Code:
fld [source]
fistp [dest]

source dq 3.1416
dest   rq 1 ; Will be three    
Post 29 Aug 2009, 15:13
View user's profile Send private message Reply with quote
nazha



Joined: 05 Mar 2009
Posts: 40
Location: Beijing, China
nazha 30 Aug 2009, 00:56
Yes, thank you.

_________________
Assembly Asker
Post 30 Aug 2009, 00:56
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.