From 0482e1c78170e76d74059080c2256fa6f64dbd02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Wed, 12 Sep 2012 09:27:10 +0000 Subject: added dpoker meters --- src/mame/drivers/mcr.c | 22 ++++++++++++++++------ src/mame/includes/mcr.h | 1 + 2 files changed, 17 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/mame/drivers/mcr.c b/src/mame/drivers/mcr.c index 67e05d012d2..33cc71ab653 100644 --- a/src/mame/drivers/mcr.c +++ b/src/mame/drivers/mcr.c @@ -465,6 +465,11 @@ WRITE8_MEMBER(mcr_state::dpoker_p34_w) dpoker_output_34 = data; } +WRITE8_MEMBER(mcr_state::dpoker_p3c_w) +{ + // meters? +} + /************************************* @@ -2792,13 +2797,18 @@ DRIVER_INIT_MEMBER(mcr_state,dpoker) machine().device("ssio")->set_custom_input(0, 0x8e, read8_delegate(FUNC(mcr_state::dpoker_ip0_r),this)); - machine().device("maincpu")->memory().space(AS_IO)->install_read_port(0x24, 0x24, "P24"); - machine().device("maincpu")->memory().space(AS_IO)->install_read_port(0x28, 0x28, "P28"); - machine().device("maincpu")->memory().space(AS_IO)->install_read_port(0x2c, 0x2c, "P2C"); + // meter ram, is it battery backed? + machine().device("maincpu")->memory().space(AS_PROGRAM)->install_ram(0x8000, 0x81ff, 0, 0x0200); + + // extra I/O + machine().device("maincpu")->memory().space(AS_IO)->install_read_port(0x24, 0x24, 0, 0x03, "P24"); + machine().device("maincpu")->memory().space(AS_IO)->install_read_port(0x28, 0x28, 0, 0x03, "P28"); + machine().device("maincpu")->memory().space(AS_IO)->install_read_port(0x2c, 0x2c, 0, 0x03, "P2C"); - machine().device("maincpu")->memory().space(AS_IO)->install_write_handler(0x2c, 0x2c, write8_delegate(FUNC(mcr_state::dpoker_p2c_w),this)); - machine().device("maincpu")->memory().space(AS_IO)->install_write_handler(0x30, 0x30, write8_delegate(FUNC(mcr_state::dpoker_p30_w),this)); - machine().device("maincpu")->memory().space(AS_IO)->install_write_handler(0x34, 0x34, write8_delegate(FUNC(mcr_state::dpoker_p34_w),this)); + machine().device("maincpu")->memory().space(AS_IO)->install_write_handler(0x2c, 0x2c, 0, 0x03, write8_delegate(FUNC(mcr_state::dpoker_p2c_w),this)); + machine().device("maincpu")->memory().space(AS_IO)->install_write_handler(0x30, 0x30, 0, 0x03, write8_delegate(FUNC(mcr_state::dpoker_p30_w),this)); + machine().device("maincpu")->memory().space(AS_IO)->install_write_handler(0x34, 0x34, 0, 0x03, write8_delegate(FUNC(mcr_state::dpoker_p34_w),this)); + machine().device("maincpu")->memory().space(AS_IO)->install_write_handler(0x3c, 0x3c, 0, 0x03, write8_delegate(FUNC(mcr_state::dpoker_p3c_w),this)); dpoker_coin_status = 0; dpoker_output_34 = 0; diff --git a/src/mame/includes/mcr.h b/src/mame/includes/mcr.h index 2279df5ad7f..c0376dc5476 100644 --- a/src/mame/includes/mcr.h +++ b/src/mame/includes/mcr.h @@ -62,6 +62,7 @@ public: DECLARE_WRITE8_MEMBER(dpoker_p2c_w); DECLARE_WRITE8_MEMBER(dpoker_p30_w); DECLARE_WRITE8_MEMBER(dpoker_p34_w); + DECLARE_WRITE8_MEMBER(dpoker_p3c_w); DECLARE_READ8_MEMBER(kick_ip1_r); DECLARE_WRITE8_MEMBER(wacko_op4_w); DECLARE_READ8_MEMBER(wacko_ip1_r); -- cgit v1.2.3