diff options
author | 2018-09-24 17:54:42 -0400 | |
---|---|---|
committer | 2018-09-24 17:54:42 -0400 | |
commit | 1bd3f34fa18569ba569be92e98747beff3792ee6 (patch) | |
tree | 32cdb04f0f189a482521ef84963b3ff93e20d54a | |
parent | f65e1c2a32067b22a1a4e12347ce22b1980589a6 (diff) |
i8243: Save state (nw)
-rw-r--r-- | src/devices/machine/i8243.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/devices/machine/i8243.cpp b/src/devices/machine/i8243.cpp index c2b60c4b8c7..371073f217e 100644 --- a/src/devices/machine/i8243.cpp +++ b/src/devices/machine/i8243.cpp @@ -25,6 +25,7 @@ DEFINE_DEVICE_TYPE(I8243, i8243_device, "i8243", "Intel 8243 I/O Expander") i8243_device::i8243_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, I8243, tag, owner, clock) + , m_p{0, 0, 0, 0} , m_p2out(0x0f), m_p2(0x0f), m_opcode(0), m_prog(1), m_cs(0) , m_readhandler{{*this}, {*this}, {*this}, {*this}} , m_writehandler{{*this}, {*this}, {*this}, {*this}} @@ -41,6 +42,13 @@ void i8243_device::device_start() cb.resolve(); for (auto &cb : m_writehandler) cb.resolve(); + + save_item(NAME(m_p)); + save_item(NAME(m_p2out)); + save_item(NAME(m_p2)); + save_item(NAME(m_opcode)); + save_item(NAME(m_prog)); + save_item(NAME(m_cs)); } |