Difference between revisions of "83Plus:BCALLs:40C0"
From WikiTI
m (I guess we call them comments) |
m (minor formatting details...) |
||
Line 8: | Line 8: | ||
=== Inputs === | === Inputs === | ||
− | * [[83Plus:RAM:8478|OP1]] = floating point | + | * [[83Plus:RAM:8478|OP1]] = floating point value |
=== Outputs === | === Outputs === | ||
Line 22: | Line 22: | ||
== Example == | == Example == | ||
<nowiki>B_CALL OP1Set3 ;OP1=floating point 3 | <nowiki>B_CALL OP1Set3 ;OP1=floating point 3 | ||
− | B_CALL | + | B_CALL Cos ;returns with OP1=-0.9899924...</nowiki> |
Revision as of 13:31, 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 value
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...