Difference between revisions of "83Plus:BCALLs:4099"

From WikiTI
Jump to: navigation, search
 
(Outputs)
Line 13: Line 13:
 
=== Outputs ===
 
=== Outputs ===
 
* [[83Plus:RAM:8478|OP1]] = OP1/OP2
 
* [[83Plus:RAM:8478|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 ===
 
=== Destroys ===

Revision as of 06:57, 3 August 2005

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