mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-10-27 13:38:51 +01:00
sms, add basic sg-1000 support
This commit is contained in:
parent
22917adcff
commit
aaef4b945e
5 changed files with 14 additions and 5 deletions
11
pico/sms.c
11
pico/sms.c
|
|
@ -454,6 +454,14 @@ static void write_bank_jang(unsigned short a, unsigned char d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void write_bank_x8k(unsigned short a, unsigned char d)
|
||||||
|
{
|
||||||
|
if ((a&0xe000) != 0x2000) return;
|
||||||
|
((unsigned char *)PicoMem.vram)[a+0x6000] = d;
|
||||||
|
z80_map_set(z80_read_map, 0x2000, 0x3fff, PicoMem.vram+0x4000, 0);
|
||||||
|
z80_map_set(z80_write_map, 0x2000, 0x3fff, PicoMem.vram+0x4000, 0);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO auto-selecting is not really reliable.
|
// TODO auto-selecting is not really reliable.
|
||||||
// Before adding more mappers this should be revised.
|
// Before adding more mappers this should be revised.
|
||||||
static void xwrite(unsigned int a, unsigned char d)
|
static void xwrite(unsigned int a, unsigned char d)
|
||||||
|
|
@ -480,11 +488,12 @@ static void xwrite(unsigned int a, unsigned char d)
|
||||||
write_bank_codem(a, d);
|
write_bank_codem(a, d);
|
||||||
write_bank_korea(a, d);
|
write_bank_korea(a, d);
|
||||||
write_bank_n16k(a, d);
|
write_bank_n16k(a, d);
|
||||||
|
write_bank_x8k(a, d);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TMR product codes and hardware type for know 50Hz-only games */
|
// TMR product codes and hardware type for know 50Hz-only games
|
||||||
static u32 region_pal[] = { // cf. GX+, core/cart_hw/sms_cartc.c
|
static u32 region_pal[] = { // cf. GX+, core/cart_hw/sms_cartc.c
|
||||||
0x40207067 /* Addams Family */, 0x40207020 /* Back.Future 3 */,
|
0x40207067 /* Addams Family */, 0x40207020 /* Back.Future 3 */,
|
||||||
0x40207058 /* Battlemaniacs */, 0x40007105 /* Cal.Games 2 */,
|
0x40207058 /* Battlemaniacs */, 0x40007105 /* Cal.Games 2 */,
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ static const char *rom_exts[] = {
|
||||||
"bin", "smd", "gen", "md",
|
"bin", "smd", "gen", "md",
|
||||||
"iso", "cso", "cue", "chd",
|
"iso", "cso", "cue", "chd",
|
||||||
"32x",
|
"32x",
|
||||||
"sms", "gg",
|
"sms", "gg", "sg",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -733,7 +733,7 @@ void retro_get_system_info(struct retro_system_info *info)
|
||||||
#define _GIT_VERSION "-" GIT_VERSION
|
#define _GIT_VERSION "-" GIT_VERSION
|
||||||
#endif
|
#endif
|
||||||
info->library_version = VERSION _GIT_VERSION;
|
info->library_version = VERSION _GIT_VERSION;
|
||||||
info->valid_extensions = "bin|gen|smd|md|32x|cue|iso|chd|sms|gg";
|
info->valid_extensions = "bin|gen|smd|md|32x|cue|iso|chd|sms|gg|sg";
|
||||||
info->need_fullpath = true;
|
info->need_fullpath = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@ Exec=PicoDrive %f
|
||||||
Icon=megadrive
|
Icon=megadrive
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=emulators;
|
Categories=emulators;
|
||||||
MimeType=.md;.smd;.bin;.sms;.gg;.cue;.chd;.32x;.zip;.7z
|
MimeType=.md;.smd;.bin;.sms;.gg;.sg;.cue;.chd;.32x;.zip;.7z
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ Icon=megadrive
|
||||||
Categories=emulators;
|
Categories=emulators;
|
||||||
X-OD-Manual=
|
X-OD-Manual=
|
||||||
X-OD-Selector=
|
X-OD-Selector=
|
||||||
X-OD-Filter=.md,.smd,.bin,.sms,.gg,.cue,.chd,.32x,.zip,.7z
|
X-OD-Filter=.md,.smd,.bin,.sms,.gg,.sg,.cue,.chd,.32x,.zip,.7z
|
||||||
Terminal=true
|
Terminal=true
|
||||||
Type=Application
|
Type=Application
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue