From 7a0055e113348dbd7242cb28f022aef7c7f879b6 Mon Sep 17 00:00:00 2001 From: nakeee Date: Thu, 5 Nov 2009 09:06:21 +0000 Subject: [PATCH] DSPLLE: made not into notc git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4499 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DSPCore/Src/DSPInterpreter.h | 2 +- Source/Core/DSPCore/Src/DSPTables.cpp | 2 +- Source/Core/DSPCore/Src/DspIntArithmetic.cpp | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Core/DSPCore/Src/DSPInterpreter.h b/Source/Core/DSPCore/Src/DSPInterpreter.h index 776208db71..ce54a3d09e 100644 --- a/Source/Core/DSPCore/Src/DSPInterpreter.h +++ b/Source/Core/DSPCore/Src/DSPInterpreter.h @@ -90,7 +90,7 @@ void orr(const UDSPInstruction& opc); void andc(const UDSPInstruction& opc); void orc(const UDSPInstruction& opc); void xorc(const UDSPInstruction& opc); -void not(const UDSPInstruction& opc); +void notc(const UDSPInstruction& opc); void lsrnrx(const UDSPInstruction& opc); void lsrnr(const UDSPInstruction& opc); void orf(const UDSPInstruction& opc); diff --git a/Source/Core/DSPCore/Src/DSPTables.cpp b/Source/Core/DSPCore/Src/DSPTables.cpp index 5900fb5a7f..6368813f08 100644 --- a/Source/Core/DSPCore/Src/DSPTables.cpp +++ b/Source/Core/DSPCore/Src/DSPTables.cpp @@ -190,7 +190,7 @@ const DSPOPCTemplate opcodes[] = {"ANDC", 0x3c00, 0xfe80, DSPInterpreter::andc, nop, 1 | P_EXT, 1, {{P_ACCM, 1, 0, 8, 0x0100}}, true}, {"ORC", 0x3e00, 0xfe80, DSPInterpreter::orc, nop, 1 | P_EXT, 1, {{P_ACCM, 1, 0, 8, 0x0100}}, true}, {"XORC", 0x3080, 0xfe80, DSPInterpreter::xorc, nop, 1 | P_EXT, 1, {{P_ACCM, 1, 0, 8, 0x0100}}, true}, //new - {"NOT", 0x3280, 0xfe80, DSPInterpreter::not, nop, 1 | P_EXT, 1, {{P_ACCM, 1, 0, 8, 0x0100}}, true}, //new + {"NOT", 0x3280, 0xfe80, DSPInterpreter::notc, nop, 1 | P_EXT, 1, {{P_ACCM, 1, 0, 8, 0x0100}}, true}, //new {"LSRNRX1", 0x3480, 0xfc80, DSPInterpreter::lsrnrx, nop, 1 | P_EXT, 1, {{P_ACC, 1, 0, 8, 0x0100}}, true}, //new {"LSRNRX2", 0x3880, 0xfc80, DSPInterpreter::lsrnrx, nop, 1 | P_EXT, 1, {{P_ACC, 1, 0, 8, 0x0100}}, true}, //new {"LSRNR", 0x3c80, 0xfc80, DSPInterpreter::lsrnr, nop, 1 | P_EXT, 1, {{P_ACC, 1, 0, 8, 0x0100}}, true}, // discovered by luigi! diff --git a/Source/Core/DSPCore/Src/DspIntArithmetic.cpp b/Source/Core/DSPCore/Src/DspIntArithmetic.cpp index c7b630cf5c..0a44ec26c0 100644 --- a/Source/Core/DSPCore/Src/DspIntArithmetic.cpp +++ b/Source/Core/DSPCore/Src/DspIntArithmetic.cpp @@ -243,7 +243,7 @@ void xorc(const UDSPInstruction& opc) // 0011 001d 1xxx xxxx // Invert all bits in dest reg, aka xor with 0xffff // x = extension (7 bits!!) -void not(const UDSPInstruction& opc) +void notc(const UDSPInstruction& opc) { u8 dreg = (opc.hex >> 8) & 0x1; u16 res = dsp_get_acc_m(dreg)^0xffff; @@ -866,3 +866,4 @@ void tst(const UDSPInstruction& opc) } } // namespace +