How to convert an integer to a floating point value in x86 ASM?

Nat*_*man 2 floating-point x86 assembly

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
Run Code Online (Sandbox Code Playgroud)

How can I convert int to a floating point value for multiplying against pi?

Mar*_*som 13

你需要这个fild指令.这是一个参考:http://www.website.masmforum.com/tutorials/fptute/fpuchap5.htm