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/Scalar: Difference between revisions
From SnesLab
(created page) |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Scalar''' is a DSP1 command. | {| class="wikitable" style="float:right;clear:right;width:15%" | ||
!colspan="8"|Basic Info | |||
|+ | |||
|'''Opcode''' | |||
|nB | |||
|+ | |||
|'''Speed''' | |||
|36 cycles | |||
4.7 μs | |||
|} | |||
'''Scalar''' is a [[DSP1]] command. The high nybble of the opcode selects which attitude matrix. | |||
=== Input Parameters === | |||
* '''X''' is a vector component | |||
* '''Y''' is a vector component | |||
* '''Z''' is a vector component | |||
=== Output Parameters === | |||
* '''S''' is the inner product | |||
=== References === | === References === | ||
* https://archive.org/details/SNESDevManual/book2/page/n319 | * subparagraph 5.5.4 on [https://archive.org/details/SNESDevManual/book2/page/n319 page 3-5-29 of Book II] of the official Super Nintendo development manual | ||
* paragraph 6.13 on [https://archive.org/details/SNESDevManual/book2/page/n325 page 3-6-2 of Book II], lbid. | |||
* https://github.com/bsnes-emu/bsnes/blob/master/bsnes/sfc/coprocessor/dsp1/dsp1emu.cpp#L748 | |||
[[Category:DSP1]] | |||
[[Category:Attitude Control Commands]] |
Latest revision as of 05:29, 10 January 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Opcode | nB | ||||||
Speed | 36 cycles
4.7 μs |
Scalar is a DSP1 command. The high nybble of the opcode selects which attitude matrix.
Input Parameters
- X is a vector component
- Y is a vector component
- Z is a vector component
Output Parameters
- S is the inner product
References
- subparagraph 5.5.4 on page 3-5-29 of Book II of the official Super Nintendo development manual
- paragraph 6.13 on page 3-6-2 of Book II, lbid.
- https://github.com/bsnes-emu/bsnes/blob/master/bsnes/sfc/coprocessor/dsp1/dsp1emu.cpp#L748