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.
 
 

20 lines
356 B

BITS 16
keyprint:
pusha
.keyprint_loop:
mov ax, 0x1000 ; BIOS call to wait for key
int 0x16
cmp ax, 0x11b ; ESC key
je .end_keyprint
call dumpax_os
mov bx, ax
mov ax, 0xe20
int 0x10 ; print space
mov al, bl
int 0x10 ; print char
call printCRLF_os
jmp .keyprint_loop
.end_keyprint:
popa
ret