From 1eb630c232ee27dbfd61c393861444a39d95c23b Mon Sep 17 00:00:00 2001 From: kub Date: Thu, 23 May 2024 18:58:10 +0200 Subject: [PATCH] md, no floating bus in cart address space --- pico/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5