diff options
Diffstat (limited to 'src/devices/video/hd44352.cpp')
-rw-r--r-- | src/devices/video/hd44352.cpp | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/devices/video/hd44352.cpp b/src/devices/video/hd44352.cpp index 1ca378723f3..af781e17e41 100644 --- a/src/devices/video/hd44352.cpp +++ b/src/devices/video/hd44352.cpp @@ -7,7 +7,7 @@ ***************************************************************************/ #include "emu.h" -#include "video/hd44352.h" +#include "hd44352.h" #define LCD_BYTE_INPUT 0x01 #define LCD_BYTE_OUTPUT 0x02 @@ -55,9 +55,7 @@ void hd44352_device::device_validity_check(validity_checker &valid) const void hd44352_device::device_start() { - m_on_cb.resolve_safe(); - - m_on_timer = timer_alloc(ON_TIMER); + m_on_timer = timer_alloc(FUNC(hd44352_device::on_tick), this); m_on_timer->adjust(attotime::from_hz(m_clock/16384), 0, attotime::from_hz(m_clock/16384)); save_item( NAME(m_control_lines)); @@ -112,20 +110,12 @@ void hd44352_device::device_reset() } -//------------------------------------------------- -// device_timer - handler timer events -//------------------------------------------------- -void hd44352_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) +TIMER_CALLBACK_MEMBER(hd44352_device::on_tick) { - switch(id) + if (m_control_lines & 0x40) { - case ON_TIMER: - if (m_control_lines & 0x40) - { - m_on_cb(ASSERT_LINE); - m_on_cb(CLEAR_LINE); - } - break; + m_on_cb(ASSERT_LINE); + m_on_cb(CLEAR_LINE); } } |