0 Replies - 175 Views - Last Post: 12 May 2014 - 08:24 PM Rate Topic: -----

#1 mirom  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 23-April 13

printing Floating Point Unit

Posted 12 May 2014 - 08:24 PM

Hi, this's my first post on the website. I'm trying to print result from FPU and I just don't know what I am doing wrong.
Please help.

INCLUDE Irvine32.inc

.data
x			REAL8		22.0						
y			REAL8		7.0						
PI			REAL10		?						

.code

main		        PROC
			FINIT								

			FLD		x						
			FLD		y						
			FDIV
			FSTP		PI
			CALL		print

print		        PROC
			mov		eax, PI
			call		writeDec
print		ENDP

			exit							
main		        ENDP
END			main



Is This A Good Question/Topic? 0
  • +

Page 1 of 1