git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2831 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-04-02 13:08:25 +00:00
parent 2a1b42705f
commit e2852e9625
1 changed files with 3 additions and 5 deletions

View File

@ -249,14 +249,12 @@ dspInstFunc opTable[OPTABLE_SIZE];
void InitInstructionTable()
{
for(u32 i = 0; i < OPTABLE_SIZE; i++)
{
opTable[i] = DSPInterpreter::unknown;
for(u32 i = 0; i < OPTABLE_SIZE; i++) {
for(u32 j = 0; j < opcodes_size; j++)
{
if((opcodes[j].opcode_mask & i) == opcodes[j].opcode_mask)
opTable[i] = opcodes[j].interpFunc;
else
opTable[i] = DSPInterpreter::unknown;
}
}
}