From 5c265dc43fd04365139f50a647d225984aadc6bc Mon Sep 17 00:00:00 2001 From: Patrick Mackinlay Date: Fri, 17 May 2019 18:39:40 +0700 Subject: diserial: correct parity output (nw) --- src/emu/diserial.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3