diff options
author | 2023-06-17 01:10:05 +1000 | |
---|---|---|
committer | 2023-06-17 01:10:05 +1000 | |
commit | e9c1f4a42a6758a6fb75403e28c7dc6cf869081c (patch) | |
tree | 8e0b6d960bed4baec2408c9ab950218592ef33ec /src/devices/cpu/h8/h8.cpp | |
parent | c1ceb6e016763537c5109cc76fe5d1b4ae72fdb3 (diff) |
emu/devcb.h: Eliminated the need to call resolve() on callbacks. (#11333)
Read callbacks now need a default return value supplied at construction.
Replaced isnull() with isunset() which tells you if the callback wasn't
configured rather than whether it isn't safe to call.
Enabled validation of device callbacks (it seems it was disabled at some
point, probably accidentally).
Device callbacks and object finders now implement the same interface for
resolution.
Diffstat (limited to 'src/devices/cpu/h8/h8.cpp')
-rw-r--r-- | src/devices/cpu/h8/h8.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/devices/cpu/h8/h8.cpp b/src/devices/cpu/h8/h8.cpp index 8d1851c8abc..338023eab12 100644 --- a/src/devices/cpu/h8/h8.cpp +++ b/src/devices/cpu/h8/h8.cpp @@ -18,8 +18,8 @@ h8_device::h8_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor map_delegate) : cpu_device(mconfig, type, tag, owner, clock), m_program_config("program", ENDIANNESS_BIG, 16, 16, 0, map_delegate), - m_read_adc(*this), - m_read_port(*this), + m_read_adc(*this, 0), + m_read_port(*this, 0), m_write_port(*this), m_sci(*this, "sci%u", 0), m_sci_tx(*this), @@ -74,12 +74,6 @@ void h8_device::device_start() space(AS_PROGRAM).cache(m_cache); space(AS_PROGRAM).specific(m_program); - m_read_adc.resolve_all(); - m_read_port.resolve_all(); - m_write_port.resolve_all(); - m_sci_tx.resolve_all_safe(); - m_sci_clk.resolve_all_safe(); - uint32_t pcmask = m_mode_advanced ? 0xffffff : 0xffff; state_add<uint32_t>(H8_PC, "PC", [this]() { return m_NPC; }, |