X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=pico%2F32x%2F32x.c;h=8e3553aff56b3f4ac332d65cce994fafad8c1341;hb=bca23c1c797cf33c2c6812962c479398e644f0aa;hp=112889319f66cf2b25558f66382c2cd8b8c1971f;hpb=5e49c3a88d1c3ece302a40d8c3a32285d3199ab6;p=picodrive.git diff --git a/pico/32x/32x.c b/pico/32x/32x.c index 1128893..8e3553a 100644 --- a/pico/32x/32x.c +++ b/pico/32x/32x.c @@ -10,6 +10,12 @@ void Pico32xStartup(void) PicoAHW |= PAHW_32X; PicoMemSetup32x(); + sh2_init(&msh2); + sh2_reset(&msh2); + + sh2_init(&ssh2); + sh2_reset(&ssh2); + if (!Pico.m.pal) Pico32x.vdp_regs[0] |= P32XV_nPAL; @@ -76,7 +82,15 @@ static __inline void SekRunM68k(int cyc) #endif } +// ~1463.8, but due to cache misses and slow mem +// it's much lower than that +#define SH2_LINE_CYCLES 700 + #define PICO_32X +#define RUN_SH2S \ + if (!(Pico32x.emu_flags & P32XF_MSH2POLL)) \ + sh2_execute(&msh2, SH2_LINE_CYCLES); + #include "../pico_cmn.c" void PicoFrame32x(void)