From 70b3980f46c8160f9d174496e03e30a95a58c181 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Tue, 18 Dec 2012 06:58:47 +0100 Subject: [PATCH] Fix AX HLE command 12 arguments: takes 4 u16, not 1 --- Source/Core/Core/Src/HW/DSPHLE/UCodes/UCode_AX.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/HW/DSPHLE/UCodes/UCode_AX.cpp b/Source/Core/Core/Src/HW/DSPHLE/UCodes/UCode_AX.cpp index 6464e47c72..0ad33870db 100644 --- a/Source/Core/Core/Src/HW/DSPHLE/UCodes/UCode_AX.cpp +++ b/Source/Core/Core/Src/HW/DSPHLE/UCodes/UCode_AX.cpp @@ -193,7 +193,16 @@ void CUCode_AX::HandleCommandList() break; case CMD_UNK_11: curr_idx += 2; break; - case CMD_UNK_12: curr_idx += 1; break; + + case CMD_UNK_12: + { + u16 samp_val = m_cmdlist[curr_idx++]; + u16 idx = m_cmdlist[curr_idx++]; + addr_hi = m_cmdlist[curr_idx++]; + addr_lo = m_cmdlist[curr_idx++]; + // TODO + break; + } // Send the contents of MAIN LRS, AUXA LRS and AUXB S to RAM, and // mix data to MAIN LR and AUXB LR.