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/Distance

From SnesLab
Revision as of 05:06, 10 January 2024 by Xetheria (talk | contribs) (Category:Vector Calculation Commands)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Basic Info
Opcode 28
Speed 156 cycles

20.5 μs

Distance is a DSP1 command that calculates the length of a vector. It is bugged in DSP1/DSP1A and fixed in DSP1B.

Input Parameters

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

Output Parameters

  • R is the vector length

See Also

References