From 921255a3d79fdac12c2d50bf4d65952abc22d657 Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Sun, 13 Jun 2010 16:26:28 +0000 Subject: [PATCH] Fixed illegal opcodes message, not worth mentioning --- src/emu/cpu/m6800/6800ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/cpu/m6800/6800ops.c b/src/emu/cpu/m6800/6800ops.c index 1f801205d72..b4ead0b2969 100644 --- a/src/emu/cpu/m6800/6800ops.c +++ b/src/emu/cpu/m6800/6800ops.c @@ -18,14 +18,14 @@ HNZVC //OP_HANDLER( illegal ) OP_HANDLER( illegal ) { - logerror("m6800: illegal opcode: address %04X, op %02X\n",PC,(int) M_RDOP_ARG(PC)&0xFF); + logerror("m6800: illegal opcode: address %04X, op %02X\n",PC-1,(int) M_RDOP_ARG(PC-1)&0xFF); } /* HD63701 only */ //OP_HANDLER( trap ) OP_HANDLER( trap ) { - logerror("m6800: illegal opcode: address %04X, op %02X\n",PC,(int) M_RDOP_ARG(PC)&0xFF); + logerror("m6800: illegal opcode: address %04X, op %02X\n",PC-1,(int) M_RDOP_ARG(PC-1)&0xFF); TAKE_TRAP; }