From 544c1a2fe51223450580395f6e90f4ab2686abe2 Mon Sep 17 00:00:00 2001 From: ripsaw8080 Date: Thu, 19 Jun 2014 18:51:42 +0000 Subject: [PATCH] Illegal memory reads have all bits set. Fixes early (and buggy) shareware versions of Shadow Warrior. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3868 --- src/hardware/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/memory.cpp b/src/hardware/memory.cpp index 02827a1b..5b115193 100644 --- a/src/hardware/memory.cpp +++ b/src/hardware/memory.cpp @@ -73,7 +73,7 @@ public: LOG_MSG("Illegal read from %x, CS:IP %8x:%8x",addr,SegValue(cs),reg_eip); } #endif - return 0; + return 0xff; } void writeb(PhysPt addr,Bitu val) { #if C_DEBUG