X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FSek.c;h=73b7b7cb6b92fa55aff04e6c0e83005ad0a876e2;hb=5f9a0d16309e732ad09b4f5827422cf658bed8c2;hp=d641e04546c6d09bd486516da28eac8e695e9c63;hpb=9cd8914e0223ff79f46dea9bc0b7cbd24c79f4bf;p=picodrive.git diff --git a/Pico/Sek.c b/Pico/Sek.c index d641e04..73b7b7c 100644 --- a/Pico/Sek.c +++ b/Pico/Sek.c @@ -163,6 +163,21 @@ PICO_INTERNAL int SekReset(void) return 0; } +void SekStepM68k(void) +{ + SekCycleAim=SekCycleCnt+1; +#if defined(EMU_CORE_DEBUG) + SekCycleCnt+=CM_compareRun(1, 0); +#elif defined(EMU_C68K) + PicoCpuCM68k.cycles=1; + CycloneRun(&PicoCpuCM68k); + SekCycleCnt+=1-PicoCpuCM68k.cycles; +#elif defined(EMU_M68K) + SekCycleCnt+=m68k_execute(1); +#elif defined(EMU_F68K) + SekCycleCnt+=fm68k_emulate(1, 0); +#endif +} PICO_INTERNAL void SekSetRealTAS(int use_real) { @@ -174,6 +189,7 @@ PICO_INTERNAL void SekSetRealTAS(int use_real) #endif } + /* idle loop detection, not to be used in CD mode */ #ifdef EMU_C68K #include "cpu/Cyclone/tools/idle.h"