83Plus:BCALLs:4066

From WikiTI
Revision as of 16:45, 22 April 2005 by 66.66.23.91 (Talk)

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

Synopsis

Official Name: Times2

BCALL Address: 4066

Doubles the floating point number in OP1.

Inputs

  • OP1 = floating point number

Outputs

  • OP1 = 2*OP1
  • OP2 = original value of OP1

Registers Destroyed

  • AF, BC, DE, HL

Comments

This is faster than loading OP2 with 2 and using FPmult.

Example

B_CALL OP1Set3  ;OP1=floating point 3
B_CALL Times2  ;returns with OP1=floating point 6