We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

DSP1/Rotate: Difference between revisions

From SnesLab
Jump to: navigation, search
(shorter description)
(added microseconds)
Line 7: Line 7:
|'''Speed'''
|'''Speed'''
|64 cycles
|64 cycles
8.6 μs
|}
|}


'''Rotate''' is a [[DSP1]] command that rotates a two-dimensional point counterclockwise about the origin.
'''Rotate''' is a [[DSP1]] command that rotates a two-dimensional point counterclockwise about the origin.  Page 3-2-1 of the manual states that Rotate takes 65 cycles.


=== Input Parameters ===
=== Input Parameters ===

Revision as of 00:08, 23 July 2023

Basic Info
Opcode 0C
Speed 64 cycles

8.6 μs

Rotate is a DSP1 command that rotates a two-dimensional point counterclockwise about the origin. Page 3-2-1 of the manual states that Rotate takes 65 cycles.

Input Parameters

  • θ is the angle of rotation about the Z axis
  • x1 is the x coordinate before rotation
  • y1 is the x coordinate before rotation

Output Parameters

  • x2 is the x coordinate after rotation
  • y2 is the y coordinate after rotation

See Also

References