mirror of
https://github.com/holub/mame
synced 2025-05-21 21:29:15 +03:00
02785: a51site4: Interger Overflow with -debug
This commit is contained in:
parent
528d5b6528
commit
4c95c177a8
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user