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

From WikiTI
Jump to: navigation, search
 
(Comments)
Line 17: Line 17:
  
 
=== Comments ===
 
=== Comments ===
This conversion is done by multiplying OP1 by Pi/180.
+
This conversion is done by multiplying [[83Plus:RAM:8478|OP1]] by Pi/180.
  
 
== Example ==
 
== Example ==

Revision as of 15:53, 23 April 2005

Synopsis

Official Name: DToR

BCALL Address: 4075

Converts degrees to radians.

Inputs

  • OP1 = degrees

Outputs

  • OP1 = radians

Registers Destroyed

  • AF, BC, DE, HL

Comments

This conversion is done by multiplying OP1 by Pi/180.

Example

B_CALL OP1Set5  ;OP1=floating point 3
B_CALL DToR  ;returns with OP1=floating point 0.087266...