From 41670496668459cd9a957a633b2c2b77bdc4dbeb Mon Sep 17 00:00:00 2001
From: kub <derkub@gmail.com>
Date: Sat, 18 May 2024 21:58:25 +0200
Subject: [PATCH] core, fix floating bus read for 68k (regression)

---
 pico/memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 }
 
-- 
2.39.5