3-23-2015
My knowledge about FPU is hovering just above Zero.
fixed dq 12.0
n4 dq 0
buf7 db 8 DUP (0h)
Value db '.043'
How do I put .043 into the ST0 FPU register
The result from Fild is incorrect
fild D[Value] ;load Value into the ST0 register on the fpu stack
fdiv Q[fixed] ; divide it by 12.0 directly from memory
fstp Q[n4] ; pop the results off the stack to memory
invoke msvcrt:sprintf_s,addr buf7,sizeof buf7,\
"%g",[n4]
invoke TextOut, [hdc],200,425,addr buf7,8