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

From WikiTI
Jump to: navigation, search
(Outputs)
m (Registers Destroyed: ==> Destroys)
 
(2 intermediate revisions by one other user not shown)
Line 14: Line 14:
 
* OP2 = Pi/180
 
* OP2 = Pi/180
  
=== Registers Destroyed ===
+
=== Destroys ===
 
* AF, BC, DE, HL
 
* AF, BC, DE, HL
  
 
=== Comments ===
 
=== Comments ===
This conversion is done by multiplying [[83Plus:RAM:8478|OP1]] by Pi/180.
+
This conversion is done by multiplying [[83Plus:RAM:8478|OP1]] by Pi/180.  This number may exceed 2Pi.
  
 
== Example ==
 
== Example ==
  <nowiki>B_CALL OP1Set5  ;OP1=floating point 3
+
  <nowiki>B_CALL OP1Set5  ;OP1=floating point 5
 
B_CALL DToR  ;returns with OP1=floating point 0.087266...
 
B_CALL DToR  ;returns with OP1=floating point 0.087266...
 
</nowiki>
 
</nowiki>

Latest revision as of 07:45, 24 April 2005

Synopsis

Official Name: DToR

BCALL Address: 4075

Converts degrees to radians.

Inputs

  • OP1 = degrees

Outputs

  • OP1 = radians
  • OP2 = Pi/180

Destroys

  • AF, BC, DE, HL

Comments

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

Example

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