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/bus/ti99x/990_tap.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/bus/ti99x/990_tap.cpp')
-rw-r--r-- | src/devices/bus/ti99x/990_tap.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/devices/bus/ti99x/990_tap.cpp b/src/devices/bus/ti99x/990_tap.cpp index 88029455f33..58f3619c101 100644 --- a/src/devices/bus/ti99x/990_tap.cpp +++ b/src/devices/bus/ti99x/990_tap.cpp @@ -35,6 +35,9 @@ #include "imagedev/magtape.h" +#include <algorithm> +#include <iterator> + enum { w0_offline = 0x8000, @@ -968,8 +971,7 @@ tap_990_device::tap_990_device(const machine_config &mconfig, const char *tag, d void tap_990_device::device_start() { - m_int_line.resolve(); - memset(m_w, 0, sizeof(m_w)); + std::fill(std::begin(m_w), std::end(m_w), 0); // The PE bit is always set for the MT3200 (but not MT1600) // According to MT3200 manual, w7 bit #4 (reserved) is always set |