mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
DSPLLE: small loop fix (ector pls take a look)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3679 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
d3d65d2030
commit
df3abc6a2a
@ -80,11 +80,7 @@ void HandleLoop()
|
|||||||
const u16 rCallAddress = g_dsp.r[DSP_REG_ST0];
|
const u16 rCallAddress = g_dsp.r[DSP_REG_ST0];
|
||||||
const u16 rLoopAddress = g_dsp.r[DSP_REG_ST2];
|
const u16 rLoopAddress = g_dsp.r[DSP_REG_ST2];
|
||||||
|
|
||||||
// This does not always work correctly!
|
if (g_dsp.pc == (rLoopAddress + opSize[rLoopAddress]))
|
||||||
// The loop end tends to point to the second part of
|
|
||||||
// two-byte instructions!
|
|
||||||
// 0179 1104 019f bloopi #0x04, 0x019f in zelda, for example
|
|
||||||
if (g_dsp.pc == (rLoopAddress + 1))
|
|
||||||
{
|
{
|
||||||
rLoopCounter--;
|
rLoopCounter--;
|
||||||
if (rLoopCounter > 0)
|
if (rLoopCounter > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user