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/h83003.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/h83003.cpp')
-rw-r--r-- | src/devices/cpu/h8/h83003.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/devices/cpu/h8/h83003.cpp b/src/devices/cpu/h8/h83003.cpp index 934a22acbd8..9a90b646b8f 100644 --- a/src/devices/cpu/h8/h83003.cpp +++ b/src/devices/cpu/h8/h83003.cpp @@ -193,10 +193,8 @@ void h83003_device::device_add_mconfig(machine_config &config) void h83003_device::execute_set_input(int inputnum, int state) { - if(inputnum >= H8_INPUT_LINE_TEND0 && inputnum <= H8_INPUT_LINE_TEND3) { - if(!m_tend_cb[inputnum - H8_INPUT_LINE_TEND0].isnull()) - m_tend_cb[inputnum - H8_INPUT_LINE_TEND0](state); - } + if(inputnum >= H8_INPUT_LINE_TEND0 && inputnum <= H8_INPUT_LINE_TEND3) + m_tend_cb[inputnum - H8_INPUT_LINE_TEND0](state); else if(inputnum >= H8_INPUT_LINE_DREQ0 && inputnum <= H8_INPUT_LINE_DREQ3) m_dma->set_input(inputnum, state); else @@ -266,8 +264,6 @@ void h83003_device::device_start() { h8h_device::device_start(); m_dma_device = m_dma; - - m_tend_cb.resolve_all(); } void h83003_device::device_reset() |