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/Multiply: Difference between revisions
From SnesLab
(→References: hid archive URL) |
(general calculation commands) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| 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''' | ||
|00 | |00 | ||
|+ | |||
|'''Speed''' | |||
|26 cycles | |||
3.4 μs | |||
|} | |} | ||
'''Multiply''' is a [[DSP1]] command that performs a 16-bit multiplication. | |||
==== Input Parameters ==== | |||
* '''K''' is the multiplicand | |||
* '''I''' is the multiplier | |||
==== Output Parameter ==== | |||
* '''M''' is the product | |||
=== References === | === References === | ||
* [https://archive.org/details/SNESDevManual/book2/page/n291 Page 3-5-1 of Book II] of the official Super Nintendo development manual | * subparagraph 5.1.1 on [https://archive.org/details/SNESDevManual/book2/page/n291 Page 3-5-1 of Book II] of the official Super Nintendo development manual | ||
* paragraph 6.1 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#L279 | |||
* https://github.com/bsnes-emu/bsnes/blob/master/bsnes/sfc/coprocessor/dsp4/dsp4emu.c#L141 | |||
[[Category:DSP1]] | [[Category:DSP1]] | ||
[[Category:General Calculation Commands]] |
Latest revision as of 04:33, 11 January 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Opcode | 00 | ||||||
Speed | 26 cycles
3.4 μs |
Multiply is a DSP1 command that performs a 16-bit multiplication.
Input Parameters
- K is the multiplicand
- I is the multiplier
Output Parameter
- M is the product
References
- subparagraph 5.1.1 on Page 3-5-1 of Book II of the official Super Nintendo development manual
- paragraph 6.1 on page 3-6-1 of Book II, lbid.
- https://github.com/bsnes-emu/bsnes/blob/master/bsnes/sfc/coprocessor/dsp1/dsp1emu.cpp#L279
- https://github.com/bsnes-emu/bsnes/blob/master/bsnes/sfc/coprocessor/dsp4/dsp4emu.c#L141