Difference between revisions of "83Plus:BCALLs:40A5"

From WikiTI
Jump to: navigation, search
 
(Destroys)
Line 14: Line 14:
  
 
=== Destroys ===
 
=== Destroys ===
* None
+
* AF, BC, DE, HL
  
 
== Example ==
 
== Example ==

Revision as of 19:00, 11 July 2005

Synopsis

Official Name: Int

BCALL Address: 40A5

Rounds OP1 to an integer.

Inputs

  • OP1 = floating point

Outputs

  • OP1 = OP1 rounded to an integer

Destroys

  • AF, BC, DE, HL

Example

B_CALL OP1Set3  ;OP1=floating point 3
B_CALL SqRoot  ;returns with OP1=floating point 1.7320508075689
B_CALL Int  ;returns with OP1=2