X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fmemory.c;h=d2dced32f21c4509ca5fd5be0dbcab1fb12fd8cc;hb=be2c420828ab3c36ef652584fbdef0e0597c7028;hp=da73961cc352595c4f333ed87a92728ef3937729;hpb=000f53350cb0d6540310d8c4b02eb034c9662f0d;p=picodrive.git diff --git a/pico/memory.c b/pico/memory.c index da73961..d2dced3 100644 --- a/pico/memory.c +++ b/pico/memory.c @@ -501,6 +501,11 @@ u32 PicoRead8_io(u32 a) goto end; } + if (!(PicoOpt & POPT_DIS_32X)) { + d = PicoRead8_32x(a); + goto end; + } + d = m68k_unmapped_read8(a); end: return d; @@ -529,6 +534,11 @@ u32 PicoRead16_io(u32 a) goto end; } + if (!(PicoOpt & POPT_DIS_32X)) { + d = PicoRead16_32x(a); + goto end; + } + d = m68k_unmapped_read16(a); end: return d; @@ -554,6 +564,11 @@ void PicoWrite8_io(u32 a, u32 d) Pico.m.sram_reg |= (u8)(d & 3); return; } + if (!(PicoOpt & POPT_DIS_32X)) { + PicoWrite8_32x(a, d); + return; + } + m68k_unmapped_write8(a, d); } @@ -577,6 +592,10 @@ void PicoWrite16_io(u32 a, u32 d) Pico.m.sram_reg |= (u8)(d & 3); return; } + if (!(PicoOpt & POPT_DIS_32X)) { + PicoWrite16_32x(a, d); + return; + } m68k_unmapped_write16(a, d); }