mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
ss50/mpc, adm31: PIA-related updates (nw)
This commit is contained in:
parent
2e0f4af6ee
commit
740763c326
@ -136,7 +136,7 @@ void ss50_mpc_device::device_start()
|
||||
|
||||
WRITE_LINE_MEMBER(ss50_mpc_device::serial_input_w)
|
||||
{
|
||||
m_pia->set_a_input(state << 7);
|
||||
m_pia->write_porta_line(7, state);
|
||||
m_loopback->in_w<0>(state);
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ void adm31_state::kbd_scan_w(u8 data)
|
||||
|
||||
u8 adm31_state::kbd_scan_r()
|
||||
{
|
||||
return m_kbd_scan | (BIT(m_keys[(m_kbd_scan & 0x78) >> 3].read_safe(0xff), m_kbd_scan & 0x07) ? 0x00 : 0x80);
|
||||
return BIT(m_keys[(m_kbd_scan & 0x78) >> 3].read_safe(0xff), m_kbd_scan & 0x07) ? 0x7f : 0xff;
|
||||
}
|
||||
|
||||
void adm31_state::kbd_status_w(u8 data)
|
||||
|
Loading…
Reference in New Issue
Block a user