83Plus:BCALLs:4078

From WikiTI
Jump to: navigation, search

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