summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2022-10-17 06:35:39 +0200
committer Olivier Galibert <galibert@pobox.com>2022-10-17 06:35:51 +0200
commitb5a7c3025a14b4152e00b80d56f795ba1c924046 (patch)
treed9e24e439c9046cf6dc269973e4ca1d7f01a0db6
parent1c5f09cdd3eed8804cd96d9ae40868d0604c2ed2 (diff)
fd1771: Add missing inversion
-rw-r--r--src/devices/machine/wd_fdc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/wd_fdc.cpp b/src/devices/machine/wd_fdc.cpp
index 188ac2f9a35..1310dc2a792 100644
--- a/src/devices/machine/wd_fdc.cpp
+++ b/src/devices/machine/wd_fdc.cpp
@@ -1926,9 +1926,9 @@ void wd_fdc_device_base::live_run(attotime limit)
0xbf84;
if(extended_ddam) {
- if(cur_live.data_reg & 1)
+ if(!(cur_live.data_reg & 1))
status |= S_DDM;
- if(cur_live.data_reg & 2)
+ if(!(cur_live.data_reg & 2))
status |= S_DDM << 1;
} else if((cur_live.data_reg & 0xfe) == 0xf8)
status |= S_DDM;