Fixed 32031 so that it doesn't call the debugger if not enabled.

This commit is contained in:
Aaron Giles 2008-06-28 21:04:16 +00:00
parent b00ee43b40
commit 66360324c1
2 changed files with 16 additions and 4 deletions

View File

@ -101,7 +101,6 @@ static void unimplemented(void)
INLINE void execute_one(void)
{
debugger_instruction_hook(Machine, tms32031.pc);
OP = ROPCODE(tms32031.pc);
tms32031_icount -= 2; /* 2 clocks per cycle */
tms32031.pc++;
@ -5310,9 +5309,21 @@ INLINE void execute_delayed(UINT32 newpc)
{
tms32031.delayed = TRUE;
execute_one();
execute_one();
execute_one();
if ((Machine->debug_flags & DEBUG_FLAG_ENABLED) == 0)
{
execute_one();
execute_one();
execute_one();
}
else
{
debugger_instruction_hook(Machine, tms32031.pc);
execute_one();
debugger_instruction_hook(Machine, tms32031.pc);
execute_one();
debugger_instruction_hook(Machine, tms32031.pc);
execute_one();
}
tms32031.pc = newpc;
UPDATEPC(tms32031.pc);

View File

@ -571,6 +571,7 @@ static int tms32031_execute(int cycles)
continue;
}
debugger_instruction_hook(Machine, tms32031.pc);
execute_one();
}
}