[gamecode] Implement ruamoko opcode lookup

And get the debugger working with the new instruction set.
This commit is contained in:
Bill Currie 2022-01-06 11:47:05 +09:00
parent c74cfb9bf6
commit d9d37fda47
3 changed files with 49 additions and 16 deletions

View file

@ -36,3 +36,10 @@
const opcode_t pr_opcodes[512] = {
#include "libs/gamecode/pr_opcode.cinc"
};
const opcode_t *
PR_Opcode (pr_ushort_t opcode)
{
opcode &= OP_MASK;
return &pr_opcodes[opcode];
}