summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/diserial.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/diserial.cpp')
-rw-r--r--src/emu/diserial.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/diserial.cpp b/src/emu/diserial.cpp
index 66778e5458c..2704defab0c 100644
--- a/src/emu/diserial.cpp
+++ b/src/emu/diserial.cpp
@@ -399,10 +399,10 @@ void device_serial_interface::transmit_register_setup(u8 data_byte)
/* get parity */
/* if parity = 0, data has even parity - i.e. there is an even number of one bits in the data */
/* if parity = 1, data has odd parity - i.e. there is an odd number of one bits in the data */
- parity = serial_helper_get_parity(data_byte);
+ parity = serial_helper_get_parity(data_byte) ^ 1;
break;
case PARITY_EVEN:
- parity = serial_helper_get_parity(data_byte) ^ 1;
+ parity = serial_helper_get_parity(data_byte);
break;
case PARITY_MARK:
parity = 1;