Difference between revisions of "83Plus:BCALLs:4078"

From WikiTI
Jump to: navigation, search
 
m (Registers Destroyed: ==> Destroys)
 
Line 14: Line 14:
 
* OP2 = 180/Pi
 
* OP2 = 180/Pi
  
=== Registers Destroyed ===
+
=== Destroys ===
 
* AF, BC, DE, HL
 
* AF, BC, DE, HL
  

Latest revision as of 07:46, 24 April 2005

Synopsis

Official Name: RToD

BCALL Address: 4078

Converts radians to degrees.

Inputs

  • OP1 = radians

Outputs

  • OP1 = degrees
  • OP2 = 180/Pi

Destroys

  • 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