diff options
Diffstat (limited to 'src/devices/video/pcd8544.cpp')
-rw-r--r-- | src/devices/video/pcd8544.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/devices/video/pcd8544.cpp b/src/devices/video/pcd8544.cpp index 0cca6742b05..04f177e873d 100644 --- a/src/devices/video/pcd8544.cpp +++ b/src/devices/video/pcd8544.cpp @@ -7,7 +7,7 @@ ***************************************************************************/ #include "emu.h" -#include "video/pcd8544.h" +#include "pcd8544.h" #include "screen.h" @@ -31,7 +31,8 @@ DEFINE_DEVICE_TYPE(PCD8544, pcd8544_device, "pcd8544_device", "Philips PCD8544 L //------------------------------------------------- pcd8544_device::pcd8544_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - device_t(mconfig, PCD8544, tag, owner, clock) + device_t(mconfig, PCD8544, tag, owner, clock), + m_screen_update_cb(*this) { } @@ -41,7 +42,7 @@ pcd8544_device::pcd8544_device(const machine_config &mconfig, const char *tag, d void pcd8544_device::device_start() { - m_screen_update_cb.bind_relative_to(*owner()); + m_screen_update_cb.resolve(); // state saving save_item(NAME(m_sdin)); @@ -174,12 +175,12 @@ void pcd8544_device::write_data(uint8_t data) } } -WRITE_LINE_MEMBER(pcd8544_device::sdin_w) +void pcd8544_device::sdin_w(int state) { m_sdin = state; } -WRITE_LINE_MEMBER(pcd8544_device::sclk_w) +void pcd8544_device::sclk_w(int state) { if (!m_sclk && state) { @@ -200,7 +201,7 @@ WRITE_LINE_MEMBER(pcd8544_device::sclk_w) m_sclk = state; } -WRITE_LINE_MEMBER(pcd8544_device::dc_w) +void pcd8544_device::dc_w(int state) { m_dc = state; } |