diff --git a/abstract-machine/am/src/platform/nemu/ioe/input.c b/abstract-machine/am/src/platform/nemu/ioe/input.c index fb7cee8..f412cdf 100644 --- a/abstract-machine/am/src/platform/nemu/ioe/input.c +++ b/abstract-machine/am/src/platform/nemu/ioe/input.c @@ -5,5 +5,5 @@ void __am_input_keybrd(AM_INPUT_KEYBRD_T *kbd) { kbd->keycode = inl(KBD_ADDR); // AM_KEY_NONE; - kbd->keydown = (kbd->keycode != AM_KEY_NONE) ? false : true; + kbd->keydown = kbd->keycode & KEYDOWN_MASK; }