interrupt_keyboard.S 310 B

123456789101112131415161718192021
  1. /*
  2. TODO get working. Vs `in_keyboard`?
  3. */
  4. #include "common.h"
  5. BEGIN
  6. CLEAR
  7. /*
  8. I've read that the keyboard handler is the number 1 (second one),
  9. and each entry is 4 byte wide.
  10. */
  11. movw $handler, 0x04
  12. movw $0x00, 0x06
  13. sti
  14. loop:
  15. jmp loop
  16. handler:
  17. PUTC $'a
  18. iret
  19. jmp loop