83Plus:BCALLs:409C

From WikiTI
Revision as of 15:17, 1 May 2005 by 66.66.23.91 (Talk)

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

Synopsis

Official Name: SqRoot

BCALL Address: 409C

Calculates the square root of the floating point number in OP1 and stores the result in OP1.

Inputs

  • OP1 = floating point

Outputs

  • OP1 = Sqrt(OP1)

Destroys

  • AF, BC, DE, HL, OP2, OP3

Example

B_CALL OP1Set3  ;OP1=floating point 3
B_CALL SqRoot  ;returns with OP1=floating point 1.732