83Plus:BCALLs:4261: Difference between revisions
From WikiTI
Jump to navigationJump to search
No edit summary |
m →Example: Formatting |
||
| (One intermediate revision by the same user not shown) | |||
| Line 5: | Line 5: | ||
'''BCALL Address:''' 4261 | '''BCALL Address:''' 4261 | ||
Performs a fast divide by 100 on | Performs a fast divide by 100 on [[83Plus:RAM:8478|OP1]]. | ||
=== Inputs === | === Inputs === | ||
* | * [[83Plus:RAM:8478|OP1]] = floating point number | ||
=== Outputs === | === Outputs === | ||
* | * [[83Plus:RAM:8478|OP1]] = OP1 / 100 | ||
=== Registers Destroyed === | === Registers Destroyed === | ||
| Line 17: | Line 17: | ||
== Comments == | == Comments == | ||
This function divides | This function divides OP1 by 100. This is done by twice decrementing the exponent. Checks are performed to prevent an underflow. This is much faster than FPDiv when op2=100. | ||
== Example == | == Example == | ||
Suppose | <nowiki>Suppose OP1=00h,80h,10h,00h,... | ||
After B_CALL FDiv100, | After B_CALL FDiv100, OP1=00h,7Eh,10h,00h,...</nowiki> | ||
Latest revision as of 15:49, 26 April 2005
Synopsis
Official Name: FDiv100
BCALL Address: 4261
Performs a fast divide by 100 on OP1.
Inputs
- OP1 = floating point number
Outputs
- OP1 = OP1 / 100
Registers Destroyed
- A
Comments
This function divides OP1 by 100. This is done by twice decrementing the exponent. Checks are performed to prevent an underflow. This is much faster than FPDiv when op2=100.
Example
Suppose OP1=00h,80h,10h,00h,... After B_CALL FDiv100, OP1=00h,7Eh,10h,00h,...