diff --git a/src/386_dynarec.c b/src/386_dynarec.c index c602ffc..5396f5f 100644 --- a/src/386_dynarec.c +++ b/src/386_dynarec.c @@ -1092,10 +1092,9 @@ int rep386(int fv) default: - pc=ipc; - cycles-=20; - pclog("Bad REP %02X %i\n", temp, rep32 >> 8); - x86illegal(); + pc = ipc+1; + //pclog("Bad REP %02X %i\n", temp, rep32 >> 8); + break; } if (rep32&0x200) ECX=c; else CX=c; diff --git a/src/808x.c b/src/808x.c index dc5a6a0..de9e69b 100644 --- a/src/808x.c +++ b/src/808x.c @@ -1040,7 +1040,7 @@ void rep(int fv) else firstrepcycle=1; break; default: - pc=ipc; + pc = ipc+1; cycles-=20; FETCHCLEAR(); // printf("Bad REP %02X\n",temp);