Files
x86-bare-metal-examples/interrupt_keyboard.S
Ciro Santilli 528ab2becc fix ps2 link
2021-05-14 01:00:00 +00:00

18 lines
343 B
ArmAsm

/* https://github.com/cirosantilli/x86-bare-metal-examples#ps2-keyboard */
#include "common.h"
BEGIN
CLEAR
/* I've read that the keyboard handler is the number 1 (second one),
* and each entry is 4 byte wide.
*/
movw $handler, 0x04
movw $0x00, 0x06
sti
loop:
jmp loop
handler:
PUTC $'a
iret
jmp loop