Don't cause illegal instruction exception on unknown REP instruction. Patch from Battler.
This commit is contained in:
parent
91405ece3c
commit
673a3527af
2 changed files with 4 additions and 5 deletions
|
|
@ -1092,10 +1092,9 @@ int rep386(int fv)
|
||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
pc=ipc;
|
pc = ipc+1;
|
||||||
cycles-=20;
|
//pclog("Bad REP %02X %i\n", temp, rep32 >> 8);
|
||||||
pclog("Bad REP %02X %i\n", temp, rep32 >> 8);
|
break;
|
||||||
x86illegal();
|
|
||||||
}
|
}
|
||||||
if (rep32&0x200) ECX=c;
|
if (rep32&0x200) ECX=c;
|
||||||
else CX=c;
|
else CX=c;
|
||||||
|
|
|
||||||
|
|
@ -1040,7 +1040,7 @@ void rep(int fv)
|
||||||
else firstrepcycle=1;
|
else firstrepcycle=1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
pc=ipc;
|
pc = ipc+1;
|
||||||
cycles-=20;
|
cycles-=20;
|
||||||
FETCHCLEAR();
|
FETCHCLEAR();
|
||||||
// printf("Bad REP %02X\n",temp);
|
// printf("Bad REP %02X\n",temp);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue