src/emu/machine/68681.c
| r5664 | r5665 | |
| 377 | 377 | duart68681_state *duart68681 = get_safe_token(device); |
| 378 | 378 | int ch = param & 1; |
| 379 | 379 | |
| 380 | | if (duart68681->duart_config->tx_callback) |
| 380 | // send the byte unless we're in loopback mode; |
| 381 | // in loopback mode do NOT 'actually' send the byte: the TXn pin is held high when loopback mode is on. |
| 382 | if ((duart68681->duart_config->tx_callback) && ((duart68681->channel[ch].MR2&0xC0) != 0x80)) |
| 381 | 383 | duart68681->duart_config->tx_callback(device, ch, duart68681->channel[ch].tx_data); |
| 382 | 384 | |
| 383 | 385 | duart68681->channel[ch].tx_ready = 1; |