mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00
(MESS) concept: fix keyboard status to not return junk data, fixes bootup without -debug. [R. Belmont]
This commit is contained in:
parent
57f46f7994
commit
efc47e3f24
@ -112,6 +112,7 @@ void concept_state::concept_set_interrupt(int level, int state)
|
|||||||
|
|
||||||
inline void concept_state::post_in_KeyQueue(int keycode)
|
inline void concept_state::post_in_KeyQueue(int keycode)
|
||||||
{
|
{
|
||||||
|
// printf("Post %x (%d) in keyqueue\n", keycode, keycode);
|
||||||
m_KeyQueue[(m_KeyQueueHead+m_KeyQueueLen) % KeyQueueSize] = keycode;
|
m_KeyQueue[(m_KeyQueueHead+m_KeyQueueLen) % KeyQueueSize] = keycode;
|
||||||
m_KeyQueueLen++;
|
m_KeyQueueLen++;
|
||||||
}
|
}
|
||||||
@ -213,7 +214,7 @@ WRITE8_MEMBER(concept_state::via_out_b)
|
|||||||
*/
|
*/
|
||||||
WRITE_LINE_MEMBER(concept_state::via_out_cb2)
|
WRITE_LINE_MEMBER(concept_state::via_out_cb2)
|
||||||
{
|
{
|
||||||
LOG(("via_out_cb2: Sound control written: data=0x%2.2x\n", state));
|
// LOG(("via_out_cb2: Sound control written: data=0x%2.2x\n", state));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -294,8 +295,7 @@ READ16_MEMBER(concept_state::concept_io_r)
|
|||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
/* always tell transmit is empty */
|
/* always tell transmit is empty */
|
||||||
reply = m_KeyQueueLen ? 0x98 : 0x10;
|
return m_KeyQueueLen ? 0x98 : 0x10;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user