Adding instruction emitting functions.

All empty, all ready to go!
This commit is contained in:
Ben Vanik
2013-01-21 11:55:42 -08:00
parent 95a8be078b
commit b29dd22850
10 changed files with 1516 additions and 16 deletions

View File

@@ -27,8 +27,8 @@ InstrType* xe::cpu::ppc::GetInstrType(uint32_t code) {
slot = &xe::cpu::ppc::tables::instr_table_19[XESELECTBITS(code, 1, 10)];
break;
case 30:
// Opcode = 30, index = bits 5-1 (5)
slot = &xe::cpu::ppc::tables::instr_table_30[XESELECTBITS(code, 1, 5)];
// Opcode = 30, index = bits 4-1 (4)
slot = &xe::cpu::ppc::tables::instr_table_30[XESELECTBITS(code, 1, 4)];
break;
case 31:
// Opcode = 31, index = bits 10-1 (10)
@@ -60,8 +60,9 @@ InstrType* xe::cpu::ppc::GetInstrType(uint32_t code) {
return slot;
}
int xe::cpu::ppc::RegisterInstrEmit(uint32_t code, InstrEmitFn emit) {
int xe::cpu::ppc::RegisterInstrEmit(uint32_t code, void* emit) {
InstrType* instr_type = GetInstrType(code);
XEASSERTNOTNULL(instr_type);
if (!instr_type) {
return 1;
}