Files
x86-bare-metal-examples/ps2_keyboard.S

17 lines
304 B
ArmAsm
Raw Normal View History

/* https://github.com/cirosantilli/x86-bare-metal-examples#ps2-keyboard */
2018-12-04 09:46:27 +00:00
#include "common.h"
BEGIN
CLEAR
in $0x60, %al
mov %al, %cl
loop:
/* Store the scancode to al. */
in $0x60, %al
cmp %al, %cl
jz loop
mov %al, %cl
PRINT_HEX <%al>
PRINT_NEWLINE
jmp loop