title: Loading register value to FPU stack
body: <p>I'm currently working on an Assembly program that makes uses of both the CPU and FPU registers. My question concerns how it is possible to load a register value to the FPU stack (namely ecx).</p>
  
  <pre><code>mov    ecx, 10d    ; Load 10 into ECX
  fldpi              ; Load Pi
  fild   ecx         ; This does not work, it does however for .data variables
  fmul               ; Multiply
  </code></pre>
  
  <p>Any help would be greatly appreciated. I'm developing using Visual Studio 2015/MASM, with .386 and .model flat, STDCALL.</p>
  
  <p>Best regards,
  Z</p>