minor 68k timing tuning

This commit is contained in:
notaz 2013-08-10 17:58:23 +03:00
parent 12da51c27a
commit 3e5b912cf8
3 changed files with 3 additions and 2 deletions

View file

@ -929,6 +929,7 @@ famec_Exec:
u32 line;
m68kcontext.io_cycle_counter = cycles_needed;
cycles_needed = 0;
if (m68kcontext.io_cycle_counter <= 0) goto famec_End;
line=interrupt_chk__();
if (line>0)
{

View file

@ -198,7 +198,7 @@ static u32 p32x_reg_read16(u32 a)
Pico32x.comm_dirty_sh2 &= ~comreg;
else if (m68k_poll_detect(a, cycles, P32XF_68KCPOLL)) {
SekSetStop(1);
SekEndTimeslice(16);
SekEndRun(16);
}
dr2 = SekDar(2);
goto out;

View file

@ -46,7 +46,7 @@ static __inline void SekRunM68k(int cyc)
#elif defined(EMU_M68K)
SekCycleCnt+=m68k_execute(cyc_do);
#elif defined(EMU_F68K)
SekCycleCnt+=fm68k_emulate(cyc_do+1, 0, 0);
SekCycleCnt+=fm68k_emulate(cyc_do, 0, 0);
#endif
out: