mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
(MESS) megadriv.c: removed nvram handler. MESS was not using this since more than one year,
and it was causing MT #03873. If any bootleg megadrive board needs this, please let me know so that I can re-add it to the correct driver. nw.
This commit is contained in:
parent
6ef103c524
commit
3452c8c88b
@ -42,7 +42,7 @@ this reason.
|
||||
Only a handful of games were released for this system.
|
||||
|
||||
Bugs:
|
||||
Most of this is guesswork and should be verified on real hw. Sometims after inserting
|
||||
Most of this is guesswork and should be verified on real hw. Sometimes after inserting
|
||||
a coin and pressing start the 'press start' message remains on screen and no credit is
|
||||
deducted. (timing?)
|
||||
|
||||
|
@ -837,7 +837,7 @@ ADDRESS_MAP_END
|
||||
|
||||
/************************************ Megadrive Bootlegs *************************************/
|
||||
|
||||
// smaller ROM region because some bootlegs check for RAM there
|
||||
// smaller ROM region because some bootlegs check for RAM there (used by topshoot and hshavoc)
|
||||
static ADDRESS_MAP_START( md_bootleg_map, AS_PROGRAM, 16, md_boot_state )
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_ROM /* Cartridge Program Rom */
|
||||
AM_RANGE(0x200000, 0x2023ff) AM_RAM // tested
|
||||
@ -955,32 +955,6 @@ void megadriv_stop_scanline_timer(running_machine &machine)
|
||||
|
||||
|
||||
|
||||
static UINT16* megadriv_backupram;
|
||||
static int megadriv_backupram_length;
|
||||
|
||||
static NVRAM_HANDLER( megadriv )
|
||||
{
|
||||
if (megadriv_backupram!=NULL)
|
||||
{
|
||||
if (read_or_write)
|
||||
file->write(megadriv_backupram, megadriv_backupram_length);
|
||||
else
|
||||
{
|
||||
if (file)
|
||||
{
|
||||
file->read(megadriv_backupram, megadriv_backupram_length);
|
||||
}
|
||||
else
|
||||
{
|
||||
int x;
|
||||
for (x=0;x<megadriv_backupram_length/2;x++)
|
||||
megadriv_backupram[x]=0xffff;//machine.rand(); // dino dini's needs 0xff or game rules are broken
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// this comes from the VDP on lines 240 (on) 241 (off) and is connected to the z80 irq 0
|
||||
void genesis_vdp_sndirqline_callback_genesis_z80(running_machine &machine, bool state)
|
||||
{
|
||||
@ -1098,8 +1072,6 @@ MACHINE_CONFIG_FRAGMENT( md_ntsc )
|
||||
|
||||
MCFG_TIMER_ADD_SCANLINE("scantimer", megadriv_scanline_timer_callback_alt_timing, "megadriv", 0, 1)
|
||||
|
||||
MCFG_NVRAM_HANDLER(megadriv)
|
||||
|
||||
MCFG_PALETTE_LENGTH(0x200)
|
||||
|
||||
MCFG_VIDEO_START(megadriv)
|
||||
@ -1149,8 +1121,6 @@ MACHINE_CONFIG_FRAGMENT( md_pal )
|
||||
MCFG_SCREEN_UPDATE_STATIC(megadriv) /* Copies a bitmap */
|
||||
MCFG_SCREEN_VBLANK_STATIC(megadriv) /* Used to Sync the timing */
|
||||
|
||||
MCFG_NVRAM_HANDLER(megadriv)
|
||||
|
||||
MCFG_PALETTE_LENGTH(0x200)
|
||||
|
||||
MCFG_VIDEO_START(megadriv)
|
||||
@ -1204,8 +1174,6 @@ void md_base_state::megadriv_init_common()
|
||||
}
|
||||
|
||||
machine().device("maincpu")->execute().set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(md_base_state::genesis_int_callback),this));
|
||||
megadriv_backupram = NULL;
|
||||
megadriv_backupram_length = 0;
|
||||
|
||||
vdp_get_word_from_68k_mem = vdp_get_word_from_68k_mem_default;
|
||||
|
||||
|
@ -377,7 +377,6 @@ SLOT_INTERFACE_END
|
||||
|
||||
static MACHINE_CONFIG_START( ms_megadriv, md_cons_state )
|
||||
MCFG_FRAGMENT_ADD( md_ntsc )
|
||||
MCFG_NVRAM_HANDLER_CLEAR()
|
||||
|
||||
MCFG_MACHINE_START( ms_megadriv )
|
||||
MCFG_MACHINE_RESET( ms_megadriv )
|
||||
@ -388,7 +387,6 @@ MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_START( ms_megadpal, md_cons_state )
|
||||
MCFG_FRAGMENT_ADD( md_pal )
|
||||
MCFG_NVRAM_HANDLER_CLEAR()
|
||||
|
||||
MCFG_MACHINE_START( ms_megadriv )
|
||||
MCFG_MACHINE_RESET( ms_megadriv )
|
||||
@ -522,7 +520,6 @@ DEVICE_IMAGE_LOAD_MEMBER( md_base_state, _32x_cart )
|
||||
|
||||
static MACHINE_CONFIG_START( genesis_32x, md_cons_state )
|
||||
MCFG_FRAGMENT_ADD( md_ntsc )
|
||||
MCFG_NVRAM_HANDLER_CLEAR()
|
||||
|
||||
MCFG_DEVICE_ADD("sega32x", SEGA_32X_NTSC, 0)
|
||||
|
||||
@ -554,7 +551,6 @@ MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_START( mdj_32x, md_cons_state )
|
||||
MCFG_FRAGMENT_ADD( md_ntsc )
|
||||
MCFG_NVRAM_HANDLER_CLEAR()
|
||||
|
||||
MCFG_DEVICE_ADD("sega32x", SEGA_32X_NTSC, 0)
|
||||
|
||||
@ -586,7 +582,6 @@ MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_START( md_32x, md_cons_state )
|
||||
MCFG_FRAGMENT_ADD( md_pal )
|
||||
MCFG_NVRAM_HANDLER_CLEAR()
|
||||
|
||||
MCFG_DEVICE_ADD("sega32x", SEGA_32X_PAL, 0)
|
||||
|
||||
@ -841,7 +836,6 @@ INPUT_PORTS_END
|
||||
|
||||
static MACHINE_CONFIG_START( megdsvp, mdsvp_state )
|
||||
MCFG_FRAGMENT_ADD( md_ntsc )
|
||||
MCFG_NVRAM_HANDLER_CLEAR()
|
||||
|
||||
MCFG_CPU_ADD("svp", SSP1601, MASTER_CLOCK_NTSC / 7 * 3) /* ~23 MHz (guessed) */
|
||||
MCFG_CPU_PROGRAM_MAP(svp_ssp_map)
|
||||
@ -857,7 +851,6 @@ MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_START( megdsvp_pal, mdsvp_state )
|
||||
MCFG_FRAGMENT_ADD( md_pal )
|
||||
MCFG_NVRAM_HANDLER_CLEAR()
|
||||
|
||||
MCFG_CPU_ADD("svp", SSP1601, MASTER_CLOCK_PAL / 7 * 3) /* ~23 MHz (guessed) */
|
||||
MCFG_CPU_PROGRAM_MAP(svp_ssp_map)
|
||||
@ -1076,7 +1069,6 @@ static MACHINE_START(pico)
|
||||
|
||||
static MACHINE_CONFIG_START( pico, pico_state )
|
||||
MCFG_FRAGMENT_ADD( md_ntsc )
|
||||
MCFG_NVRAM_HANDLER_CLEAR()
|
||||
|
||||
MCFG_CPU_MODIFY("maincpu")
|
||||
MCFG_CPU_PROGRAM_MAP(pico_mem)
|
||||
@ -1092,7 +1084,6 @@ MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_START( picopal, pico_state )
|
||||
MCFG_FRAGMENT_ADD( md_pal )
|
||||
MCFG_NVRAM_HANDLER_CLEAR()
|
||||
|
||||
MCFG_CPU_MODIFY("maincpu")
|
||||
MCFG_CPU_PROGRAM_MAP(pico_mem)
|
||||
|
Loading…
Reference in New Issue
Block a user