From 8c6722b4a026e39edc42c2aa9c2594dc203c5bbb Mon Sep 17 00:00:00 2001 From: Nigel Barnes Date: Fri, 8 Nov 2019 12:51:51 +0000 Subject: hd6345: Derive from hd6845s to maintain compatibility (nw) --- src/devices/video/mc6845.cpp | 10 ++++++++-- src/devices/video/mc6845.h | 4 +++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/devices/video/mc6845.cpp b/src/devices/video/mc6845.cpp index be0adeefc84..84c8e6eeaab 100644 --- a/src/devices/video/mc6845.cpp +++ b/src/devices/video/mc6845.cpp @@ -1336,7 +1336,7 @@ void sy6845e_device::device_start() void hd6345_device::device_start() { - mc6845_device::device_start(); + hd6845s_device::device_start(); m_supports_disp_start_addr_r = true; m_supports_vert_sync_width = true; @@ -1549,6 +1549,12 @@ mc6845_1_device::mc6845_1_device(const machine_config &mconfig, const char *tag, } +hd6845s_device::hd6845s_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) + : mc6845_device(mconfig, type, tag, owner, clock) +{ +} + + hd6845s_device::hd6845s_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : mc6845_device(mconfig, HD6845S, tag, owner, clock) { @@ -1574,7 +1580,7 @@ sy6845e_device::sy6845e_device(const machine_config &mconfig, const char *tag, d hd6345_device::hd6345_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : mc6845_device(mconfig, HD6345, tag, owner, clock) + : hd6845s_device(mconfig, HD6345, tag, owner, clock) { } diff --git a/src/devices/video/mc6845.h b/src/devices/video/mc6845.h index 46dfd9b19fb..1cfd768cdeb 100644 --- a/src/devices/video/mc6845.h +++ b/src/devices/video/mc6845.h @@ -330,6 +330,8 @@ public: hd6845s_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: + hd6845s_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); + virtual void device_start() override; virtual void device_reset() override; virtual bool check_cursor_visible(uint16_t ra, uint16_t line_addr) override; @@ -357,7 +359,7 @@ protected: // HD6345/HD6445 CRTC-II // http://bitsavers.informatik.uni-stuttgart.de/pdf/hitachi/_dataBooks/1987_Hitachi_8_16_Bit_Peripheral_LSI_Data_Book.pdf, pp. 99 -class hd6345_device : public mc6845_device +class hd6345_device : public hd6845s_device { public: hd6345_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); -- cgit v1.2.3