diff options
author | Robbbert <Robbbert@users.noreply.github.com> | 2019-09-06 13:15:45 +1000 |
---|---|---|
committer | Robbbert <Robbbert@users.noreply.github.com> | 2019-09-06 13:15:45 +1000 |
commit | 1076f566a43f55b3f6a026e03f06685cf433483a (patch) | |
tree | ddd56bedc489a87e99462c39b3cf635093e09bec /src/emu | |
parent | fd882987e0b3136dbf1b8ffa116ce61a7158ce71 (diff) |
i8251: Preliminary addition of synchronous support.
- Can transmit
- Can receive with one sync byte
- bisync still being worked on
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/diserial.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/emu/diserial.cpp b/src/emu/diserial.cpp index 0b83fe53962..0852a1bc666 100644 --- a/src/emu/diserial.cpp +++ b/src/emu/diserial.cpp @@ -415,10 +415,9 @@ void device_serial_interface::transmit_register_setup(u8 data_byte) } /* stop bit(s) + 1 extra bit as delay between bytes, needed to get 1 stop bit to work. */ - for (i=0; i<=m_df_stop_bit_count; i++) - { - transmit_register_add_bit(1); - } + if (m_df_stop_bit_count) // no stop bits for synchronous + for (i=0; i<=m_df_stop_bit_count; i++) // ToDo - see if the hack on this line is still needed (was added 2016-04-10) + transmit_register_add_bit(1); } |