IamOverlord
جمعه 24 شهریور 1391, 21:04 عصر
سلام دوستان.
چه طوری می شه این عدد رو:
float1 dq 123.12
تبدیل به رشته کرد که نمایش داد؟
در اصل می خوام این برنامه رو کامل کنم:
; example of simplified Windows programming using complex macro features
include 'win32ax.inc' ; you can simply switch between win32ax, win32wx, win64ax and win64wx here
.code
start:
invoke MessageBox,HWND_DESKTOP,float1,invoke GetCommandLine,MB_OK ; i want to print string(float1)...
fld [float1] ; Push float1 value to ST(0)
fadd [float2] ; Add float2 to ST(0)
fstp [float1] ; Pop value from ST(0) to float1
invoke MessageBox,HWND_DESKTOP,str1,invoke GetCommandLine,MB_OK ; i want to print string(float1)...
invoke ExitProcess,0
.end start
.data
float1 dq 123.12
float2 dq 34.45
str1 db 'converted float here...',0
چه طوری می شه این عدد رو:
float1 dq 123.12
تبدیل به رشته کرد که نمایش داد؟
در اصل می خوام این برنامه رو کامل کنم:
; example of simplified Windows programming using complex macro features
include 'win32ax.inc' ; you can simply switch between win32ax, win32wx, win64ax and win64wx here
.code
start:
invoke MessageBox,HWND_DESKTOP,float1,invoke GetCommandLine,MB_OK ; i want to print string(float1)...
fld [float1] ; Push float1 value to ST(0)
fadd [float2] ; Add float2 to ST(0)
fstp [float1] ; Pop value from ST(0) to float1
invoke MessageBox,HWND_DESKTOP,str1,invoke GetCommandLine,MB_OK ; i want to print string(float1)...
invoke ExitProcess,0
.end start
.data
float1 dq 123.12
float2 dq 34.45
str1 db 'converted float here...',0