83Plus:BCALLs:4264

From WikiTI
Revision as of 08:43, 8 April 2005 by Dan Englender (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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,...