hello
im new but im learning
in masm32
how to multiple tow numbers lets say 1200000 * 0.006
sorry for week English i don't know how to represent the second number "0.006" in English is it (numerals) ???
thanks
It seems this file is not part of the latest Masm32 version, so I attach it here. It answers your questions.
a sample code please
its like dividing the number to 166.6
lets say i want to multiply 1000 * 0.006
how can i do that in masm32
can i simply divide the number by 166 ??
thanks
i found it and it is simple
1000 * 0.006 = (1000 * 6 )/1000 = 6
MOV EAX, 1000
mov ebx,6
mul ebx
mov ebx,1000
div ebx
thanks
Check out about FPU on the masm help.
FLD value ; Load the value to FPU
fdiv divider ; Divide it
fstp value ; store the result to value