X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=pico%2Fpico_cmn.c;h=f4e20d21f8f43077a5349b9df38c78d2d394d00d;hb=75a30842c4f9e7e95a199361b9348c9f9dede0e6;hp=3383b1313a3f1201080f1e76065be3c2b0b93f21;hpb=12da51c27a8d1c1205d8f0f01bbc4814c46e79ce;p=picodrive.git diff --git a/pico/pico_cmn.c b/pico/pico_cmn.c index 3383b13..f4e20d2 100644 --- a/pico/pico_cmn.c +++ b/pico/pico_cmn.c @@ -14,11 +14,10 @@ #define CYCLES_S68K_ASD 241 // pad delay (for 6 button pads) -#define PAD_DELAY \ - if (PicoOpt&POPT_6BTN_PAD) { \ - if(Pico.m.padDelay[0]++ > 25) Pico.m.padTHPhase[0]=0; \ - if(Pico.m.padDelay[1]++ > 25) Pico.m.padTHPhase[1]=0; \ - } +#define PAD_DELAY() { \ + if(Pico.m.padDelay[0]++ > 25) Pico.m.padTHPhase[0]=0; \ + if(Pico.m.padDelay[1]++ > 25) Pico.m.padTHPhase[1]=0; \ +} // CPUS_RUN #ifndef CPUS_RUN @@ -46,7 +45,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: @@ -114,7 +113,7 @@ static int PicoFrameHints(void) Pico.video.status|=0x200; } - PAD_DELAY + PAD_DELAY(); #ifdef PICO_CD check_cd_dma(); #endif @@ -187,7 +186,7 @@ static int PicoFrameHints(void) Pico.video.status|=0x200; memcpy(PicoPadInt, PicoPad, sizeof(PicoPadInt)); - PAD_DELAY + PAD_DELAY(); #ifdef PICO_CD check_cd_dma(); #endif @@ -257,7 +256,7 @@ static int PicoFrameHints(void) pv->v_counter = (pv->v_counter << 1) | 1; pv->v_counter &= 0xff; - PAD_DELAY + PAD_DELAY(); #ifdef PICO_CD check_cd_dma(); #endif