From 1bd3f34fa18569ba569be92e98747beff3792ee6 Mon Sep 17 00:00:00 2001 From: AJR Date: Mon, 24 Sep 2018 17:54:42 -0400 Subject: i8243: Save state (nw) --- src/devices/machine/i8243.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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)); } -- cgit v1.2.3