From 15624cb11ce1bd4200f3235c0b87605f0f68c29f Mon Sep 17 00:00:00 2001 From: nakeee Date: Tue, 14 Apr 2009 13:13:12 +0000 Subject: [PATCH] added small comment git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2965 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DSPCore/Src/DSPTables.cpp | 2 ++ Source/Core/DSPCore/Src/gdsp_ext_op.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/DSPCore/Src/DSPTables.cpp b/Source/Core/DSPCore/Src/DSPTables.cpp index 747a8978b1..6b65f8a631 100644 --- a/Source/Core/DSPCore/Src/DSPTables.cpp +++ b/Source/Core/DSPCore/Src/DSPTables.cpp @@ -225,6 +225,8 @@ const DSPOPCTemplate opcodes[] = // calculations or something? Or clamp? // SET15/CLR15 is commonly used around MULXAC in Zeldas. // SET16 is done around complicated loops with many madds etc. + // It seems SET16 come in all cases found with either CR or IR (almost always with AR3) + // Set40 also comes with CR and AR3, but it's not common enough to see the connection. {"CLR15", 0x8c00, 0xffff, DSPInterpreter::srbith, nop, 1 | P_EXT, 0, {}, dsp_op_ext_ops_pro, dsp_op_ext_ops_epi}, {"SET15", 0x8d00, 0xffff, DSPInterpreter::srbith, nop, 1 | P_EXT, 0, {}, dsp_op_ext_ops_pro, dsp_op_ext_ops_epi}, {"SET40", 0x8e00, 0xffff, DSPInterpreter::srbith, nop, 1 | P_EXT, 0, {}, dsp_op_ext_ops_pro, dsp_op_ext_ops_epi}, diff --git a/Source/Core/DSPCore/Src/gdsp_ext_op.cpp b/Source/Core/DSPCore/Src/gdsp_ext_op.cpp index fa9d9692b8..e8fdee0e4b 100644 --- a/Source/Core/DSPCore/Src/gdsp_ext_op.cpp +++ b/Source/Core/DSPCore/Src/gdsp_ext_op.cpp @@ -211,7 +211,7 @@ void dsp_op_ext_r_epi(const UDSPInstruction& opc) switch (op) { case 0x00: // - //g_dsp.r[reg] = 0; + g_dsp.r[reg] = 0; break; case 0x01: // DR