i80186/i80286: Fixed bound instruction restart when prefixed with a segment. [Wilbert Pol]

This commit is contained in:
Wilbert Pol 2010-10-31 07:54:54 +00:00
parent 66ccc4c8a4
commit dd12c245a8

View File

@ -49,7 +49,7 @@ static void PREFIX186(_bound)(i8086_state *cpustate) /* Opcode 0x62 */
int high= (INT16)GetnextRMWord;
int tmp= (INT16)RegWord(ModRM);
if (tmp<low || tmp>high) {
cpustate->pc-=2;
cpustate->pc-= ( cpustate->seg_prefix ? 3 : 2 );
PREFIX86(_interrupt)(cpustate, 5);
}
ICOUNT -= timing.bound;