X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FMemoryCmn.c;h=ee75abcabc143b498760a4a3144612e261c1bf90;hb=29a951879b9e2d2f93f9aa3a34c2872e6cbf4e39;hp=48c564cc2a84504d71508ed69b28046021bb5f76;hpb=d9153729685381acb0559d8a4fdca47cb839427a;p=picodrive.git diff --git a/Pico/MemoryCmn.c b/Pico/MemoryCmn.c index 48c564c..ee75abc 100644 --- a/Pico/MemoryCmn.c +++ b/Pico/MemoryCmn.c @@ -1,4 +1,5 @@ -/* common code for Memory.c and cd/Memory.c */ +// common code for Memory.c and cd/Memory.c +// (c) Copyright 2006-2007, Grazvydas "notaz" Ignotas static int PadRead(int i) { @@ -98,14 +99,15 @@ 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 1 if (!d) { // needed by buggy Terminator (Sega CD) - extern int z80stopCycle; int stop_before = SekCyclesDone() - z80stopCycle; 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;