Previous 199869 Revisions Next

r22876 Friday 17th May, 2013 at 20:22:32 UTC by Curt Coder
(MESS) softbox: Fixed terminal. (nw)
[src/emu/machine]i8251.c
[src/mess/drivers]softbox.c

trunk/src/emu/machine/i8251.c
r22875r22876
390390
391391            LOG(("Character length: %d\n", (((data>>2) & 0x03)+5)));
392392
393            int parity = SERIAL_PARITY_NONE;
394
393395            if (data & (1<<4))
394396            {
395397               LOG(("enable parity checking\n"));
398
399               if (data & (1<<5))
400               {
401                  LOG(("even parity\n"));
402                  parity = SERIAL_PARITY_EVEN;
403               }
404               else
405               {
406                  LOG(("odd parity\n"));
407                  parity = SERIAL_PARITY_ODD;
408               }
396409            }
397410            else
398411            {
399412               LOG(("parity check disabled\n"));
400413            }
401414
402            if (data & (1<<5))
403415            {
404               LOG(("even parity\n"));
405            }
406            else
407            {
408               LOG(("odd parity\n"));
409            }
410
411            {
412416               UINT8 stop_bit_length;
413417
414418               stop_bit_length = (data>>6) & 0x03;
r22875r22876
446450            }
447451
448452            int word_length = ((data>>2) & 0x03)+5;
449            int parity = SERIAL_PARITY_NONE;
450453            int stop_bit_count = 1;
451454            switch ((data>>6) & 0x03)
452455            {
r22875r22876
667670
668671   /* writing clears */
669672   m_status &=~I8251_STATUS_TX_READY;
673   m_status &=~I8251_STATUS_TX_EMPTY;
670674
671675   /* if transmitter is active, then tx empty will be signalled */
672676
673677   update_tx_ready();
678   update_tx_empty();
674679}
675680
676681
trunk/src/mess/drivers/softbox.c
r22875r22876
247247WRITE_LINE_MEMBER( softbox_state::fr_w )
248248{
249249   m_rx_clock++;
250   logerror("rx %u\n", m_rx_clock);
250
251251   if (m_rx_clock & 0x10)
252252   {
253253      m_rx_clock = 0;
r22875r22876
258258WRITE_LINE_MEMBER( softbox_state::ft_w )
259259{
260260   m_tx_clock++;
261   logerror("tx %u\n", m_tx_clock);
261
262262   if (m_tx_clock & 0x10)
263263   {
264264      m_tx_clock = 0;
r22875r22876
285285   DEVICE_INPUT_DEFAULTS( "TERM_FRAME", 0x30, 0x10 ) // 7E1
286286DEVICE_INPUT_DEFAULTS_END
287287
288WRITE8_MEMBER( softbox_state::dummy_w )
289{
290   // handled in usart_intf
291}
292
293288static const serial_terminal_interface terminal_intf =
294289{
295   DEVCB_DRIVER_MEMBER(softbox_state, dummy_w)
290   DEVCB_NULL
296291};
297292
298293

Previous 199869 Revisions Next


© 1997-2024 The MAME Team