From: notaz Date: Mon, 5 Oct 2009 15:35:14 +0000 (+0000) Subject: 32x: famec support X-Git-Tag: v1.85~248 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=602c28cac19e78c6404783fc38bbf232af70128c;p=picodrive.git 32x: famec support git-svn-id: file:///home/notaz/opt/svn/PicoDrive@802 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/pico/32x/memory.c b/pico/32x/memory.c index 1b5bdd43..26997c9f 100644 --- a/pico/32x/memory.c +++ b/pico/32x/memory.c @@ -894,6 +894,12 @@ static void bank_switch(int b) cpu68k_map_set(m68k_read16_map, 0x900000, 0x900000 + rs - 1, Pico.rom + bank, 0); elprintf(EL_32X, "bank %06x-%06x -> %06x", 0x900000, 0x900000 + rs - 1, bank); + +#ifdef EMU_F68K + // setup FAME fetchmap + for (rs = 0x90; rs < 0xa0; rs++) + PicoCpuFM68k.Fetch[rs] = (u32)Pico.rom + bank - 0x900000; +#endif } // ----------------------------------------------------------------- @@ -1289,6 +1295,12 @@ void PicoMemSetup32x(void) rs = 0x80000; cpu68k_map_set(m68k_read8_map, 0x880000, 0x880000 + rs - 1, Pico.rom, 0); cpu68k_map_set(m68k_read16_map, 0x880000, 0x880000 + rs - 1, Pico.rom, 0); +#ifdef EMU_F68K + // setup FAME fetchmap + PicoCpuFM68k.Fetch[0] = (u32)Pico32xMem->m68k_rom; + for (rs = 0x88; rs < 0x90; rs++) + PicoCpuFM68k.Fetch[rs] = (u32)Pico.rom - 0x880000; +#endif // 32X ROM (banked) bank_switch(0);