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
This commit is contained in:
notaz 2009-08-30 20:40:58 +00:00
parent 2aaac89caf
commit c238eec8f5

View file

@ -45,17 +45,7 @@ static
#endif #endif
u32 z80ReadBusReq(void) u32 z80ReadBusReq(void)
{ {
u32 d=Pico.m.z80Run&1; u32 d = (Pico.m.z80Run | Pico.m.z80_reset) & 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
}
elprintf(EL_BUSREQ, "get_zrun: %02x [%i] @%06x", d|0x80, SekCyclesDone(), SekPc); elprintf(EL_BUSREQ, "get_zrun: %02x [%i] @%06x", d|0x80, SekCyclesDone(), SekPc);
return d|0x80; return d|0x80;
} }