News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Multiplication on real numbers

Started by roivic, March 02, 2013, 02:26:57 PM

Previous topic - Next topic

roivic

I was told to create an 8086 ALP to calculate the average of a circle, My question is: How can i multiply the radius collected with PI(3.142) which is a real number.

jj2007

include \masm32\include\masm32rt.inc
.code
start:
   push 100
   fldpi
   fimul dword ptr [esp]
   fistp dword ptr [esp]
   pop eax
   inkey str$(eax)
   exit
end start

Now go and read the attachment. And remember there is a "no homework rule" here ;-)