diff options
author | Olivier Galibert <galibert@pobox.com> | 2021-02-04 22:57:06 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2021-02-04 22:57:21 +0100 |
commit | 15d09a130db872e49d3fb5bac82b7846a0414639 (patch) | |
tree | 8f19461e8f6f1d0c9edce97be5a59e35fd5d7e7f | |
parent | 06518dcc9f959b669de3ed5a13bf070411a2856d (diff) |
swim1: propagate the iwm wpt correction
-rw-r--r-- | src/devices/machine/swim1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/machine/swim1.cpp b/src/devices/machine/swim1.cpp index 5b46bf1e8ab..bdbd77fc6be 100644 --- a/src/devices/machine/swim1.cpp +++ b/src/devices/machine/swim1.cpp @@ -520,7 +520,7 @@ u8 swim1_device::iwm_control(int offset, u8 data) switch(m_iwm_control & 0xc0) { case 0x00: return m_iwm_active ? m_iwm_data : 0xff; - case 0x40: return (m_iwm_status & 0x7f) | (!m_floppy || m_floppy->wpt_r() ? 0x80 : 0); + case 0x40: return (m_iwm_status & 0x7f) | (m_floppy && m_floppy->wpt_r() ? 0x80 : 0); case 0x80: return m_iwm_whd; case 0xc0: if(offset & 1) { if(m_iwm_active) iwm_data_w(data); else iwm_mode_w(data); } return 0xff; } |