diff options
author | 2014-01-10 16:24:51 +0000 | |
---|---|---|
committer | 2014-01-10 16:24:51 +0000 | |
commit | 45f17e9c0f92f3a3b229320b99c1283b8efccd70 (patch) | |
tree | 3ffe123e7f82faddfcffc7798d8117f841f6ca13 /src/emu/machine/mos6551.c | |
parent | 68125fe084d0987e30152aadfda38b0e06c98bf3 (diff) |
Call set_data_frame() before stc_rcv_rate() in a few more places, as since r26274 there is random behaviour if you don't [smf]
Diffstat (limited to 'src/emu/machine/mos6551.c')
-rw-r--r-- | src/emu/machine/mos6551.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/machine/mos6551.c b/src/emu/machine/mos6551.c index 7c89f9e6f7c..3818f19071e 100644 --- a/src/emu/machine/mos6551.c +++ b/src/emu/machine/mos6551.c @@ -202,6 +202,8 @@ void mos6551_device::update_serial() { int brg = m_ctrl & CTRL_BRG_MASK; + set_data_frame(num_data_bits, stop_bit_count, parity_code, false); + if (brg == CTRL_BRG_16X_EXTCLK) { set_rcv_rate(m_ext_rxc / 16); @@ -233,8 +235,6 @@ void mos6551_device::update_serial() case CTRL_WL_6: num_data_bits = 6; break; case CTRL_WL_5: num_data_bits = 5; break; } - - set_data_frame(num_data_bits, stop_bit_count, parity_code, false); } if (m_cmd & CMD_DTR) |