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