interrupt_keyboard.S 343 B

123456789101112131415161718
  1. /* https://github.com/cirosantilli/x86-bare-metal-examples#ps2-keyboard */
  2. #include "common.h"
  3. BEGIN
  4. CLEAR
  5. /* I've read that the keyboard handler is the number 1 (second one),
  6. * and each entry is 4 byte wide.
  7. */
  8. movw $handler, 0x04
  9. movw $0x00, 0x06
  10. sti
  11. loop:
  12. jmp loop
  13. handler:
  14. PUTC $'a
  15. iret
  16. jmp loop