Difference between revisions of "Fsub"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
 
 
Line 7: Line 7:
  
 
==Use==
 
==Use==
Used to subtract the float value of register 2 from the float value of register 1 and stores the end result in register 1.
+
Used to subtract the float value of register 2 from the float value of register 1, and stores the end result in register 1.
  
 
==Example==
 
==Example==

Latest revision as of 01:31, 29 April 2013

Syntax

Syntax: fsub register1, register2

  • register 1 = Register to subtract float value from, and store end result in.
  • register 2 = Register containing a float value which will be subtracted from the float value of register 1.

Use

Used to subtract the float value of register 2 from the float value of register 1, and stores the end result in register 1.

Example


100:     fsub R1, R2 //subtracts the float value of register 2 from the float value of register 1, and stores the result in register 1.
         ret 

Also see

ret