From a39743e3153322ec0e18bb0d05cd16af1d9a6d79 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 13 Sep 2017 01:46:30 +0300 Subject: [PATCH] musashi: don't generate unneeded handlers at least move16 was incorrectly hooked up --- cpu/musashi/m68kmake.c | 5 +++++ pico/sek.c | 1 + 2 files changed, 6 insertions(+) diff --git a/cpu/musashi/m68kmake.c b/cpu/musashi/m68kmake.c index f3157340..361481b9 100644 --- a/cpu/musashi/m68kmake.c +++ b/cpu/musashi/m68kmake.c @@ -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 */ diff --git a/pico/sek.c b/pico/sek.c index 86a351f6..4525c7c9 100644 --- a/pico/sek.c +++ b/pico/sek.c @@ -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); -- 2.39.5