From efc47e3f24bdd5d12e611222f9978d40211a6cc3 Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Sun, 21 Sep 2014 03:27:46 +0000 Subject: [PATCH] (MESS) concept: fix keyboard status to not return junk data, fixes bootup without -debug. [R. Belmont] --- src/mess/machine/concept.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mess/machine/concept.c b/src/mess/machine/concept.c index 9c30132e0f8..e77c5561200 100644 --- a/src/mess/machine/concept.c +++ b/src/mess/machine/concept.c @@ -112,6 +112,7 @@ void concept_state::concept_set_interrupt(int level, int state) 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_KeyQueueLen++; } @@ -213,7 +214,7 @@ WRITE8_MEMBER(concept_state::via_out_b) */ 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: /* always tell transmit is empty */ - reply = m_KeyQueueLen ? 0x98 : 0x10; - break; + return m_KeyQueueLen ? 0x98 : 0x10; } break;