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/Parameter: Difference between revisions

From SnesLab
Jump to: navigation, search
(DSP1 category)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Parameter''' is a DSP1 command.
{| class="wikitable" style="float:right;clear:right;width:15%"
{| class="wikitable" style="float:right;clear:right;width:15%"
!colspan="8"|Basic Info
!colspan="8"|Basic Info
Line 6: Line 4:
|'''Opcode'''
|'''Opcode'''
|02
|02
|+
|'''Speed'''
|892 cycles
117.4 μs
|}
|}
'''Parameter''' is a [[DSP1]] command.
=== Input Parameters ===
* '''Fx''' is an x coordinate
* '''Fy''' is a y coordinate
* '''Fz''' is a z coordinate
* '''Lfe''' is a distance
* '''Les''' is a distance
* '''Aas''' is an angle
* '''Azs''' is an angle
=== Output Parameters ===
* '''Vof''' is a raster number
* '''Vva''' is a raster number
* '''Cx''' is an X coordinate
* '''Cy''' is a Y coordinate


=== References ===
=== References ===
* https://archive.org/details/SNESDevManual/book2/page/n302
* subparagraph 5.4.1 on [https://archive.org/details/SNESDevManual/book2/page/n302 page 3-5-12 of Book II] of the official Super Nintendo development manual
* https://github.com/bsnes-emu/bsnes/blob/master/bsnes/sfc/coprocessor/dsp1/dsp1emu.cpp#L871


[[Category:DSP1]]
[[Category:DSP1]]
[[Category:Projection Calculation Commands]]

Latest revision as of 05:31, 10 January 2024

Basic Info
Opcode 02
Speed 892 cycles

117.4 μs

Parameter is a DSP1 command.

Input Parameters

  • Fx is an x coordinate
  • Fy is a y coordinate
  • Fz is a z coordinate
  • Lfe is a distance
  • Les is a distance
  • Aas is an angle
  • Azs is an angle

Output Parameters

  • Vof is a raster number
  • Vva is a raster number
  • Cx is an X coordinate
  • Cy is a Y coordinate

References