From: kub Date: Sat, 18 May 2024 19:58:25 +0000 (+0200) Subject: core, fix floating bus read for 68k (regression) X-Git-Tag: v2.00~56 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41670496668459cd9a957a633b2c2b77bdc4dbeb;p=picodrive.git core, fix floating bus read for 68k (regression) --- diff --git a/pico/memory.c b/pico/memory.c index eca0ba45..487c5deb 100644 --- a/pico/memory.c +++ b/pico/memory.c @@ -204,7 +204,7 @@ u32 PicoRead16_floating(u32 a) // faking open bus u32 d = (Pico.m.rotate += 0x41); d ^= (d << 5) ^ (d << 8); - if ((a & 0xff0000) == 0xa10000) d = 0; // MegaCD pulldowns don't work here curiously + if ((a & 0xff0000) == 0xa10000) return d; // MegaCD pulldowns don't work here curiously return (PicoIn.AHW & PAHW_MCD) ? 0x00 : d; // pulldown if MegaCD2 attached }