X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FMemory.c;h=8632c7a731691c468311c6ccfb81c23e28c4335c;hb=7b802576b284e113c637324e583a3a44e0e8e871;hp=847d1bd098afda1fc2cef9eb84f7457ca9db8481;hpb=dca310c413517d278898b967cfe610574310acd8;p=picodrive.git diff --git a/Pico/Memory.c b/Pico/Memory.c index 847d1bd..8632c7a 100644 --- a/Pico/Memory.c +++ b/Pico/Memory.c @@ -303,19 +303,8 @@ static void OtherWrite8End(u32 a,u32 d,int realsize) #endif elprintf(EL_UIO, "strange w%i: %06x, %08x @%06x", realsize, a&0xffffff, d, SekPc); - if(a >= 0xA13004 && a < 0xA13040) { - // dumb 12-in-1 or 4-in-1 banking support - int len; - a &= 0x3f; a <<= 16; - len = Pico.romsize - a; - if (len <= 0) return; // invalid/missing bank - if (len > 0x200000) len = 0x200000; // 2 megs - memcpy(Pico.rom, Pico.rom+a, len); // code which does this is in RAM so this is safe. - return; - } - // for games with simple protection devices, discovered by Haze - else if ((a>>22) == 1) + if ((a>>22) == 1) Pico.m.prot_bytes[(a>>2)&1] = (u8)d; }