mirror of
https://github.com/holub/mame
synced 2025-04-21 16:01:56 +03:00
am79c30: Correct a few debug logging statements (nw)
eurit30: Add two more buttons (nw)
This commit is contained in:
parent
a4fb8f4376
commit
85f39bfeab
@ -386,7 +386,7 @@ void am79c30a_device::set_lmr1(u8 data)
|
||||
if (BIT(data, 6) != BIT(m_lmr1, 6))
|
||||
LOG("%s: LIU receiver/transmitter %sabled\n", machine().describe_context(), BIT(data, 6) ? "en" : "dis");
|
||||
if (BIT(data, 7))
|
||||
logerror("%s: LMR1 reserved bit 7 set\n");
|
||||
logerror("%s: LMR1 reserved bit 7 set\n", machine().describe_context());
|
||||
|
||||
m_lmr1 = data;
|
||||
}
|
||||
@ -414,7 +414,7 @@ void am79c30a_device::set_lmr2(u8 data)
|
||||
if (BIT(data, 6) != BIT(m_lmr2, 6))
|
||||
LOG("%s: F7 change of state interrupt %sabled\n", machine().describe_context(), BIT(data, 6) ? "en" : "dis");
|
||||
if (BIT(data, 7))
|
||||
logerror("%s: LMR2 reserved bit 7 set\n");
|
||||
logerror("%s: LMR2 reserved bit 7 set\n", machine().describe_context());
|
||||
|
||||
m_lmr2 = data;
|
||||
}
|
||||
@ -492,9 +492,9 @@ void am79c30a_device::set_mcr(unsigned n, u8 data)
|
||||
if (data == 0)
|
||||
LOG("%s: No connect (MCR%d)\n", machine().describe_context(), n + 1);
|
||||
else if ((data & 0xf0) >> 4 == (data & 0x0f))
|
||||
LOG("%s: %s loopback (MCR%d)\n", machine().describe_context(), data & 0x0f, n + 1);
|
||||
LOG("%s: %s loopback (MCR%d)\n", machine().describe_context(), s_mcr_channels[data & 0x0f], n + 1);
|
||||
else
|
||||
LOG("%s: %s <-> %s (MCR%d)\n", machine().describe_context(), (data & 0xf0) >> 4, data & 0x0f, n + 1);
|
||||
LOG("%s: %s <-> %s (MCR%d)\n", machine().describe_context(), s_mcr_channels[(data & 0xf0) >> 4], s_mcr_channels[data & 0x0f], n + 1);
|
||||
}
|
||||
|
||||
m_mcr[n] = data;
|
||||
@ -753,7 +753,9 @@ void am79c30a_device::set_stra(u8 data)
|
||||
else
|
||||
{
|
||||
u8 a = 15 - ((data & 0xf0) >> 4);
|
||||
LOG("%s: Secondary tone ringer %.2f V peak-to-peak, %d dB relative\n", BIT(a, 0) ? 3.53553390593274 : 5.0 / (1 << (a / 2)), a * -3);
|
||||
LOG("%s: Secondary tone ringer %.2f V peak-to-peak, %d dB relative\n", machine().describe_context(),
|
||||
BIT(a, 0) ? 3.53553390593274 : 5.0 / (1 << (a / 2)),
|
||||
a * -3);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -120,8 +120,8 @@ static INPUT_PORTS_START(eurit30)
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("2 DEF") PORT_CODE(KEYCODE_2)
|
||||
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("1 ABC") PORT_CODE(KEYCODE_1)
|
||||
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("Unknown Key D5")
|
||||
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("Unknown Key D6")
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("Unknown Key D7")
|
||||
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME(UTF8_RIGHT) PORT_CODE(KEYCODE_RIGHT)
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME(UTF8_LEFT) PORT_CODE(KEYCODE_LEFT)
|
||||
|
||||
PORT_START("KEYE")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYPAD) PORT_NAME("Unknown Key E0")
|
||||
|
Loading…
Reference in New Issue
Block a user