diff options
Diffstat (limited to 'src/devices/machine/wd1010.cpp')
-rw-r--r-- | src/devices/machine/wd1010.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/devices/machine/wd1010.cpp b/src/devices/machine/wd1010.cpp index a330d6c7671..4c77c88b215 100644 --- a/src/devices/machine/wd1010.cpp +++ b/src/devices/machine/wd1010.cpp @@ -112,6 +112,7 @@ void wd1010_device::device_start() save_item(NAME(m_cylinder)); save_item(NAME(m_sdh)); save_item(NAME(m_status)); + save_item(NAME(m_head)); } //------------------------------------------------- @@ -332,6 +333,14 @@ void wd1010_device::brdy_w(int state) m_brdy = state; } +void wd1010_device::sc_w(int state) +{ + if (state) + m_status |= STATUS_SC; + else + m_status &= ~STATUS_SC; +} + int wd1010_device::sc_r() { return m_status & STATUS_SC ? 1 : 0; |