summaryrefslogtreecommitdiffstatshomepage
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.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mame/machine/nb1413m3.cpp b/src/mame/machine/nb1413m3.cpp
index 4184fd3950e..cc57664397e 100644
--- a/src/mame/machine/nb1413m3.cpp
+++ b/src/mame/machine/nb1413m3.cpp
@@ -31,9 +31,9 @@ nb1413m3_device::nb1413m3_device(const machine_config &mconfig, const char *tag,
m_sndrombank1(0),
m_sndrombank2(0),
m_busyctr(0),
- m_busyflag(1),
m_outcoin_flag(1),
m_inputport(0xff),
+ m_busyflag(1),
m_74ls193_counter(0),
m_nmi_count(0),
m_nmi_clock(0),
@@ -362,6 +362,16 @@ WRITE8_MEMBER( nb1413m3_device::inputportsel_w )
m_inputport = data;
}
+READ_LINE_MEMBER( nb1413m3_device::busyflag_r )
+{
+ return m_busyflag & 0x01;
+}
+
+WRITE_LINE_MEMBER( nb1413m3_device::busyflag_w )
+{
+ m_busyflag = state;
+}
+
READ8_MEMBER( nb1413m3_device::inputport0_r )
{
return ((machine().root_device().ioport("SYSTEM")->read() & 0xfd) | ((m_outcoin_flag & 0x01) << 1));