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

From WikiTI
Jump to: navigation, search
(Outputs)
(Outputs)
 
Line 14: Line 14:
 
* [[83Plus:RAM:8478|OP1]] = OP1/OP2
 
* [[83Plus:RAM:8478|OP1]] = OP1/OP2
 
* Approx. TStates:
 
* Approx. TStates:
  * Worst Case
+
** Worst Case
    * 55,000
+
*** 55,000
  * If op2 is truncated and filled with zeros
+
** If op2 is truncated and filled with zeros
    * 35,000 (if op2 is a one digit float)
+
*** 35,000 (if op2 is a one digit float)
  
 
=== Destroys ===
 
=== Destroys ===

Latest revision as of 07:11, 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