Skip to content

Commit 999a9a2

Browse files
committed
eepromser: one variable was missing from savestates
1 parent 89e3885 commit 999a9a2

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

src/devices/machine/eepromser.cpp

+19-20
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// copyright-holders:Aaron Giles
33
/***************************************************************************
44
5-
eepromser.c
6-
75
Serial EEPROM devices.
86
97
****************************************************************************
@@ -155,24 +153,24 @@ ALLOW_SAVE_TYPE(eeprom_serial_base_device::eeprom_state);
155153
// eeprom_serial_base_device - constructor
156154
//-------------------------------------------------
157155

158-
eeprom_serial_base_device::eeprom_serial_base_device(const machine_config &mconfig, device_type devtype, const char *tag, device_t *owner, eeprom_serial_streaming enable_streaming)
159-
: eeprom_base_device(mconfig, devtype, tag, owner),
160-
m_command_address_bits(0),
161-
m_streaming_enabled(bool(enable_streaming)),
162-
m_output_on_falling_clock_enabled(false),
163-
m_do_cb(*this),
164-
m_state(STATE_IN_RESET),
165-
m_cs_state(CLEAR_LINE),
166-
m_last_cs_rising_edge_time(attotime::zero),
167-
m_oe_state(CLEAR_LINE),
168-
m_clk_state(CLEAR_LINE),
169-
m_di_state(CLEAR_LINE),
170-
m_locked(true),
171-
m_bits_accum(0),
172-
m_command_address_accum(0),
173-
m_command(COMMAND_INVALID),
174-
m_address(0),
175-
m_shift_register(0)
156+
eeprom_serial_base_device::eeprom_serial_base_device(const machine_config &mconfig, device_type devtype, const char *tag, device_t *owner, eeprom_serial_streaming enable_streaming) :
157+
eeprom_base_device(mconfig, devtype, tag, owner),
158+
m_command_address_bits(0),
159+
m_streaming_enabled(bool(enable_streaming)),
160+
m_output_on_falling_clock_enabled(false),
161+
m_do_cb(*this),
162+
m_state(STATE_IN_RESET),
163+
m_cs_state(CLEAR_LINE),
164+
m_last_cs_rising_edge_time(attotime::zero),
165+
m_oe_state(CLEAR_LINE),
166+
m_clk_state(CLEAR_LINE),
167+
m_di_state(CLEAR_LINE),
168+
m_locked(true),
169+
m_bits_accum(0),
170+
m_command_address_accum(0),
171+
m_command(COMMAND_INVALID),
172+
m_address(0),
173+
m_shift_register(0)
176174
{
177175
}
178176

@@ -193,6 +191,7 @@ void eeprom_serial_base_device::device_start()
193191
// save the current state
194192
save_item(NAME(m_state));
195193
save_item(NAME(m_cs_state));
194+
save_item(NAME(m_last_cs_rising_edge_time));
196195
save_item(NAME(m_oe_state));
197196
save_item(NAME(m_clk_state));
198197
save_item(NAME(m_di_state));

src/devices/machine/eepromser.h

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// copyright-holders:Aaron Giles
33
/***************************************************************************
44
5-
eepromser.h
6-
75
Serial EEPROM devices.
86
97
***************************************************************************/

0 commit comments

Comments
 (0)