From a941729fcfa7c73aeb1327a2eb90d149a5c5999c Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 29 Jun 2016 06:44:18 +0200 Subject: [PATCH] Fixed the "ILLEGAL not declared" mistake. --- src/x86_ops_misc.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/x86_ops_misc.h b/src/x86_ops_misc.h index 836a56637..b93d7cc85 100644 --- a/src/x86_ops_misc.h +++ b/src/x86_ops_misc.h @@ -723,7 +723,15 @@ static int opLOADALL386(uint32_t fetchdat) { uint32_t la_addr = es + EDI; - if (is486) return ILLEGAL; + if (is486 || israpidcad) + { + cpu_state.pc = oldpc; + + // fatal("Illegal instruction %08X\n", fetchdat); + pclog("Illegal instruction %08X\n", fetchdat); + x86illegal(); + return 0; + } cr0 = readmeml(0, la_addr); flags = readmemw(0, la_addr + 4);