summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-04-19 00:31:27 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-04-19 00:31:27 -0400
commit2f20eaeabce61d423873d0aa9f17e3ceda87ad6f (patch)
treee0678fd8d4f3358fb0dc2c751ca1ddaf533cb743 /src/mame
parent2ad88912a9e4e90cead623061ae53a16db7738b0 (diff)
kokoroj2: Add a whole bunch of lamps (nw)
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/drivers/segas32.cpp13
-rw-r--r--src/mame/includes/segas32.h3
2 files changed, 16 insertions, 0 deletions
diff --git a/src/mame/drivers/segas32.cpp b/src/mame/drivers/segas32.cpp
index 8d189f9e2f6..ad67cd4c966 100644
--- a/src/mame/drivers/segas32.cpp
+++ b/src/mame/drivers/segas32.cpp
@@ -2635,6 +2635,17 @@ machine_config_constructor segas32_upd7725_state::device_mconfig_additions() con
+WRITE8_MEMBER(segas32_cd_state::lamps1_w)
+{
+ for (int i = 0; i < 8; i++)
+ machine().output().set_lamp_value(i, BIT(data, i));
+}
+
+WRITE8_MEMBER(segas32_cd_state::lamps2_w)
+{
+ for (int i = 0; i < 8; i++)
+ machine().output().set_lamp_value(8 + i, BIT(data, i));
+}
static ADDRESS_MAP_START( system32_cd_map, AS_PROGRAM, 16, segas32_state )
ADDRESS_MAP_UNMAP_HIGH
@@ -2652,6 +2663,8 @@ static MACHINE_CONFIG_FRAGMENT( system32_cd )
//MCFG_DEVICE_ADD("mb89352", MB89352A, 8000000)
MCFG_DEVICE_ADD("cxdio", CXD1095, 0)
+ MCFG_CXD1095_OUT_PORTA_CB(WRITE8(segas32_cd_state, lamps1_w))
+ MCFG_CXD1095_OUT_PORTB_CB(WRITE8(segas32_cd_state, lamps2_w))
MCFG_CXD1095_IN_PORTD_CB(CONSTANT(0xff))
MACHINE_CONFIG_END
diff --git a/src/mame/includes/segas32.h b/src/mame/includes/segas32.h
index 078bb1f68ba..4854433d122 100644
--- a/src/mame/includes/segas32.h
+++ b/src/mame/includes/segas32.h
@@ -325,6 +325,9 @@ class segas32_cd_state : public segas32_state
public:
segas32_cd_state(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ DECLARE_WRITE8_MEMBER(lamps1_w);
+ DECLARE_WRITE8_MEMBER(lamps2_w);
+
protected:
virtual machine_config_constructor device_mconfig_additions() const override;
virtual void device_start() override;