83Plus:BCALLs:4099

From WikiTI
Revision as of 08:11, 3 August 2005 by 66.66.23.91 (Talk)

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

Synopsis

Official Name: FPDiv

BCALL Address: 4099

Divides the floating point number in OP1 by the floating point number in OP2 and stores the result in OP1.

Inputs

  • OP1 = floating point
  • OP2 = floating point

Outputs

  • OP1 = OP1/OP2
  • Approx. TStates:
    • Worst Case
      • 55,000
    • If op2 is truncated and filled with zeros
      • 35,000 (if op2 is a one digit float)

Destroys

  • AF, BC, DE, HL, OP3

Example

B_CALL OP1Set3  ;OP1=floating point 3
B_CALL OP1Set4  ;op2=4
B_CALL FPDiv  ;returns with OP1=floating point 0.75