From 719fbf846f3c60fd45e317f4d5c4b84f9202b686 Mon Sep 17 00:00:00 2001 From: Robbbert Date: Sun, 23 Sep 2012 11:57:23 +0000 Subject: [PATCH] ZAC_1 - Added nvram --- src/mame/drivers/zac_1.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mame/drivers/zac_1.c b/src/mame/drivers/zac_1.c index d3d63bfa83b..8170e0f980a 100644 --- a/src/mame/drivers/zac_1.c +++ b/src/mame/drivers/zac_1.c @@ -2,6 +2,8 @@ Zaccaria Generation 1 + Made working in Sept 2012 [Robbbert] + These games allow for up to 4 players at the same time. Setup is via a menu - there are no dipswitches. If you see 6 and 9 flashing at start- this indicates the battery is flat, @@ -21,14 +23,13 @@ ToDo: - Outputs - Sound -- Proper Artwork -- Battery Backup **************************************************************************************/ #include "machine/genpin.h" #include "cpu/s2650/s2650.h" +#include "machine/nvram.h" #include "zac_1.lh" class zac_1_state : public driver_device @@ -246,6 +247,8 @@ static MACHINE_CONFIG_START( zac_1, zac_1_state ) MCFG_CPU_ADD("maincpu", S2650, 6000000/2) MCFG_CPU_PROGRAM_MAP(zac_1_map) MCFG_CPU_IO_MAP(zac_1_io) + MCFG_NVRAM_ADD_0FILL("ram") + MCFG_TIMER_ADD_PERIODIC("zac_1_inttimer", zac_1_inttimer, attotime::from_hz(200)) MCFG_TIMER_ADD_PERIODIC("zac_1_outtimer", zac_1_outtimer, attotime::from_hz(187500))