From c7d524bc8295b740200f74c5f7aa3a108039dd31 Mon Sep 17 00:00:00 2001 From: mahlemiut Date: Thu, 12 Jul 2018 22:47:16 +1200 Subject: [PATCH] fix validation (nw) --- src/devices/machine/i8255.cpp | 14 ++++++++++---- src/devices/machine/i8255.h | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/devices/machine/i8255.cpp b/src/devices/machine/i8255.cpp index 0b6182500b9..d771c9d1468 100644 --- a/src/devices/machine/i8255.cpp +++ b/src/devices/machine/i8255.cpp @@ -260,8 +260,8 @@ inline int i8255_device::port_c_upper_mode() // i8255_device - constructor //------------------------------------------------- -i8255_device::i8255_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : device_t(mconfig, I8255, tag, owner, clock), +i8255_device::i8255_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) + : device_t(mconfig, type, tag, owner, clock), m_in_pa_cb(*this), m_in_pb_cb(*this), m_in_pc_cb(*this), @@ -275,6 +275,11 @@ i8255_device::i8255_device(const machine_config &mconfig, const char *tag, devic m_control = 0; } +i8255_device::i8255_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) + : i8255_device(mconfig, I8255, tag, owner, clock) +{ +} + //------------------------------------------------- // device_start - device-specific startup //------------------------------------------------- @@ -1022,8 +1027,9 @@ WRITE_LINE_MEMBER( i8255_device::pc6_w ) // AMS40489 (Amstrad Plus/GX4000 ASIC PPI implementation) ams40489_ppi_device::ams40489_ppi_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : i8255_device(mconfig,tag,owner,clock) -{} + : i8255_device(mconfig,AMS40489_PPI,tag,owner,clock) +{ +} void ams40489_ppi_device::device_reset() { i8255_device::device_reset(); } diff --git a/src/devices/machine/i8255.h b/src/devices/machine/i8255.h index 407a1cbef4e..679b07654e6 100644 --- a/src/devices/machine/i8255.h +++ b/src/devices/machine/i8255.h @@ -107,6 +107,8 @@ public: DECLARE_WRITE_LINE_MEMBER( pc6_w ); protected: + i8255_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); + // device-level overrides virtual void device_start() override; virtual void device_reset() override;