mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
eispc_kb.cpp: experiment with removing direct calls to resume/suspend
This commit is contained in:
parent
3245b9d3ba
commit
5dc9cca08d
@ -1060,13 +1060,7 @@ MC6845_UPDATE_ROW( isa8_ec1840_0002_device::crtc_update_row )
|
||||
Trivia: https://www.pinterest.se/pin/203084264425177097/
|
||||
*/
|
||||
|
||||
#define EPC_MDA_SCREEN "epc_mda_screen"
|
||||
|
||||
#if 0
|
||||
static GFXDECODE_START( pcepc )
|
||||
GFXDECODE_ENTRY( "gfx1", 0x0000, pc_16_charlayout, 1, 1 )
|
||||
GFXDECODE_END
|
||||
#endif
|
||||
#define EPC_MDA_SCREEN "epc_mda_screen" // TODO: use a device finder reference instead
|
||||
|
||||
ROM_START( epc )
|
||||
ROM_REGION(0x2000,"chargen", 0)
|
||||
|
@ -297,11 +297,14 @@ WRITE_LINE_MEMBER(eispc_keyboard_device::rst_line_w)
|
||||
if (state == CLEAR_LINE)
|
||||
{
|
||||
m_mcu->resume(SUSPEND_REASON_RESET);
|
||||
//m_mcu->set_input_line(INPUT_LINE_RESET, CLEAR_LINE);
|
||||
LOGRST("KBD: Keyboard mcu reset line is cleared\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
m_mcu->suspend(SUSPEND_REASON_RESET, 0);
|
||||
// set_input_line suspends with a true argument which causes "Keyboard error"
|
||||
m_mcu->suspend(SUSPEND_REASON_RESET, false);
|
||||
//m_mcu->set_input_line(INPUT_LINE_RESET, ASSERT_LINE);
|
||||
LOGRST("KBD: Keyboard mcu reset line is asserted\n");
|
||||
}
|
||||
|
||||
@ -313,8 +316,6 @@ WRITE_LINE_MEMBER(eispc_keyboard_device::rst_line_w)
|
||||
|
||||
void eispc_keyboard_device::device_reset()
|
||||
{
|
||||
LOGRST("KBD: Keyboard is in reset until host computer explicitly releases the reset line\n");
|
||||
m_mcu->suspend(SUSPEND_REASON_RESET, 0);
|
||||
for (auto & elem : m_keys) elem = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user