How to convert an integer to a floating point value in x86 ASM?
Posted
by George Edison
on Stack Overflow
See other posts from Stack Overflow
or by George Edison
Published on 2010-06-12T03:57:16Z
Indexed on
2010/06/12
4:02 UTC
Read the original article
Hit count: 277
I need to multiply an integer (two's compliment) by a floating point constant. Here is what I have:
.data
pi dd 3.14
int dd 0ah
.code
fld pi
???
fmul ST(1), ST
How can I convert int
to a floating point value for multiplying against pi
?
© Stack Overflow or respective owner