After lots of edits, researches i decided to do it properly (i hope).
So, i want to get a float number from command line.
Here is the code:
format PE Console
entry start
include 'INCLUDE/win32ax.inc'
include 'INCLUDE/win_macros.inc'
section '.text' code readable executable
start:
finit
fld [a]
fld [b]
fmulp
fst [a]
cinvoke printf, '%.2f',dword [a],dword [a+4]
cinvoke printf,'%s','Begin number: '
cinvoke printf,'%s','a= '
cinvoke scanf, '%f',a
cinvoke printf, '%.2f',dword [a],dword [a+4]
cinvoke system, 'pause'
section '.data' code readable writeable executable
a dq 12.11
b dq 3.0
The multiplication on the is for tests, and shows the number properly.
36.33
Then the i want to scanf a number to a and printf it. The result is:
36.33
How to move this number to a?