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

From WikiTI
Jump to: navigation, search
 
m (Some more capitalization)
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
'''BCALL Address:''' 4264
 
'''BCALL Address:''' 4264
  
Performs a fast divide by 10 on op1.  
+
Performs a fast divide by 10 on [[83Plus:RAM:8478|OP1]].  
  
 
=== Inputs ===
 
=== Inputs ===
* op1 = floating point number
+
* [[83Plus:RAM:8478|OP1]] = floating point number
  
 
=== Outputs ===
 
=== Outputs ===
* op1 = op1 / 10
+
* [[83Plus:RAM:8478|OP1]] = OP1 / 10
  
 
=== Registers Destroyed ===
 
=== Registers Destroyed ===
Line 17: Line 17:
  
 
== Comments ==
 
== Comments ==
This function divides op1 by 10.  This is done by decrementing the exponent.  Checks are performed to prevent an underflow.  This is much faster than FPDiv when op2=10.
+
This function divides OP1 by 10.  This is done by decrementing the exponent.  Checks are performed to prevent an underflow.  This is much faster than FPDiv when OP2=10.
  
 
== Example ==
 
== Example ==
Suppose op1=00h,80h,10h,00h,...
+
Suppose OP1=00h,80h,10h,00h,...
After B_CALL FDiv100, op1=00h,7Fh,10h,00h,...
+
After B_CALL FDiv10, OP1=00h,7Fh,10h,00h,...

Latest revision as of 09:43, 8 April 2005

Synopsis

Official Name: FDiv10

BCALL Address: 4264

Performs a fast divide by 10 on OP1.

Inputs

  • OP1 = floating point number

Outputs

  • OP1 = OP1 / 10

Registers Destroyed

  • A

Comments

This function divides OP1 by 10. This is done by decrementing the exponent. Checks are performed to prevent an underflow. This is much faster than FPDiv when OP2=10.

Example

Suppose OP1=00h,80h,10h,00h,... After B_CALL FDiv10, OP1=00h,7Fh,10h,00h,...