diff --git a/abstract-machine/am/src/platform/nemu/ioe/input.c b/abstract-machine/am/src/platform/nemu/ioe/input.c index 9cecca2..bc6a36f 100644 --- a/abstract-machine/am/src/platform/nemu/ioe/input.c +++ b/abstract-machine/am/src/platform/nemu/ioe/input.c @@ -4,6 +4,6 @@ #define KEYDOWN_MASK 0x8000 void __am_input_keybrd(AM_INPUT_KEYBRD_T *kbd) { - kbd->keydown = 0; - kbd->keycode = AM_KEY_NONE; + kbd->keycode = inl(KBD_ADDR); // AM_KEY_NONE; + kbd->keydown = kbd->keycode == AM_KEY_NONE ? false : true; }