2006-09-07 18:14:53 +04:00
|
|
|
format ELF
|
2007-08-24 23:49:07 +04:00
|
|
|
|
|
|
|
include "proc32.inc"
|
|
|
|
|
2006-09-07 18:14:53 +04:00
|
|
|
section '.text' executable
|
2007-08-24 23:49:07 +04:00
|
|
|
|
2007-10-15 13:42:17 +04:00
|
|
|
public _ksys_get_key
|
|
|
|
public _ksys_set_keyboard_mode
|
2007-08-24 23:49:07 +04:00
|
|
|
|
|
|
|
align 4
|
2007-10-15 13:42:17 +04:00
|
|
|
proc _ksys_get_key stdcall
|
2007-08-24 23:49:07 +04:00
|
|
|
|
2006-09-07 18:14:53 +04:00
|
|
|
mov eax,2
|
|
|
|
int 0x40
|
|
|
|
ret
|
2007-08-24 23:49:07 +04:00
|
|
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
align 4
|
2007-10-15 13:42:17 +04:00
|
|
|
proc _ksys_set_keyboard_mode stdcall, mode:dword
|
2007-08-24 23:49:07 +04:00
|
|
|
|
2006-09-07 18:14:53 +04:00
|
|
|
mov edx,ebx
|
|
|
|
mov eax,66
|
|
|
|
xor ebx,ebx
|
|
|
|
inc ebx
|
2007-08-24 23:49:07 +04:00
|
|
|
mov ecx,[mode]
|
2006-09-07 18:14:53 +04:00
|
|
|
mov ebx,edx
|
2007-08-24 23:49:07 +04:00
|
|
|
ret
|
|
|
|
endp
|