From 4c94ab07c967bb024823c4c01e1418cc64fb147a Mon Sep 17 00:00:00 2001 From: SarahW Date: Tue, 20 Jun 2017 19:32:12 +0100 Subject: [PATCH] 286 LOADALL can not change PE bit in MSW register when in protected mode. Patch from Greatpsycho. --- src/x86_ops_misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x86_ops_misc.h b/src/x86_ops_misc.h index cad6d95..ebd9a0d 100644 --- a/src/x86_ops_misc.h +++ b/src/x86_ops_misc.h @@ -734,7 +734,7 @@ static int opLOADALL(uint32_t fetchdat) x86gpf(NULL,0); return 1; } - msw = readmemw(0, 0x806); + msw = (msw & 1) | readmemw(0, 0x806); flags = (readmemw(0, 0x818) & 0xffd5) | 2; flags_extract(); tr.seg = readmemw(0, 0x816);