Difference between revisions of "83Plus:BCALLs:4264"
From WikiTI
(→Example) |
|||
Line 21: | Line 21: | ||
== Example == | == Example == | ||
Suppose op1=00h,80h,10h,00h,... | Suppose op1=00h,80h,10h,00h,... | ||
− | After B_CALL | + | After B_CALL FDiv10, op1=00h,7Fh,10h,00h,... |
Revision as of 19:31, 3 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,...