summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/rtc9701.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2016-04-01 19:25:57 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2016-04-01 19:25:57 +0200
commitbfbcdac2a61eed3f26edcbabe07947b5d19e7ec7 (patch)
tree1a6da805d69656be0acc2b367e5da84177af866c /src/devices/machine/rtc9701.cpp
parentdaadbc5fd5e9cb702a4bce1da28025487c0f94c8 (diff)
cv1k.cpp: some work towards save state support. Should work but it would be better not to save the bitmap, so for the time being it is disabled by default (nw)
Diffstat (limited to 'src/devices/machine/rtc9701.cpp')
-rw-r--r--src/devices/machine/rtc9701.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/devices/machine/rtc9701.cpp b/src/devices/machine/rtc9701.cpp
index fc72c76c900..86f5378d2b4 100644
--- a/src/devices/machine/rtc9701.cpp
+++ b/src/devices/machine/rtc9701.cpp
@@ -15,6 +15,8 @@
#include "machine/rtc9701.h"
+ALLOW_SAVE_TYPE(rtc9701_state_t);
+
//**************************************************************************
// GLOBAL VARIABLES
@@ -104,6 +106,25 @@ void rtc9701_device::device_start()
rtc_state = RTC9701_CMD_WAIT;
cmd_stream_pos = 0;
current_cmd = 0;
+
+ save_item(NAME(m_latch));
+ save_item(NAME(m_reset_line));
+ save_item(NAME(m_clock_line));
+ save_item(NAME(rtc_state));
+ save_item(NAME(cmd_stream_pos));
+ save_item(NAME(current_cmd));
+ save_item(NAME(rtc9701_address_pos));
+ save_item(NAME(rtc9701_current_address));
+ save_item(NAME(rtc9701_current_data));
+ save_item(NAME(rtc9701_data_pos));
+ save_item(NAME(rtc9701_data));
+ save_item(NAME(m_rtc.sec));
+ save_item(NAME(m_rtc.min));
+ save_item(NAME(m_rtc.hour));
+ save_item(NAME(m_rtc.day));
+ save_item(NAME(m_rtc.wday));
+ save_item(NAME(m_rtc.month));
+ save_item(NAME(m_rtc.year));
}