From: kub Date: Thu, 23 May 2024 16:58:10 +0000 (+0200) Subject: md, no floating bus in cart address space X-Git-Tag: v2.00~47 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eb630c232ee27dbfd61c393861444a39d95c23b;p=picodrive.git md, no floating bus in cart address space --- diff --git a/pico/memory.c b/pico/memory.c index 487c5deb..fa3cf0f9 100644 --- a/pico/memory.c +++ b/pico/memory.c @@ -211,13 +211,13 @@ u32 PicoRead16_floating(u32 a) static u32 m68k_unmapped_read8(u32 a) { elprintf(EL_UIO, "m68k unmapped r8 [%06x] @%06x", a, SekPc); - return (u8)PicoRead16_floating(a); + return a < 0x400000 ? 0 : (u8)PicoRead16_floating(a); } static u32 m68k_unmapped_read16(u32 a) { elprintf(EL_UIO, "m68k unmapped r16 [%06x] @%06x", a, SekPc); - return PicoRead16_floating(a); + return a < 0x400000 ? 0 : PicoRead16_floating(a); } static void m68k_unmapped_write8(u32 a, u32 d)