kolibrios-fun/programs/develop/ktcc/trunk/libc/kolibrisys/keyboard.asm
Magomed Kostoev (mkostoevr) 71b99beec5 Make libck project self-containing.
git-svn-id: svn://kolibrios.org@7855 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-03 08:09:36 +00:00

29 lines
385 B
NASM

format ELF
include "../proc32.inc"
section '.text' executable
public _ksys_get_key
public _ksys_set_keyboard_mode
align 4
proc _ksys_get_key stdcall
mov eax,2
int 0x40
ret
endp
align 4
proc _ksys_set_keyboard_mode stdcall, mode:dword
mov edx,ebx
mov eax,66
xor ebx,ebx
inc ebx
mov ecx,[mode]
mov ebx,edx
ret
endp