83Plus:BCALLs:4078

From WikiTI
Revision as of 16:59, 23 April 2005 by 66.66.23.91 (Talk)

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

Synopsis

Official Name: RToD

BCALL Address: 4078

Converts radians to degrees.

Inputs

  • OP1 = radians

Outputs

  • OP1 = degrees
  • OP2 = 180/Pi

Registers Destroyed

  • AF, BC, DE, HL

Comments

This conversion is done by multiplying OP1 by 180/Pi. This number may exceed 360.

Example

B_CALL OP1Set5  ;OP1=floating point 5
B_CALL RToD  ;returns with OP1=floating point 286.4788