summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-05-22 17:33:12 -0700
committerPokechu22 <Pokechu022@gmail.com>2022-05-29 15:00:09 -0700
commit7c63bd189375bba24f5af7703ee765fc7fc88708 (patch)
tree94db1344763cfb2c6c52660fcd4de7fcbf6afbc6 /docs
parentbaf2c710ffbee24413315afe70651c170b645bf7 (diff)
docs/DSP: Fix inconsistency with ADDI and CMPI
We don't have anything called $amD, though we do have $acsD. However, these instructions affect flags based on the whole accumulator, so it's better to just use $acD.
Diffstat (limited to 'docs')
-rw-r--r--docs/DSP/GameCube_DSP_Users_Manual/GameCube_DSP_Users_Manual.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/DSP/GameCube_DSP_Users_Manual/GameCube_DSP_Users_Manual.tex b/docs/DSP/GameCube_DSP_Users_Manual/GameCube_DSP_Users_Manual.tex
index 97d4da1aea..5218829044 100644
--- a/docs/DSP/GameCube_DSP_Users_Manual/GameCube_DSP_Users_Manual.tex
+++ b/docs/DSP/GameCube_DSP_Users_Manual/GameCube_DSP_Users_Manual.tex
@@ -1222,7 +1222,7 @@ A ``-'' indicates that the flag retains its previous value, a ``0'' indicates th
\end{DSPOpcodeBytefield}
\begin{DSPOpcodeFormat}
- ADDI $amD, #I
+ ADDI $acD, #I
\end{DSPOpcodeFormat}
\begin{DSPOpcodeDescription}
@@ -1958,12 +1958,12 @@ A ``-'' indicates that the flag retains its previous value, a ``0'' indicates th
\end{DSPOpcodeBytefield}
\begin{DSPOpcodeFormat}
- CMPI $amD, #I
+ CMPI $acD, #I
\end{DSPOpcodeFormat}
\begin{DSPOpcodeDescription}
- \item Compares mid accumulator \Register{\$acD.hm} (\Register{\$amD}) with sign-extended immediate value \Value{I}.
- However, flags are set with regards to the whole accumulator register.
+ \item Compares accumulator with immediate. Comparison is performed by subtracting the immediate (16-bit sign-extended)
+ from mid accumulator \Register{\$acD.hm} and computing flags based on whole accumulator \Register{\$acD}.
\end{DSPOpcodeDescription}
\begin{DSPOpcodeOperation}