summaryrefslogtreecommitdiffstats
path: root/src/mame/machine/nb1413m3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/nb1413m3.cpp')
-rw-r--r--src/mame/machine/nb1413m3.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mame/machine/nb1413m3.cpp b/src/mame/machine/nb1413m3.cpp
index f5602e5f64e..2145a56b72e 100644
--- a/src/mame/machine/nb1413m3.cpp
+++ b/src/mame/machine/nb1413m3.cpp
@@ -24,8 +24,8 @@ Memo:
DEFINE_DEVICE_TYPE(NB1413M3, nb1413m3_device, "nb1413m3", "NB1413 Mahjong Custom")
-nb1413m3_device::nb1413m3_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, NB1413M3, tag, owner, clock),
+nb1413m3_device::nb1413m3_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+ device_t(mconfig, NB1413M3, tag, owner, clock),
m_maincpu(*this, "^maincpu"),
m_sndromrgntag("voice"),
m_sndrombank1(0),
@@ -42,7 +42,8 @@ nb1413m3_device::nb1413m3_device(const machine_config &mconfig, const char *tag,
m_gfxradr_l(0),
m_gfxradr_h(0),
m_gfxrombank(0),
- m_outcoin_enable(0)
+ m_outcoin_enable(0),
+ m_led(*this, "led0")
{
}
@@ -53,6 +54,7 @@ nb1413m3_device::nb1413m3_device(const machine_config &mconfig, const char *tag,
void nb1413m3_device::device_start()
{
+ m_led.resolve();
m_timer_cb = timer_alloc(TIMER_CB);
m_timer_cb->adjust(attotime::zero);
@@ -599,7 +601,7 @@ WRITE8_MEMBER( nb1413m3_device::outcoin_w )
break;
}
- machine().output().set_led_value(2, m_outcoin_flag); // out coin
+ m_led = m_outcoin_flag; // out coin
}
WRITE8_MEMBER( nb1413m3_device::vcrctrl_w )
@@ -607,11 +609,11 @@ WRITE8_MEMBER( nb1413m3_device::vcrctrl_w )
if (data & 0x08)
{
popmessage(" ** VCR CONTROL ** ");
- machine().output().set_led_value(2, 1);
+ m_led = 1;
}
else
{
- machine().output().set_led_value(2, 0);
+ m_led = 0;
}
}