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

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

Latest revision as of 12:49, 14 April 2005

Synopsis

Official Name: FPDiv

Call Address: 40C6

This routine devides OP1 by OP2 and stores the result in OP1.

Inputs

  • OP1 = first operand
  • OP2 = second operand

Outputs

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

Comments

If OP2 equals zero, this routine will throw an ErrDivBy0.