Skip to content

Commit

Permalink
md, no floating bus in cart address space
Browse files Browse the repository at this point in the history
  • Loading branch information
irixxxx committed May 23, 2024
1 parent 75a6b6a commit 1eb630c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pico/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1eb630c

Please sign in to comment.