mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
(MESS) softbox: Fixed terminal. (nw)
This commit is contained in:
parent
877d09b687
commit
cbcdd9cdbc
@ -390,24 +390,28 @@ WRITE8_MEMBER(i8251_device::control_w)
|
||||
|
||||
LOG(("Character length: %d\n", (((data>>2) & 0x03)+5)));
|
||||
|
||||
int parity = SERIAL_PARITY_NONE;
|
||||
|
||||
if (data & (1<<4))
|
||||
{
|
||||
LOG(("enable parity checking\n"));
|
||||
|
||||
if (data & (1<<5))
|
||||
{
|
||||
LOG(("even parity\n"));
|
||||
parity = SERIAL_PARITY_EVEN;
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(("odd parity\n"));
|
||||
parity = SERIAL_PARITY_ODD;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(("parity check disabled\n"));
|
||||
}
|
||||
|
||||
if (data & (1<<5))
|
||||
{
|
||||
LOG(("even parity\n"));
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(("odd parity\n"));
|
||||
}
|
||||
|
||||
{
|
||||
UINT8 stop_bit_length;
|
||||
|
||||
@ -446,7 +450,6 @@ WRITE8_MEMBER(i8251_device::control_w)
|
||||
}
|
||||
|
||||
int word_length = ((data>>2) & 0x03)+5;
|
||||
int parity = SERIAL_PARITY_NONE;
|
||||
int stop_bit_count = 1;
|
||||
switch ((data>>6) & 0x03)
|
||||
{
|
||||
@ -667,10 +670,12 @@ WRITE8_MEMBER(i8251_device::data_w)
|
||||
|
||||
/* writing clears */
|
||||
m_status &=~I8251_STATUS_TX_READY;
|
||||
m_status &=~I8251_STATUS_TX_EMPTY;
|
||||
|
||||
/* if transmitter is active, then tx empty will be signalled */
|
||||
|
||||
update_tx_ready();
|
||||
update_tx_empty();
|
||||
}
|
||||
|
||||
|
||||
|
@ -247,7 +247,7 @@ static I8255A_INTERFACE( ppi1_intf )
|
||||
WRITE_LINE_MEMBER( softbox_state::fr_w )
|
||||
{
|
||||
m_rx_clock++;
|
||||
logerror("rx %u\n", m_rx_clock);
|
||||
|
||||
if (m_rx_clock & 0x10)
|
||||
{
|
||||
m_rx_clock = 0;
|
||||
@ -258,7 +258,7 @@ WRITE_LINE_MEMBER( softbox_state::fr_w )
|
||||
WRITE_LINE_MEMBER( softbox_state::ft_w )
|
||||
{
|
||||
m_tx_clock++;
|
||||
logerror("tx %u\n", m_tx_clock);
|
||||
|
||||
if (m_tx_clock & 0x10)
|
||||
{
|
||||
m_tx_clock = 0;
|
||||
@ -285,14 +285,9 @@ static DEVICE_INPUT_DEFAULTS_START( terminal )
|
||||
DEVICE_INPUT_DEFAULTS( "TERM_FRAME", 0x30, 0x10 ) // 7E1
|
||||
DEVICE_INPUT_DEFAULTS_END
|
||||
|
||||
WRITE8_MEMBER( softbox_state::dummy_w )
|
||||
{
|
||||
// handled in usart_intf
|
||||
}
|
||||
|
||||
static const serial_terminal_interface terminal_intf =
|
||||
{
|
||||
DEVCB_DRIVER_MEMBER(softbox_state, dummy_w)
|
||||
DEVCB_NULL
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user