diff options
| author | hrydgard <hrydgard@gmail.com> | 2009-06-21 06:56:44 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2009-06-21 06:56:44 +0000 |
| commit | 80217a6ed718d15c75784090340cd3ddd9432f96 (patch) | |
| tree | 79381fe311441d839836fb589b0215277e90eea3 /Source/Core/DSPCore/Src/DspIntMisc.cpp | |
| parent | b7e5fb6ef2f944a2923049f77860988c89ae9216 (diff) | |
DSP: Fix the invalid memory accesses that the Zelda Ucode does in LLE. No LLE sound yet but at least no crazy errors :p
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3516 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore/Src/DspIntMisc.cpp')
| -rw-r--r-- | Source/Core/DSPCore/Src/DspIntMisc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/DSPCore/Src/DspIntMisc.cpp b/Source/Core/DSPCore/Src/DspIntMisc.cpp index ef1680321b..732739c0f1 100644 --- a/Source/Core/DSPCore/Src/DspIntMisc.cpp +++ b/Source/Core/DSPCore/Src/DspIntMisc.cpp @@ -97,7 +97,11 @@ void addarn(const UDSPInstruction& opc) u8 dreg = opc.hex & 0x3;
u8 sreg = (opc.hex >> 2) & 0x3;
- g_dsp.r[dreg] += (s16)g_dsp.r[DSP_REG_IX0 + sreg];
+ // g_dsp.r[dreg] += (s16)g_dsp.r[DSP_REG_IX0 + sreg];
+
+ dsp_increase_addr_reg(dreg, (s16)g_dsp.r[DSP_REG_IX0 + sreg]);
+
+ // It is critical for the Zelda ucode that this one wraps correctly.
}
// NX
|
