diff options
Diffstat (limited to 'src/devices/cpu/z180')
-rw-r--r-- | src/devices/cpu/z180/hd647180x.cpp | 12 | ||||
-rw-r--r-- | src/devices/cpu/z180/hd647180x.h | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/cpu/z180/hd647180x.cpp b/src/devices/cpu/z180/hd647180x.cpp index 15bf3961d23..2311cd7b2ec 100644 --- a/src/devices/cpu/z180/hd647180x.cpp +++ b/src/devices/cpu/z180/hd647180x.cpp @@ -34,8 +34,8 @@ DEFINE_DEVICE_TYPE(HD647180X, hd647180x_device, "hd647180x", "Hitachi HD647180X hd647180x_device::hd647180x_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : z180_device(mconfig, HD647180X, tag, owner, clock, true, address_map_constructor(FUNC(hd647180x_device::prom_map), this)) - , m_port_input_cb{{*this}, {*this}, {*this}, {*this}, {*this}, {*this}, {*this}} - , m_port_output_cb{{*this}, {*this}, {*this}, {*this}, {*this}, {*this}} + , m_port_input_cb(*this) + , m_port_output_cb(*this) , m_data_config("data", ENDIANNESS_LITTLE, 8, 9, 0, address_map_constructor(FUNC(hd647180x_device::ram_map), this)) { // arbitrary initial states @@ -275,10 +275,10 @@ void hd647180x_device::z180_internal_port_write(uint8_t port, uint8_t data) void hd647180x_device::device_resolve_objects() { - for (auto &cb : m_port_input_cb) - cb.resolve_safe(0xff); - for (auto &cb : m_port_output_cb) - cb.resolve_safe(); + z180_device::device_resolve_objects(); + + m_port_input_cb.resolve_all_safe(0xff); + m_port_output_cb.resolve_all_safe(); } void hd647180x_device::device_start() diff --git a/src/devices/cpu/z180/hd647180x.h b/src/devices/cpu/z180/hd647180x.h index 0221a614794..e0d6d3ec1f0 100644 --- a/src/devices/cpu/z180/hd647180x.h +++ b/src/devices/cpu/z180/hd647180x.h @@ -62,8 +62,8 @@ private: void ram_map(address_map &map); // port callbacks - devcb_read8 m_port_input_cb[7]; - devcb_write8 m_port_output_cb[6]; + devcb_read8::array<7> m_port_input_cb; + devcb_write8::array<6> m_port_output_cb; // internal RAM space address_space_config m_data_config; |