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

From SnesLab
Jump to: navigation, search
(→‎References: subparagraph)
(→‎References: bsnes implementation)
Line 24: Line 24:
* subparagraph 5.2.2 on [https://archive.org/details/SNESDevManual/book2/page/n296 page 3-5-6 of Book II] of the official Super Nintendo development manual
* subparagraph 5.2.2 on [https://archive.org/details/SNESDevManual/book2/page/n296 page 3-5-6 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.
* 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#L359


[[Category:DSP1]]
[[Category:DSP1]]

Revision as of 21:14, 4 January 2024

Basic Info
Opcode 18
Speed 38 cycles

5.0 μs

Range is a DSP1 command that performs 3D collision detection. It determines if an object is within a certain distance of a point.

Input Parameters

  • x is a vector component
  • y is a vector component
  • z is a vector component
  • r is the range to compare the vector to (a sphere radius)

Ouput Parameters

  • D is the difference between the vector length and the range

References