83Plus:BCALLs:40AB

From WikiTI
Revision as of 20:53, 16 July 2005 by 66.66.23.91 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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