X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FMemoryCmn.c;h=15fdeefbc62d16871c61a2f524805ee581880d16;hb=5f20bb80364b4a30149bbb6a7e73af3209532e56;hp=33bad700e48a1df32ab0a1b6eb6bd5fcb217ff8c;hpb=69996cb7c62468cd97842e35bdd2b74006a28dba;p=picodrive.git diff --git a/Pico/MemoryCmn.c b/Pico/MemoryCmn.c index 33bad70..15fdeef 100644 --- a/Pico/MemoryCmn.c +++ b/Pico/MemoryCmn.c @@ -57,7 +57,7 @@ u32 z80ReadBusReq(void) 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. - // TODO: CD Terminator + // 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 } @@ -176,7 +176,7 @@ void OtherWrite8(u32 a,u32 d) #endif if (a==0xa11100) { z80WriteBusReq(d); return; } if (a==0xa11200) { - dprintf("write z80Reset: %02x", d); + elprintf(EL_BUSREQ, "write z80Reset: %02x", d); if(!(d&1)) z80_reset(); return; } @@ -221,6 +221,7 @@ void OtherWrite16(u32 a,u32 d) #ifndef _CD_MEMORY_C if (a >= SRam.start && a <= SRam.end) { + elprintf(EL_SRAMIO, "sram w16 [%06x] %04x @ %06x", a, d, SekPc); if ((a&0x16)==0x10) { // detected, not EEPROM, write not disabled u8 *pm=(u8 *)(SRam.data-SRam.start+a); *pm++=d>>8; @@ -228,7 +229,7 @@ void OtherWrite16(u32 a,u32 d) SRam.changed = 1; } else - SRAMWrite(a, d); // ?? + SRAMWrite(a, d); return; } #else