X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=Pico%2FMemoryCmn.c;h=43433af4887229c9e7e808ccc817e58b5334a8e3;hb=66fdc0f0d590809fb0040d08fd57607bf80b1abc;hp=5c7ef84e3304fb87735d5182ab233506fa61590c;hpb=fa1e5e2948e9b06dec3353081081173f7ae4d742;p=picodrive.git diff --git a/Pico/MemoryCmn.c b/Pico/MemoryCmn.c index 5c7ef84..43433af 100644 --- a/Pico/MemoryCmn.c +++ b/Pico/MemoryCmn.c @@ -98,15 +98,14 @@ u32 OtherRead16(u32 a, int realsize) // |=0x80 for Shadow of the Beast & Super Offroad; rotate fakes next fetched instruction for Time Killers if (a==0xa11100) { // z80 busreq d=Pico.m.z80Run&1; -#if 0 if (!d) { - // do we need this? + // needed by buggy Terminator (Sega CD) extern int z80stopCycle; int stop_before = SekCyclesDone() - z80stopCycle; - if (stop_before > 0 && stop_before <= 16) // Gens uses 16 here + dprintf("stop before: %i", stop_before); + if (stop_before > 0 && stop_before <= 32) // Gens uses 16 here d = 1; // bus not yet available } -#endif d=(d<<8)|0x8000|Pico.m.rotate++; dprintf("get_zrun: %04x [%i|%i] @%06x", d, Pico.m.scanline, SekCyclesDone(), SekPc); goto end;