From e122c5e6ee30c5fb8d0cbf7bf0ae760c0e0fc038 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 13 Mar 2017 23:14:13 -0700 Subject: RESET is not a terminal instruction on the 68K. Fixes a crash bug in Chavez II and possibly other games --- m68k_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'm68k_core.c') diff --git a/m68k_core.c b/m68k_core.c index 19600bd..49c26ec 100644 --- a/m68k_core.c +++ b/m68k_core.c @@ -681,7 +681,7 @@ static uint8_t get_native_inst_size(m68k_options * opts, uint32_t address) uint8_t m68k_is_terminal(m68kinst * inst) { return inst->op == M68K_RTS || inst->op == M68K_RTE || inst->op == M68K_RTR || inst->op == M68K_JMP - || inst->op == M68K_TRAP || inst->op == M68K_ILLEGAL || inst->op == M68K_INVALID || inst->op == M68K_RESET + || inst->op == M68K_TRAP || inst->op == M68K_ILLEGAL || inst->op == M68K_INVALID || (inst->op == M68K_BCC && inst->extra.cond == COND_TRUE); } -- cgit v1.2.3