DSP1/Inverse

From SnesLab
Jump to: navigation, search
Basic Info
Opcode 10
Speed 98 cycles

12.9 μs

Inverse is a DSP1 command that calculates a floating point multiplicative inverse (reciprocal).

Input Parameters

  • a[M] is the coefficient
  • b[C] is the exponent (in the range 8002h to 7FFFh)

The total input value is then a*2^b

Output Parameters

  • A[M] is the coefficient
  • B[C] is the exponent (in the range 8002h to 7FFFh)

The official documentation is missing the hexadecimal suffix "h" after 8002 for Inverse (see Note 3 on page 3-3-1).

References