diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2017-04-11 00:39:35 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2017-04-11 00:39:35 -0400 |
commit | c9424f3f5b70e7e639bc41556a3c52e69d0886ec (patch) | |
tree | cea892fcbc6520ce6b4d60eb2d91490809f33f2e | |
parent | 644fa749c6cbc78268b561502a033b3c14a54ff0 (diff) |
cxd1095: Implement reset behavior (nw)
-rw-r--r-- | src/devices/machine/cxd1095.cpp | 10 | ||||
-rw-r--r-- | src/devices/machine/cxd1095.h | 1 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/devices/machine/cxd1095.cpp b/src/devices/machine/cxd1095.cpp index 430348de631..5aaf3a14ad3 100644 --- a/src/devices/machine/cxd1095.cpp +++ b/src/devices/machine/cxd1095.cpp @@ -53,7 +53,6 @@ void cxd1095_device::device_start() cb.resolve(); std::fill(std::begin(m_data_latch), std::end(m_data_latch), 0); - std::fill(std::begin(m_data_dir), std::end(m_data_dir), 0xff); // save state save_item(NAME(m_data_latch)); @@ -61,6 +60,15 @@ void cxd1095_device::device_start() } //------------------------------------------------- +// device_reset - device-specific reset +//------------------------------------------------- + +void cxd1095_device::device_reset() +{ + std::fill(std::begin(m_data_dir), std::end(m_data_dir), 0xff); +} + +//------------------------------------------------- // read - read from an input port //------------------------------------------------- diff --git a/src/devices/machine/cxd1095.h b/src/devices/machine/cxd1095.h index 2f67fc85444..2fce5fced2a 100644 --- a/src/devices/machine/cxd1095.h +++ b/src/devices/machine/cxd1095.h @@ -103,6 +103,7 @@ public: protected: // device-level overrides virtual void device_start() override; + virtual void device_reset() override; private: // input/output callbacks |