From f7b841d05a6a249df1f36a2a3ddec7c89fe65142 Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Thu, 10 Apr 2003 15:43:19 +0000 Subject: [PATCH] fixed bug in bt group Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@902 --- src/cpu/core_16/prefix_of.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cpu/core_16/prefix_of.h b/src/cpu/core_16/prefix_of.h index 039f6608..67324dd0 100644 --- a/src/cpu/core_16/prefix_of.h +++ b/src/cpu/core_16/prefix_of.h @@ -309,9 +309,9 @@ switch(Fetchb()) { case 0xba: /* GRP8 Ew,Ib */ { GetRM; - Bit16u mask=1 << (Fetchb() & 15); if (rm >= 0xc0 ) { GetEArw; + Bit16u mask=1 << (Fetchb() & 15); flags.cf=(*earw & mask)>0; switch (rm & 0x38) { case 0x20: /* BT */ @@ -330,6 +330,7 @@ switch(Fetchb()) { } } else { GetEAa;Bit16u old=LoadMw(eaa); + Bit16u mask=1 << (Fetchb() & 15); flags.cf=(old & mask)>0; switch (rm & 0x38) { case 0x20: /* BT */