From 5b84e7c805ffcf93cabfed2749622a34fb3ccdc2 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Fri, 25 Oct 2002 21:23:59 +0000 Subject: [PATCH] String repeat instructions added Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@426 --- src/cpu/core_16/prefix_66.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/cpu/core_16/prefix_66.h b/src/cpu/core_16/prefix_66.h index a22c79ce..33c2aa51 100644 --- a/src/cpu/core_16/prefix_66.h +++ b/src/cpu/core_16/prefix_66.h @@ -69,8 +69,6 @@ switch(Fetchb()) { RMGdEd(CMPD);break; case 0x3d: /* CMP EAX,Id */ EAXId(CMPD);break; - - case 0x26: /* SEG ES: */ SegPrefix_66(es);break; case 0x2e: /* SEG CS: */ @@ -396,7 +394,14 @@ switch(Fetchb()) { GRP2D(1);break; case 0xd3: /* GRP2 Ed,CL */ GRP2D(reg_cl);break; - + case 0xf2: /* REPNZ */ + prefix.count++; + count-=Repeat_Normal(false,true,count); + break; + case 0xf3: /* REPZ */ + prefix.count++; + count-=Repeat_Normal(true,true,count); + break; case 0xf7: /* GRP3 Ed(,Id) */ { union { Bit64u u;Bit64s s;} temp;