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

From SnesLab
Jump to: navigation, search
(hid archive URL, DSP1 category)
(Category vector calc)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Radius''' 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'''
|08
|08
|+
|'''Speed'''
|34 cycles
4.5 μs
|}
|}
'''Radius''' is a [[DSP1]] command that calculates the squared length of a vector.
=== Input Parameters ===
* '''x''' is a vector component
* '''y''' is a vector component
* '''z''' is a vector component
=== Output Parameters ===
* '''L''' is the square of the vector length
=== See Also ===
* [[Distance]]


=== References ===
=== References ===
* [https://archive.org/details/SNESDevManual/book2/page/n294 page 3-5-4 of Book II] of the official Super Nintendo development manual
* subparagraph 5.2.1 on [https://archive.org/details/SNESDevManual/book2/page/n294 page 3-5-4 of Book II] of the official Super Nintendo development manual
* paragraph 6.4 on [https://archive.org/details/SNESDevManual/book2/page/n324 page 3-6-1 of Book II], lbid.
* https://github.com/bsnes-emu/bsnes/blob/master/bsnes/sfc/coprocessor/dsp1/dsp1emu.cpp#L338


[[Category:DSP1]]
[[Category:DSP1]]
[[Category:Vector Calculation Commands]]

Latest revision as of 05:03, 10 January 2024

Basic Info
Opcode 08
Speed 34 cycles

4.5 μs

Radius is a DSP1 command that calculates the squared length of a vector.

Input Parameters

  • x is a vector component
  • y is a vector component
  • z is a vector component

Output Parameters

  • L is the square of the vector length

See Also

References