From e422d32cd6f837e75b06ece511396ee37cb2496d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Tue, 5 Aug 2014 09:41:06 +0000 Subject: [PATCH] put in a read_line for the alarm pin --- src/emu/machine/rp5c01.c | 13 ------------- src/emu/machine/rp5c01.h | 3 ++- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/emu/machine/rp5c01.c b/src/emu/machine/rp5c01.c index 3a58c5d1b5b..c1d53302368 100644 --- a/src/emu/machine/rp5c01.c +++ b/src/emu/machine/rp5c01.c @@ -310,19 +310,6 @@ void rp5c01_device::nvram_write(emu_file &file) } -//------------------------------------------------- -// adj_w - -//------------------------------------------------- - -WRITE_LINE_MEMBER( rp5c01_device::adj_w ) -{ - if (state) - { - adjust_seconds(); - } -} - - //------------------------------------------------- // read - //------------------------------------------------- diff --git a/src/emu/machine/rp5c01.h b/src/emu/machine/rp5c01.h index caaf5441078..52ed13b3c7b 100644 --- a/src/emu/machine/rp5c01.h +++ b/src/emu/machine/rp5c01.h @@ -56,7 +56,8 @@ public: DECLARE_READ8_MEMBER( read ); DECLARE_WRITE8_MEMBER( write ); - DECLARE_WRITE_LINE_MEMBER( adj_w ); + DECLARE_READ_LINE_MEMBER( alarm_r ) { return m_alarm; } + DECLARE_WRITE_LINE_MEMBER( adj_w ) { if (state) adjust_seconds(); } protected: // device-level overrides