summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author angelosa <salese_corp_ltd@email.it>2017-09-17 05:43:34 +0200
committer angelosa <salese_corp_ltd@email.it>2017-09-17 05:43:34 +0200
commit669b8bee9872e057f1fe6bebd5c8e8da20965983 (patch)
tree53bf9eb4381e7fb19d4b176620a920554767d6e3
parentf1f5dc367ceb1e13307072772a0ed55ce15707c4 (diff)
ms32.cpp: coin counters (nw)
-rw-r--r--src/mame/drivers/ms32.cpp9
-rw-r--r--src/mame/includes/ms32.h1
2 files changed, 9 insertions, 1 deletions
diff --git a/src/mame/drivers/ms32.cpp b/src/mame/drivers/ms32.cpp
index ed7a3a9e9e7..bf91ac78015 100644
--- a/src/mame/drivers/ms32.cpp
+++ b/src/mame/drivers/ms32.cpp
@@ -338,6 +338,13 @@ WRITE32_MEMBER(ms32_state::pip_w)
popmessage("fce00a7c = %02x",data);
}
+WRITE32_MEMBER(ms32_state::coin_counter_w)
+{
+ // desertwr/p47aces sets 4 here
+ // f1superb sets 2
+ machine().bookkeeping().coin_counter_w(0, data & 0x10);
+ machine().bookkeeping().coin_counter_w(1, data & 0x20);
+}
static ADDRESS_MAP_START( ms32_map, AS_PROGRAM, 32, ms32_state )
/* RAM areas verified by testing on real hw - usually accessed at the 0xfc000000 + mirror */
@@ -374,7 +381,7 @@ static ADDRESS_MAP_START( ms32_map, AS_PROGRAM, 32, ms32_state )
/**/AM_RANGE(0xfce00a00, 0xfce00a17) AM_RAM AM_SHARE("tx_scroll") /* tx layer scroll */
/**/AM_RANGE(0xfce00a20, 0xfce00a37) AM_RAM AM_SHARE("bg_scroll") /* bg layer scroll */
AM_RANGE(0xfce00a7c, 0xfce00a7f) AM_WRITE(pip_w) // ??? layer related? seems to be always 0
-// AM_RANGE(0xfce00e00, 0xfce00e03) coin counters + something else
+ AM_RANGE(0xfce00e00, 0xfce00e03) AM_WRITE(coin_counter_w) // coin counters + something else
AM_RANGE(0xfd000000, 0xfd000003) AM_READ(ms32_sound_r)
AM_RANGE(0xfd1c0000, 0xfd1c0003) AM_WRITEONLY AM_SHARE("mahjong_select")
ADDRESS_MAP_END
diff --git a/src/mame/includes/ms32.h b/src/mame/includes/ms32.h
index a4bdc9bea7f..922e62de742 100644
--- a/src/mame/includes/ms32.h
+++ b/src/mame/includes/ms32.h
@@ -90,6 +90,7 @@ public:
DECLARE_WRITE8_MEMBER(to_main_w);
DECLARE_WRITE32_MEMBER(ms32_brightness_w);
DECLARE_WRITE32_MEMBER(ms32_gfxctrl_w);
+ DECLARE_WRITE32_MEMBER(coin_counter_w);
DECLARE_CUSTOM_INPUT_MEMBER(mahjong_ctrl_r);
DECLARE_DRIVER_INIT(ms32_common);
DECLARE_DRIVER_INIT(ss92047_01);