mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
machine/mc68681.cpp: unambiguous xr68c681 control blocks
This commit is contained in:
parent
b4d6fa485d
commit
ea48cc6cd4
1 changed files with 4 additions and 2 deletions
|
@ -724,6 +724,7 @@ void sc28c94_device::write(offs_t offset, uint8_t data)
|
|||
void xr68c681_device::write(offs_t offset, uint8_t data)
|
||||
{
|
||||
if (offset == 0x02) /* CRA */
|
||||
{
|
||||
switch (data >> 4)
|
||||
{
|
||||
case 0x08: /* set RX extend bit */
|
||||
|
@ -757,8 +758,9 @@ void xr68c681_device::write(offs_t offset, uint8_t data)
|
|||
data &= 0x0f;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
else if (offset == 0x0a) /* CRB */
|
||||
{
|
||||
switch (data >> 4)
|
||||
{
|
||||
case 0x08: /* set RX extend bit */
|
||||
|
@ -792,6 +794,7 @@ void xr68c681_device::write(offs_t offset, uint8_t data)
|
|||
data &= 0x0f;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
mc68681_device::write(offset, data); /* pass on 68681 command */
|
||||
}
|
||||
|
@ -1097,7 +1100,6 @@ int xr68c681_device::calc_baud(int ch, bool rx, uint8_t data)
|
|||
{
|
||||
int baud_rate;
|
||||
|
||||
|
||||
baud_rate = baud_rate_ACR_0[data & 0x0f];
|
||||
|
||||
if (ch == 0)
|
||||
|
|
Loading…
Reference in a new issue