From afb373f8fd4cadfbb123bffc4b8335b4b90be4aa Mon Sep 17 00:00:00 2001 From: cracyc Date: Wed, 4 Jan 2017 12:16:48 -0600 Subject: [PATCH] i386: logerror for invalid rep rather than fatal error (nw) --- src/devices/cpu/i386/i386ops.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/devices/cpu/i386/i386ops.hxx b/src/devices/cpu/i386/i386ops.hxx index e27bb4a13bc..1d00ac21566 100644 --- a/src/devices/cpu/i386/i386ops.hxx +++ b/src/devices/cpu/i386/i386ops.hxx @@ -1224,8 +1224,9 @@ void i386_device::i386_repeat(int invert_flag) return; default: - fatalerror("i386: Invalid REP/opcode %02X combination\n",opcode); - break; + logerror("i386: Invalid REP/opcode %02X combination at %08x\n",opcode, m_pc - 2); + m_pc--; + return; } if( m_address_size ) {