summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorGravatarGravatar Michaël Banaan Ananas <happppp@users.noreply.github.com>2012-09-12 09:27:10 +0000
committerGravatarGravatar Michaël Banaan Ananas <happppp@users.noreply.github.com>2012-09-12 09:27:10 +0000
commit0482e1c78170e76d74059080c2256fa6f64dbd02 (patch)
tree9aab25defa0ed27b357eff162d01c713833d24c5 /src
parent21c1cac2dd39524b9075acdaf1f7745011712d12 (diff)
added dpoker meters
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/mcr.c22
-rw-r--r--src/mame/includes/mcr.h1
2 files changed, 17 insertions, 6 deletions
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<midway_ssio_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);