From 91fa140b2c9f342c4cf1ad3181c6d1cd4c7bde14 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Tue, 14 Oct 2003 20:25:32 +0000 Subject: [PATCH] Exit with unhandled opcode if not running debug version Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1325 --- src/cpu/core_normal.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cpu/core_normal.cpp b/src/cpu/core_normal.cpp index 73522a22..c7c77f73 100644 --- a/src/cpu/core_normal.cpp +++ b/src/cpu/core_normal.cpp @@ -181,7 +181,11 @@ restart_opcode: #include "core_normal/prefix_66_0f.h" default: ADDIPFAST(-1); +#if C_DEBUG LOG_MSG("Unhandled code %X",core.opcode_index+Fetchb()); +#else + E_Exit("Unhandled CPU opcode"); +#endif } } decode_end: