From: notaz Date: Sun, 30 Aug 2009 20:40:58 +0000 (+0000) Subject: based on hw tests busreq is affected by reset. Remove old hack too X-Git-Tag: v1.85~282 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c238eec8f5cb7a64dec62d9f32473b88df8ee359;p=picodrive.git based on hw tests busreq is affected by reset. Remove old hack too git-svn-id: file:///home/notaz/opt/svn/PicoDrive@767 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/pico/memory_cmn.c b/pico/memory_cmn.c index fbe5041..266f807 100644 --- a/pico/memory_cmn.c +++ b/pico/memory_cmn.c @@ -45,17 +45,7 @@ static #endif u32 z80ReadBusReq(void) { - u32 d=Pico.m.z80Run&1; - if (!d) { - // needed by buggy Terminator (Sega CD) - int stop_before = SekCyclesDone() - z80stopCycle; - //elprintf(EL_BUSREQ, "get_zrun: stop before: %i", stop_before); - // note: if we use 20 or more here, Barkley Shut Up and Jam! will purposedly crash itself. - // but CD Terminator needs at least 32, so it only works because next frame cycle wrap. - if (stop_before > 0 && stop_before < 20) // Gens uses 16 here - d = 1; // bus not yet available - } - + u32 d = (Pico.m.z80Run | Pico.m.z80_reset) & 1; elprintf(EL_BUSREQ, "get_zrun: %02x [%i] @%06x", d|0x80, SekCyclesDone(), SekPc); return d|0x80; }