83Plus:BCALLs:409C

From WikiTI
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