83Plus:BCALLs:407B

From WikiTI
Revision as of 21:42, 23 April 2005 by Woozle (Talk | contribs)

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

Synopsis

Official Name: Cube

BCALL Address: 407B

Raises a floating point number in OP1 to the third power.

Inputs

  • OP1 = floating point

Outputs

  • OP1 = OP1^3
  • OP2 = original OP1

Registers Destroyed

  • AF, BC, DE, HL, OP2, OP3

Example

B_CALL OP1Set5  ;OP1=floating point 5
B_CALL Cube  ;returns with OP1=floating point 125