0 Replies - 1480 Views - Last Post: 14 July 2009 - 08:40 PM

#1 Zerobu   User is offline

  • Black Hatter

Reputation: 13
  • View blog
  • Posts: 1,822
  • Joined: 14-January 08

Floating Point Addition in MASM

Posted 14 July 2009 - 08:40 PM

Description: This program demonstrates how to add 3 floating point numbers together
.model	small
	.stack	1024
	.data
x	dd	9.75
y	dd	13.09375
z	dd	29.0390625
sum	dd	?

	.code
	.STARTUP

	finit
	fld	x
	fld	y
	fld	z
        fadd
        fadd
        fstp    sum

	.EXIT
	end

Is This A Good Question/Topic? 0
  • +

Page 1 of 1