LLE-WIP: More progress on the opcode lookup table. Still haven't put the correct interpreter functions into the opcode table.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2822 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY
2009-04-01 22:41:16 +00:00
parent 9915533c3c
commit 44db8cd0b8
4 changed files with 16 additions and 16 deletions

View File

@ -23,10 +23,6 @@
#include "DSPInterpreter.h"
#include "DSPJit.h"
void unimplementedInst(const UDSPInstruction& inst) {
PanicAlert("Unimplemented instruction %d", inst.hex);
}
void nop(const UDSPInstruction&) {}
// TODO(XK): Fill up the tables with the corresponding instructions
@ -239,15 +235,16 @@ DSPOPCTemplate opcodes_ext[] =
const u32 opcodes_size = sizeof(opcodes) / sizeof(DSPOPCTemplate);
const u32 opcodes_ext_size = sizeof(opcodes_ext) / sizeof(DSPOPCTemplate);
void InitInstructionTable() {
// TODO(XK): Fill
}
dspInstFunc opTable[OPTABLE_SIZE];
void DestroyInstructionTable() {
// TODO(XK): Fill
}
void InitInstructionTable() {
for(int i = 0; i < OPTABLE_SIZE; i++)
opTable[i] = DSPInterpreter::unknown;
for(int i = 0; i < opcodes_size; i++)
opTable[opcodes[i].opcode] = opcodes[i].interpFunc;
}
void ComputeInstruction(const UDSPInstruction& inst) {
// TODO(XK): Fill
DSPInterpreter::unknown(inst);
opTable[inst.hex](inst);
}