From 48e3eb4174c77c667591e06c8983058ce2642a9b Mon Sep 17 00:00:00 2001 From: Robbbert Date: Wed, 11 Sep 2019 19:52:12 +1000 Subject: [PATCH] (nw) i8251 : updated list of save-state variables --- src/devices/machine/i8251.cpp | 10 ++++++++++ src/devices/machine/i8251.h | 5 +---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/devices/machine/i8251.cpp b/src/devices/machine/i8251.cpp index 328c98848b6..b78ee829cb9 100644 --- a/src/devices/machine/i8251.cpp +++ b/src/devices/machine/i8251.cpp @@ -92,6 +92,11 @@ void i8251_device::device_start() save_item(NAME(m_status)); save_item(NAME(m_command)); save_item(NAME(m_mode_byte)); + save_item(NAME(m_delayed_tx_en)); + save_item(NAME(m_sync1)); + save_item(NAME(m_sync2)); + save_item(NAME(m_sync8)); + save_item(NAME(m_sync16)); save_item(NAME(m_cts)); save_item(NAME(m_dsr)); save_item(NAME(m_rxd)); @@ -102,6 +107,11 @@ void i8251_device::device_start() save_item(NAME(m_br_factor)); save_item(NAME(m_rx_data)); save_item(NAME(m_tx_data)); + save_item(NAME(m_syndet_pin)); + save_item(NAME(m_hunt_on)); + save_item(NAME(m_ext_syn_set)); + save_item(NAME(m_rxd_bits)); + save_item(NAME(m_data_bits_count)); } diff --git a/src/devices/machine/i8251.h b/src/devices/machine/i8251.h index 15d1543c03d..44f912eaa60 100644 --- a/src/devices/machine/i8251.h +++ b/src/devices/machine/i8251.h @@ -109,12 +109,9 @@ private: /* flags controlling how i8251_control_w operates */ uint8_t m_flags; - /* offset into sync_bytes used during sync byte transfer */ - //uint8_t m_sync_byte_offset; - /* number of sync bytes written so far */ + /* number of sync bytes programmed for sync mode (1 or 2) ; 0 = async mode */ uint8_t m_sync_byte_count; /* the sync bytes written */ - //uint8_t m_sync_bytes[2]; u8 m_sync1; u16 m_sync2; /* status of i8251 */