musashi: don't generate unneeded handlers

at least move16 was incorrectly hooked up
This commit is contained in:
notaz 2017-09-13 01:46:30 +03:00
parent e01cf375cb
commit a39743e315
2 changed files with 6 additions and 0 deletions

View file

@ -1043,6 +1043,11 @@ void process_opcode_handlers(FILE* filep)
if(opinfo == NULL)
error_exit("Unable to find matching table entry for %s", func_name);
#if 1 /* PD hack: 000 only */
if (opinfo->cpus[0] == UNSPECIFIED_CH)
continue;
#endif
replace->length = 0;
/* Generate opcode variants */

View file

@ -549,6 +549,7 @@ breakloop:
printf("D%d: %08x A%d: %08x\n", i, x68k->dar[i],
i, x68k->dar[i + 8]);
printf("PC: %08x, %08x\n", x68k->pc, x68k->pc_prev);
printf("SR: %04x\n", x68k->sr);
PDebugDumpMem();
exit(1);