Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
603B

  1. Keyboard driver
  2. Load range: 566-570
  3. Implement a (key) word that interpret keystrokes from the
  4. builtin keyboard. The word waits for a digit to be pressed and
  5. returns the corresponding ASCII value.
  6. This routine waits for a key to be pressed, but before that, it
  7. waits for all keys to be de-pressed. It does that to ensure
  8. that two calls to _wait only go through after two actual key
  9. presses (otherwise, the user doesn't have enough time to
  10. de-press the button before the next _wait routine registers the
  11. same key press as a second one).
  12. (cont.)