eispc_kb.cpp: experiment with removing direct calls to resume/suspend

This commit is contained in:
Joakim Larsson Edstrom 2019-09-29 22:05:52 +02:00
parent 3245b9d3ba
commit 5dc9cca08d
2 changed files with 5 additions and 10 deletions

View File

@ -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)

View File

@ -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;
}