02785: a51site4: Interger Overflow with -debug

This commit is contained in:
Aaron Giles 2008-12-30 00:42:19 +00:00
parent 528d5b6528
commit 4c95c177a8
2 changed files with 3 additions and 1 deletions

View File

@ -2169,8 +2169,9 @@ static void I386OP(hlt)(i386_state *cpustate) // Opcode 0xf4
// TODO: We need to raise an exception in protected mode and when
// the current privilege level is not zero
cpustate->halted = 1;
cpustate->cycles = 0;
CYCLES(cpustate,CYCLES_HLT);
if (cpustate->cycles > 0)
cpustate->cycles = 0;
}
static void I386OP(decimal_adjust)(i386_state *cpustate, int direction)

View File

@ -325,6 +325,7 @@ void cpuexec_timeslice(running_machine *machine)
/* via the call to cpu_execute */
classdata->cycles_stolen = 0;
global->executingcpu = classdata->device;
*classdata->icount = classdata->cycles_running;
if (!call_debugger)
ran = (*classdata->execute)(classdata->device, classdata->cycles_running);
else