summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/z180
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-02-08 00:01:57 +1100
committer Vas Crabb <vas@vastheman.com>2020-02-08 00:01:57 +1100
commit43ab8a7d0d1c01e02ece4c3beccea4083c511225 (patch)
treecdb74105511cf8a5584a23f83943258c7ea6df44 /src/devices/cpu/z180
parent927906163401b32433f18d2d92c72f196bc1f7f8 (diff)
that should be the rest of the devcb arrays switched to new syntax (nw)
Diffstat (limited to 'src/devices/cpu/z180')
-rw-r--r--src/devices/cpu/z180/hd647180x.cpp12
-rw-r--r--src/devices/cpu/z180/hd647180x.h4
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;