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

From WikiTI
Jump to: navigation, search
m (moved cycles from output and capitalized name in categories)
m (I guess we call them comments)
Line 17: Line 17:
 
* OP1-OP5
 
* OP1-OP5
  
== Notes ==
+
== Comments ==
 
Takes approximately 150,000 to 200,000 clock cycles.
 
Takes approximately 150,000 to 200,000 clock cycles.
  

Revision as of 14:16, 20 February 2006

Synopsis

Official Name: Cos

BCALL Address: 40C0

Computes the cosine of OP1 and returns the result in OP1.

Inputs

  • OP1 = floating point

Outputs

  • OP1 = cosine of OP1

Destroys

  • AF, BC, DE, HL
  • OP1-OP5

Comments

Takes approximately 150,000 to 200,000 clock cycles.

Example

B_CALL OP1Set3  ;OP1=floating point 3
B_CALL cos  ;returns with OP1=-0.9899924...