From dd12c245a86bc39f983868b3187e747a10a0e79c Mon Sep 17 00:00:00 2001 From: Wilbert Pol Date: Sun, 31 Oct 2010 07:54:54 +0000 Subject: [PATCH] i80186/i80286: Fixed bound instruction restart when prefixed with a segment. [Wilbert Pol] --- src/emu/cpu/i86/instr186.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/cpu/i86/instr186.c b/src/emu/cpu/i86/instr186.c index d391bdce04f..52d76db52fd 100644 --- a/src/emu/cpu/i86/instr186.c +++ b/src/emu/cpu/i86/instr186.c @@ -49,7 +49,7 @@ static void PREFIX186(_bound)(i8086_state *cpustate) /* Opcode 0x62 */ int high= (INT16)GetnextRMWord; int tmp= (INT16)RegWord(ModRM); if (tmphigh) { - cpustate->pc-=2; + cpustate->pc-= ( cpustate->seg_prefix ? 3 : 2 ); PREFIX86(_interrupt)(cpustate, 5); } ICOUNT -= timing.bound;