diff options
Diffstat (limited to 'src/devices/cpu/z8/z8.cpp')
-rw-r--r-- | src/devices/cpu/z8/z8.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/devices/cpu/z8/z8.cpp b/src/devices/cpu/z8/z8.cpp index 6f916fd4d3f..f958754537c 100644 --- a/src/devices/cpu/z8/z8.cpp +++ b/src/devices/cpu/z8/z8.cpp @@ -167,8 +167,8 @@ z8_device::z8_device(const machine_config &mconfig, device_type type, const char , m_program_config("program", ENDIANNESS_BIG, 8, 16, 0, preprogrammed ? address_map_constructor(FUNC(z8_device::preprogrammed_map), this) : address_map_constructor(FUNC(z8_device::program_map), this)) , m_data_config("data", ENDIANNESS_BIG, 8, 16, 0) , m_register_config("register", ENDIANNESS_BIG, 8, 8, 0, address_map_constructor(FUNC(z8_device::register_map), this)) - , m_input_cb{{*this}, {*this}, {*this}, {*this}} - , m_output_cb{{*this}, {*this}, {*this}, {*this}} + , m_input_cb(*this) + , m_output_cb(*this) , m_rom_size(rom_size) , m_input{0xff, 0xff, 0xff, 0x0f} { @@ -1173,10 +1173,8 @@ TIMER_CALLBACK_MEMBER(z8_device::timeout) void z8_device::device_start() { - for (auto &cb : m_input_cb) - cb.resolve_safe(0xff); - for (auto &cb : m_output_cb) - cb.resolve_safe(); + m_input_cb.resolve_all_safe(0xff); + m_output_cb.resolve_all_safe(); /* set up the state table */ { |