53c7xx: Preliminary save state support [A. Viloria]

nw part: the original patch as submitted by the external contributor  changed m_scripts_op from a function pointer to a pure index so it could be saved, but that was more intrusive than I was comfortable with.  Phil, you can handle that part however you'd like.
This commit is contained in:
R. Belmont 2013-03-01 02:47:17 +00:00
parent 66ac9b6224
commit 1446309913

View File

@ -80,6 +80,43 @@ void ncr53c7xx_device::device_start()
// The SCRIPTS processor runs at ~2 MIPS so approximate this
set_unscaled_clock(2000000);
// savestate support
save_item(NAME(m_scntl));
save_item(NAME(m_sdid));
save_item(NAME(m_sien));
save_item(NAME(m_scid));
save_item(NAME(m_sxfer));
save_item(NAME(m_sodl));
save_item(NAME(m_socl));
save_item(NAME(m_sfbr));
save_item(NAME(m_sidl));
save_item(NAME(m_sbdl));
save_item(NAME(m_sbcl));
save_item(NAME(m_dstat));
save_item(NAME(m_sstat));
save_item(NAME(m_ctest));
save_item(NAME(m_temp));
save_item(NAME(m_dfifo));
save_item(NAME(m_istat));
save_item(NAME(m_dbc));
save_item(NAME(m_dcmd));
save_item(NAME(m_dnad));
save_item(NAME(m_dsp));
save_item(NAME(m_dsps));
save_item(NAME(m_dmode));
save_item(NAME(m_dien));
save_item(NAME(m_dwt));
save_item(NAME(m_dcntl));
// other state
save_item(NAME(m_scsi_state));
save_item(NAME(m_connected));
save_item(NAME(m_finished));
save_item(NAME(m_last_data));
save_item(NAME(m_xfr_phase));
save_item(NAME(m_scripts_state));
}