Difference between revisions of "83:ROMCalls:40C2"

From WikiTI
Jump to: navigation, search
 
(No difference)

Latest revision as of 12:39, 14 April 2005

Synopsis

Official Name: FPRecip

Call Address: 40C2

This routine calls OP1ToOP2, OP1Set1 and then runs through FPDiv to calculate the reciprocal value of OP1.

Inputs

  • OP1 = floating point number

Outputs

  • OP1 = 1 / OP1
  • OP2 = old OP1??
  • AF,BC,DE,HL destroyed

Comments

If OP1 equals zero, this routine will result in an ErrDivBy0 being thrown.