From e8913d4dd2ff79b6581dfd39873f5c5092a8c951 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Thu, 26 Feb 2004 07:43:36 +0000 Subject: [PATCH] Save the old value for LAR and LSL instructions.(c2woody) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1687 --- src/cpu/core_normal/prefix_0f.h | 4 ++-- src/cpu/core_normal/prefix_66_0f.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpu/core_normal/prefix_0f.h b/src/cpu/core_normal/prefix_0f.h index c3509448..bbe95b9c 100644 --- a/src/cpu/core_normal/prefix_0f.h +++ b/src/cpu/core_normal/prefix_0f.h @@ -100,7 +100,7 @@ CASE_0F_W(0x02) /* LAR Gw,Ew */ { FillFlags(); - GetRMrw;Bitu ar; + GetRMrw;Bitu ar=*rmrw; if (rm >= 0xc0) { GetEArw;CPU_LAR(*earw,ar); } else { @@ -112,7 +112,7 @@ CASE_0F_W(0x03) /* LSL Gw,Ew */ { FillFlags(); - GetRMrw;Bitu limit; + GetRMrw;Bitu limit=*rmrw; if (rm >= 0xc0) { GetEArw;CPU_LSL(*earw,limit); } else { diff --git a/src/cpu/core_normal/prefix_66_0f.h b/src/cpu/core_normal/prefix_66_0f.h index 39be74ba..8c53663c 100644 --- a/src/cpu/core_normal/prefix_66_0f.h +++ b/src/cpu/core_normal/prefix_66_0f.h @@ -101,7 +101,7 @@ CASE_0F_D(0x02) /* LAR Gd,Ed */ { FillFlags(); - GetRMrd;Bitu ar; + GetRMrd;Bitu ar=*rmrd; if (rm >= 0xc0) { GetEArw;CPU_LAR(*earw,ar); } else { @@ -113,7 +113,7 @@ CASE_0F_D(0x03) /* LSL Gd,Ew */ { FillFlags(); - GetRMrd;Bitu limit; + GetRMrd;Bitu limit=*rmrd; /* Just load 16-bit values for selectors */ if (rm >= 0xc0) { GetEArw;CPU_LSL(*earw,limit);