83Plus:BCALLs:40AB
From WikiTI
Contents
Synopsis
Official Name: LnX
BCALL Address: 40AB
Computes the natural log of OP1 and returns the result in OP1.
Inputs
- OP1 = floating point
Outputs
- OP1 = natural log of OP1
Destroys
- AF, BC, DE, HL
- OP1-OP4
- OP5 - ? Doesn't look like it but the SDK does claim OP5 is destroyed.
Example
B_CALL OP1Set3 ;OP1=floating point 3 B_CALL LnX ;returns with OP1=1.0986122886681