summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorGravatarGravatar smf- <smf-@users.noreply.github.com>2014-01-08 22:37:42 +0000
committerGravatarGravatar smf- <smf-@users.noreply.github.com>2014-01-08 22:37:42 +0000
commitfa006a2c7c00de3d1c913516c5e57c77da6b0b02 (patch)
treef4a6380230b76cd2203bb1cc492af0b2657c1ee6 /src
parent26754cf189c557eac41a91e49001fbea260943a4 (diff)
fixed Z80DART parity selection [smf]
Diffstat (limited to 'src')
-rw-r--r--src/emu/machine/z80dart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/machine/z80dart.c b/src/emu/machine/z80dart.c
index f6b30cba806..5e31f63fefe 100644
--- a/src/emu/machine/z80dart.c
+++ b/src/emu/machine/z80dart.c
@@ -1319,9 +1319,9 @@ void z80dart_channel::update_serial()
int stop_bit_count = get_stop_bits();
int parity_code = PARITY_NONE;
- if (m_wr[1] & WR4_PARITY_ENABLE)
+ if (m_wr[4] & WR4_PARITY_ENABLE)
{
- if (m_wr[1] & WR4_PARITY_EVEN)
+ if (m_wr[4] & WR4_PARITY_EVEN)
parity_code = PARITY_EVEN;
else
parity_code = PARITY_ODD;